README fix.
This commit is contained in:
parent
52753bce14
commit
b93130dc99
@ -17,7 +17,7 @@ dependencies:
|
|||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
```crystal
|
```crystal
|
||||||
db = DODB::DataBase(Thing).new
|
db = DODB::DataBase(Thing).new "path/to/storage/directory"
|
||||||
|
|
||||||
db << Thing.new
|
db << Thing.new
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ class Thing
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Then we create our database.
|
# Then we create our database.
|
||||||
things = DODB::DataBase(Thing).new
|
things = DODB::DataBase(Thing).new "path/to/storage/directory"
|
||||||
|
|
||||||
# Then we define indices to it. There are several ways to index things in DODB.
|
# Then we define indices to it. There are several ways to index things in DODB.
|
||||||
# Indices are the simplest way to do so. They represent attributes that are
|
# Indices are the simplest way to do so. They represent attributes that are
|
||||||
|
Loading…
Reference in New Issue
Block a user