summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-08-09 21:42:00 +0200
committerGravatar Vincent Rischmann2021-08-09 21:42:00 +0200
commite103e27272867ee1b60cc4b23f5201a52eccabfb (patch)
tree591b658038e69c135b8e6fbfd1f87cedba9fd0e0 /sqlite.zig
parentclarify Mode documentation (diff)
downloadzig-sqlite-e103e27272867ee1b60cc4b23f5201a52eccabfb.tar.gz
zig-sqlite-e103e27272867ee1b60cc4b23f5201a52eccabfb.tar.xz
zig-sqlite-e103e27272867ee1b60cc4b23f5201a52eccabfb.zip
clarify the OpenFlags
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 8fd536b..4553a27 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -301,6 +301,11 @@ pub const Db = struct {
301 }; 301 };
302 302
303 /// OpenFlags contains various flags used when opening a SQLite databse. 303 /// OpenFlags contains various flags used when opening a SQLite databse.
304 ///
305 /// These flags partially map to the flags defined in https://sqlite.org/c3ref/open.html
306 /// * write=false and create=false means SQLITE_OPEN_READONLY
307 /// * write=true and create=false means SQLITE_OPEN_READWRITE
308 /// * write=true and create=true means SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE
304 pub const OpenFlags = struct { 309 pub const OpenFlags = struct {
305 write: bool = false, 310 write: bool = false,
306 create: bool = false, 311 create: bool = false,