From 3ae0d133e7f4b3108de0eee9a9da33e62a7cb87e Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 20 Dec 2020 22:59:37 +0100 Subject: readme: add a note about using arrays of u8 --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') 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: * `TEXT` can be read into any array of `u8` provided the data fits. * `BLOB` follows the same rules as `TEXT`. +Note 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. + ### Comptime checked statements Prepared statements contain _comptime_ metadata which is used to validate that every call to `exec`, `one` and `all` provides the appropriate number of bind parameters. -- cgit v1.2.3