diff options
| author | 2021-08-09 21:42:00 +0200 | |
|---|---|---|
| committer | 2021-08-09 21:42:00 +0200 | |
| commit | e103e27272867ee1b60cc4b23f5201a52eccabfb (patch) | |
| tree | 591b658038e69c135b8e6fbfd1f87cedba9fd0e0 /sqlite.zig | |
| parent | clarify Mode documentation (diff) | |
| download | zig-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.zig | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -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, |