From e103e27272867ee1b60cc4b23f5201a52eccabfb Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Mon, 9 Aug 2021 21:42:00 +0200 Subject: clarify the OpenFlags --- sqlite.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sqlite.zig') 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 { }; /// OpenFlags contains various flags used when opening a SQLite databse. + /// + /// These flags partially map to the flags defined in https://sqlite.org/c3ref/open.html + /// * write=false and create=false means SQLITE_OPEN_READONLY + /// * write=true and create=false means SQLITE_OPEN_READWRITE + /// * write=true and create=true means SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE pub const OpenFlags = struct { write: bool = false, create: bool = false, -- cgit v1.2.3