diff options
| -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`. | ||