Update docs for file-backed databases.
This commit is contained in:
parent
02894cf8fe
commit
b61e125a80
1 changed files with 4 additions and 4 deletions
8
USAGE.md
8
USAGE.md
|
|
@ -63,13 +63,13 @@ var db = newKuzuDatabase()
|
||||||
```
|
```
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
# "db" is persistent, stored in the directory "data".
|
# "db" is persistent, stored in the file "data.kz".
|
||||||
var db = newKuzuDatabase("data")
|
var db = newKuzuDatabase("data.kz")
|
||||||
```
|
```
|
||||||
The database path is retained, and can be recalled via `db.path`.
|
The database path is retained, and can be recalled via `db.path`.
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
db.path #=> "data"
|
db.path #=> "data.kz"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Database Configuration
|
### Database Configuration
|
||||||
|
|
@ -91,7 +91,7 @@ object as the second argument to `newKuzuDatabase()`:
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
# Open a readonly handle.
|
# Open a readonly handle.
|
||||||
var db = newKuzuDatabase( "data", kuzuConfig( read_only=true ) )
|
var db = newKuzuDatabase( "data.kz", kuzuConfig( read_only=true ) )
|
||||||
```
|
```
|
||||||
|
|
||||||
### The Connection
|
### The Connection
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue