summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2025-05-06 01:14:31 +0200
committerGravatar Vincent Rischmann2025-05-06 01:14:31 +0200
commit928a94ed636cda8ddfe3cb5e43fcab4b5c6ad993 (patch)
treeafe78ea78dd552c5c6486997bba7b318956714c7 /sqlite.zig
parentupdate readme (diff)
downloadzig-sqlite-928a94ed636cda8ddfe3cb5e43fcab4b5c6ad993.tar.gz
zig-sqlite-928a94ed636cda8ddfe3cb5e43fcab4b5c6ad993.tar.xz
zig-sqlite-928a94ed636cda8ddfe3cb5e43fcab4b5c6ad993.zip
fix some typos
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 ef9f40f..dae8d7c 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -557,7 +557,7 @@ pub const Db = struct {
557 /// prepareDynamic prepares a dynamic statement for the `query` provided. 557 /// prepareDynamic prepares a dynamic statement for the `query` provided.
558 /// 558 ///
559 /// The query will be directly sent to create statement without analysing. 559 /// The query will be directly sent to create statement without analysing.
560 /// That means such statements does not support comptime type-checking. 560 /// That means such statements do not support comptime type-checking.
561 /// 561 ///
562 /// Dynamic statement supports host parameter names. See `DynamicStatement`. 562 /// Dynamic statement supports host parameter names. See `DynamicStatement`.
563 pub fn prepareDynamic(self: *Self, query: []const u8) DynamicStatement.PrepareError!DynamicStatement { 563 pub fn prepareDynamic(self: *Self, query: []const u8) DynamicStatement.PrepareError!DynamicStatement {
@@ -1810,7 +1810,7 @@ pub const DynamicStatement = struct {
1810 /// 1810 ///
1811 /// The `values` variable is used for the bind parameters. It must have as many fields as there are bind markers 1811 /// The `values` variable is used for the bind parameters. It must have as many fields as there are bind markers
1812 /// in the input query string. 1812 /// in the input query string.
1813 /// The values will be binded depends on the numberic name when it's a tuple, or the 1813 /// The values that will be bound depend on the numeric name when it's a tuple, or the
1814 /// string name when it's a normal structure. 1814 /// string name when it's a normal structure.
1815 /// 1815 ///
1816 /// Possible errors: 1816 /// Possible errors:
@@ -1848,7 +1848,7 @@ pub const DynamicStatement = struct {
1848 /// 1848 ///
1849 /// The `values` tuple is used for the bind parameters. It must have as many fields as there are bind markers 1849 /// The `values` tuple is used for the bind parameters. It must have as many fields as there are bind markers
1850 /// in the input query string. 1850 /// in the input query string.
1851 /// The values will be binded depends on the numberic name when it's a tuple, or the 1851 /// The values that will be bound depend on the numberic name when it's a tuple, or the
1852 /// string name when it's a normal structure. 1852 /// string name when it's a normal structure.
1853 /// 1853 ///
1854 /// The iterator _must not_ outlive the statement. 1854 /// The iterator _must not_ outlive the statement.
@@ -1881,7 +1881,7 @@ pub const DynamicStatement = struct {
1881 /// 1881 ///
1882 /// The `values` tuple is used for the bind parameters. It must have as many fields as there are bind markers 1882 /// The `values` tuple is used for the bind parameters. It must have as many fields as there are bind markers
1883 /// in the input query string. 1883 /// in the input query string.
1884 /// The values will be binded depends on the numberic name when it's a tuple, or the 1884 /// The values will be bound depend on the numberic name when it's a tuple, or the
1885 /// string name when it's a normal structure. 1885 /// string name when it's a normal structure.
1886 /// 1886 ///
1887 /// The iterator _must not_ outlive the statement. 1887 /// The iterator _must not_ outlive the statement.
@@ -2097,7 +2097,7 @@ pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type
2097 } 2097 }
2098 2098
2099 return self.dynamic().bind(options, values) catch |e| switch (e) { 2099 return self.dynamic().bind(options, values) catch |e| switch (e) {
2100 errors.Error.SQLiteNotFound => unreachable, // impossible to have non-exists field 2100 errors.Error.SQLiteNotFound => unreachable, // impossible to have non-existent field
2101 else => e, 2101 else => e,
2102 }; 2102 };
2103 } 2103 }