summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2020-12-20 22:59:37 +0100
committerGravatar Vincent Rischmann2020-12-21 00:18:06 +0100
commit3ae0d133e7f4b3108de0eee9a9da33e62a7cb87e (patch)
tree8a7dd5e5a66f50b947487b8e9b0efe3ad58a84f4 /README.md
parentpass the column in readArray (diff)
downloadzig-sqlite-3ae0d133e7f4b3108de0eee9a9da33e62a7cb87e.tar.gz
zig-sqlite-3ae0d133e7f4b3108de0eee9a9da33e62a7cb87e.tar.xz
zig-sqlite-3ae0d133e7f4b3108de0eee9a9da33e62a7cb87e.zip
readme: add a note about using arrays of u8
Diffstat (limited to '')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 971c54c..84fb96c 100644
--- a/README.md
+++ b/README.md
@@ -125,6 +125,8 @@ Here are the rules for resultset rows:
125* `TEXT` can be read into any array of `u8` provided the data fits. 125* `TEXT` can be read into any array of `u8` provided the data fits.
126* `BLOB` follows the same rules as `TEXT`. 126* `BLOB` follows the same rules as `TEXT`.
127 127
128Note 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.
129
128### Comptime checked statements 130### Comptime checked statements
129 131
130Prepared statements contain _comptime_ metadata which is used to validate that every call to `exec`, `one` and `all` provides the appropriate number of bind parameters. 132Prepared statements contain _comptime_ metadata which is used to validate that every call to `exec`, `one` and `all` provides the appropriate number of bind parameters.