From 003494b3ba759d1215a607273613f5064eddb83f Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sun, 25 Oct 2020 01:26:35 +0200 Subject: update readme --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'README.md') 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 Here are the rules for bind parameters: * any Zig `Int` or `ComptimeInt` is tread as a `INTEGER`. * any Zig `Float` or `ComptimeFloat` is treated as a `REAL`. -* `[]const u8`, `[]u8` or any array of `u8` is treated as a `TEXT` or `BLOB`. +* `[]const u8`, `[]u8` or any array of `u8` is treated as a `TEXT`. +* The custom `sqlite.Bytes` type is treated as a `TEXT` or `BLOB`. + +Here are the resules for resultset rows: +* `INTEGER` can be read into any Zig `Int` provided the data fits. +* `REAL` can be read into any Zig `Float` provided the data fits. +* `TEXT` can be read into a `[]const u8` or `[]u8`. +* `TEXT` can be read into any array of `u8` provided the data fits. +* `BLOB` follows the same rules as `TEXT`. -- cgit v1.2.3