summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar thisLight2021-09-24 15:24:22 +0800
committerGravatar thisLight2021-10-13 10:03:07 +0800
commitee1cb658ec470fcaad2594d93760ad0c4a72a46d (patch)
tree08f8c309869b3887288d8369637ae7b5a1da8905 /sqlite.zig
parentDynamicStatment: introduce original sqlite3 statement. (diff)
downloadzig-sqlite-ee1cb658ec470fcaad2594d93760ad0c4a72a46d.tar.gz
zig-sqlite-ee1cb658ec470fcaad2594d93760ad0c4a72a46d.tar.xz
zig-sqlite-ee1cb658ec470fcaad2594d93760ad0c4a72a46d.zip
sqlite: some doc fixes
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 04b805c..b8676aa 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -525,10 +525,10 @@ pub const Db = struct {
525 525
526 /// prepareDynamic prepares a dynamic statement for the `query` provided. 526 /// prepareDynamic prepares a dynamic statement for the `query` provided.
527 /// 527 ///
528 /// The query will be directly sent to create statement without any analysing. 528 /// The query will be directly sent to create statement without analysing.
529 /// That means such statement does not support comptime type-checking. 529 /// That means such statements does not support comptime type-checking.
530 /// 530 ///
531 /// Dynamic statement supports host parameter names. See `DynamicStatement` 531 /// Dynamic statement supports host parameter names. See `DynamicStatement`.
532 pub fn prepareDynamic(self: *Self, query: []const u8) !DynamicStatement { 532 pub fn prepareDynamic(self: *Self, query: []const u8) !DynamicStatement {
533 return try self.prepareDynamicWithDiags(query, .{}); 533 return try self.prepareDynamicWithDiags(query, .{});
534 } 534 }
@@ -1047,9 +1047,9 @@ pub const StatementOptions = struct {};
1047/// 1047///
1048/// It doesn't matter "@", "$" or ":" is being used, the one will be automatically chosen, 1048/// It doesn't matter "@", "$" or ":" is being used, the one will be automatically chosen,
1049/// but it's not recommended to mix them up, because: sqlite3 thinks @A, $A and :A are 1049/// but it's not recommended to mix them up, because: sqlite3 thinks @A, $A and :A are
1050/// different, but `DynamicStatement` will try :A, @A, $A in order when you passing an 'A' field. 1050/// different, but `DynamicStatement` will try :A, @A, $A in order when you passing a 'A' field.
1051/// The ":A" will be binded while "@A", "$A" are left behind. 1051/// The ":A" will be binded while "@A", "$A" are left behind.
1052/// TL;DR: don't use same name with different indicator ("@", "$", ":"). 1052/// TL;DR: don't use same name with different prefix ("@", "$", ":").
1053/// 1053///
1054/// You can use unnamed markers with tuple: 1054/// You can use unnamed markers with tuple:
1055/// ```` 1055/// ````