summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index cdebc3c..dea6990 100644
--- a/README.md
+++ b/README.md
@@ -251,7 +251,7 @@ Since sqlite doesn't have many [types](https://www.sqlite.org/datatype3.html) on
251Here are the rules for bind parameters: 251Here are the rules for bind parameters:
252* any Zig `Int` or `ComptimeInt` is tread as a `INTEGER`. 252* any Zig `Int` or `ComptimeInt` is tread as a `INTEGER`.
253* any Zig `Float` or `ComptimeFloat` is treated as a `REAL`. 253* any Zig `Float` or `ComptimeFloat` is treated as a `REAL`.
254* `[]const u8`, `[]u8` or any array of `u8` is treated as a `TEXT`. 254* `[]const u8`, `[]u8` is treated as a `TEXT`.
255* The custom `sqlite.Blob` type is treated as a `BLOB`. 255* The custom `sqlite.Blob` type is treated as a `BLOB`.
256* The custom `sqlite.Text` type is treated as a `TEXT`. 256* The custom `sqlite.Text` type is treated as a `TEXT`.
257 257
@@ -259,7 +259,7 @@ Here are the rules for resultset rows:
259* `INTEGER` can be read into any Zig `Int` provided the data fits. 259* `INTEGER` can be read into any Zig `Int` provided the data fits.
260* `REAL` can be read into any Zig `Float` provided the data fits. 260* `REAL` can be read into any Zig `Float` provided the data fits.
261* `TEXT` can be read into a `[]const u8` or `[]u8`. 261* `TEXT` can be read into a `[]const u8` or `[]u8`.
262* `TEXT` can be read into any array of `u8` provided the data fits. 262* `TEXT` can be read into any array of `u8` with a sentinel provided the data fits.
263* `BLOB` follows the same rules as `TEXT`. 263* `BLOB` follows the same rules as `TEXT`.
264 264
265Note that arrays must have a sentinel because we need a way to communicate where the data actually stops in the array, so for example use `[200:0]u8` for a `TEXT` field. 265Note that arrays must have a sentinel because we need a way to communicate where the data actually stops in the array, so for example use `[200:0]u8` for a `TEXT` field.