summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2020-10-25 01:26:35 +0200
committerGravatar Vincent Rischmann2020-10-25 01:26:35 +0200
commit003494b3ba759d1215a607273613f5064eddb83f (patch)
treebd16a836f7fea6f4a3d09398fdba325ee07facea /README.md
parentdocument the Bytes type (diff)
downloadzig-sqlite-003494b3ba759d1215a607273613f5064eddb83f.tar.gz
zig-sqlite-003494b3ba759d1215a607273613f5064eddb83f.tar.xz
zig-sqlite-003494b3ba759d1215a607273613f5064eddb83f.zip
update readme
Diffstat (limited to '')
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 658498e..7937862 100644
--- a/README.md
+++ b/README.md
@@ -119,4 +119,12 @@ Since sqlite doesn't have many [types](https://www.sqlite.org/datatype3.html) on
119Here are the rules for bind parameters: 119Here are the rules for bind parameters:
120* any Zig `Int` or `ComptimeInt` is tread as a `INTEGER`. 120* any Zig `Int` or `ComptimeInt` is tread as a `INTEGER`.
121* any Zig `Float` or `ComptimeFloat` is treated as a `REAL`. 121* any Zig `Float` or `ComptimeFloat` is treated as a `REAL`.
122* `[]const u8`, `[]u8` or any array of `u8` is treated as a `TEXT` or `BLOB`. 122* `[]const u8`, `[]u8` or any array of `u8` is treated as a `TEXT`.
123* The custom `sqlite.Bytes` type is treated as a `TEXT` or `BLOB`.
124
125Here are the resules for resultset rows:
126* `INTEGER` can be read into any Zig `Int` provided the data fits.
127* `REAL` can be read into any Zig `Float` provided the data fits.
128* `TEXT` can be read into a `[]const u8` or `[]u8`.
129* `TEXT` can be read into any array of `u8` provided the data fits.
130* `BLOB` follows the same rules as `TEXT`.