diff options
| -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, |