summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
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");