diff options
| author | 2020-12-20 22:59:37 +0100 | |
|---|---|---|
| committer | 2020-12-21 00:18:06 +0100 | |
| commit | 3ae0d133e7f4b3108de0eee9a9da33e62a7cb87e (patch) | |
| tree | 8a7dd5e5a66f50b947487b8e9b0efe3ad58a84f4 /README.md | |
| parent | pass the column in readArray (diff) | |
| download | zig-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 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 | ||
| 128 | 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. | ||
| 129 | |||
| 128 | ### Comptime checked statements | 130 | ### Comptime checked statements |
| 129 | 131 | ||
| 130 | 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. | 132 | 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. |