diff options
| author | 2020-10-25 01:26:35 +0200 | |
|---|---|---|
| committer | 2020-10-25 01:26:35 +0200 | |
| commit | 003494b3ba759d1215a607273613f5064eddb83f (patch) | |
| tree | bd16a836f7fea6f4a3d09398fdba325ee07facea /README.md | |
| parent | document the Bytes type (diff) | |
| download | zig-sqlite-003494b3ba759d1215a607273613f5064eddb83f.tar.gz zig-sqlite-003494b3ba759d1215a607273613f5064eddb83f.tar.xz zig-sqlite-003494b3ba759d1215a607273613f5064eddb83f.zip | |
update readme
Diffstat (limited to '')
| -rw-r--r-- | README.md | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -119,4 +119,12 @@ Since sqlite doesn't have many [types](https://www.sqlite.org/datatype3.html) on | |||
| 119 | Here are the rules for bind parameters: | 119 | Here 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 | |||
| 125 | Here 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`. | ||