summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-08-09 21:41:39 +0200
committerGravatar Vincent Rischmann2021-08-09 21:41:39 +0200
commit782833341d0e59ac435a296b03f9c240ae03ec72 (patch)
tree2a732b54283ed37bef8428e85ec78c46ba4c2277 /sqlite.zig
parentMerge pull request #33 from vrischmann/exec-with-diags (diff)
downloadzig-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.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlite.zig b/sqlite.zig
index b0f3216..8fd536b 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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,