summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-08-09 22:21:10 +0200
committerGravatar Vincent Rischmann2021-08-09 22:21:15 +0200
commitd2ab6bb76c899914b0ec981b73cb1a12702f4e32 (patch)
tree19d94a4a1845671932c47703ae4793fb03be2ec8 /sqlite.zig
parentdocument the ZeroBlob type (diff)
downloadzig-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.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlite.zig b/sqlite.zig
index eb4e6d0..4060ddb 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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");