diff options
| author | 2021-08-09 22:21:10 +0200 | |
|---|---|---|
| committer | 2021-08-09 22:21:15 +0200 | |
| commit | d2ab6bb76c899914b0ec981b73cb1a12702f4e32 (patch) | |
| tree | 19d94a4a1845671932c47703ae4793fb03be2ec8 /sqlite.zig | |
| parent | document the ZeroBlob type (diff) | |
| download | zig-sqlite-d2ab6bb76c899914b0ec981b73cb1a12702f4e32.tar.gz zig-sqlite-d2ab6bb76c899914b0ec981b73cb1a12702f4e32.tar.xz zig-sqlite-d2ab6bb76c899914b0ec981b73cb1a12702f4e32.zip | |
clarify Blob.open
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -167,6 +167,7 @@ pub const Blob = struct { | |||
| 167 | /// | 167 | /// |
| 168 | /// const data = try blob_reader.readAlloc(allocator); | 168 | /// const data = try blob_reader.readAlloc(allocator); |
| 169 | /// | 169 | /// |
| 170 | /// See https://sqlite.org/c3ref/blob_open.html for more details. | ||
| 170 | fn open(db: *c.sqlite3, db_name: DatabaseName, table: [:0]const u8, column: [:0]const u8, row: i64, comptime flags: OpenFlags) !Blob { | 171 | fn open(db: *c.sqlite3, db_name: DatabaseName, table: [:0]const u8, column: [:0]const u8, row: i64, comptime flags: OpenFlags) !Blob { |
| 171 | comptime if (!flags.read and !flags.write) { | 172 | comptime if (!flags.read and !flags.write) { |
| 172 | @compileError("must open a blob for either read, write or both"); | 173 | @compileError("must open a blob for either read, write or both"); |