diff options
| author | 2021-08-09 21:41:39 +0200 | |
|---|---|---|
| committer | 2021-08-09 21:41:39 +0200 | |
| commit | 782833341d0e59ac435a296b03f9c240ae03ec72 (patch) | |
| tree | 2a732b54283ed37bef8428e85ec78c46ba4c2277 /sqlite.zig | |
| parent | Merge pull request #33 from vrischmann/exec-with-diags (diff) | |
| download | zig-sqlite-782833341d0e59ac435a296b03f9c240ae03ec72.tar.gz zig-sqlite-782833341d0e59ac435a296b03f9c240ae03ec72.tar.xz zig-sqlite-782833341d0e59ac435a296b03f9c240ae03ec72.zip | |
clarify Mode documentation
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -291,6 +291,10 @@ pub const Db = struct { | |||
| 291 | db: *c.sqlite3, | 291 | db: *c.sqlite3, |
| 292 | 292 | ||
| 293 | /// Mode determines how the database will be opened. | 293 | /// Mode determines how the database will be opened. |
| 294 | /// | ||
| 295 | /// * File means opening the database at this path with sqlite3_open_v2. | ||
| 296 | /// * Memory means opening the database in memory. | ||
| 297 | /// This works by opening the :memory: path with sqlite3_open_v2 with the flag SQLITE_OPEN_MEMORY. | ||
| 294 | pub const Mode = union(enum) { | 298 | pub const Mode = union(enum) { |
| 295 | File: [:0]const u8, | 299 | File: [:0]const u8, |
| 296 | Memory, | 300 | Memory, |