diff options
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -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 | /// ```` |