Update docs for file-backed databases.

This commit is contained in:
Mahlon E. Smith 2025-07-17 16:52:52 -07:00
parent 02894cf8fe
commit b61e125a80
Signed by: mahlon
SSH key fingerprint: SHA256:QqLyWlHOO+0nAIxmOo2xwdr7NcV9/plk4lhsihezvWo

View file

@ -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