Skip to content

Commit 1469c07

Browse files
committed
update readme and version bump
1 parent 6de4bef commit 1469c07

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SQLiteGraph"
22
uuid = "de2defd0-d76e-464a-9029-1d71e199ae58"
33
authors = ["joshday <emailjoshday@gmail.com> and contributors"]
4-
version = "0.2.2"
4+
version = "0.3.0"
55

66
[deps]
77
DBInterface = "a10d1c49-ce27-4219-8d33-6db1a4562965"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ replace!(db, Node(2, "Movie"; title="Forest Gump", genre="Drama"))
8080

8181
- Use `getindex` to access elements.
8282
- If `:` is used as an index, an iterator is returned.
83+
- If `s::String` is used as an index, an iterator of nodes where `s` is *one* of the labels is returned.
8384

8485
```julia
85-
db[1] # Node(2, "Movie"; title="Forest Gump", genre="Drama")
86+
db[1] # Node(1, "Person", "Actor"; name="Tom Hanks")
8687

8788
for node in db[:]
8889
println(node)
8990
end
9091

92+
only(db["Movie"]) # Node(2, "Movie"; title="Forest Gump", genre="Drama")
9193

9294
# (Pretend the graph is populated with many more items. The following return iterators.)
9395

0 commit comments

Comments
 (0)