diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -124,6 +124,8 @@ Only the `mode` field is mandatory, the other fields have sane default values. | |||
| 124 | sqlite works exclusively by using prepared statements. The wrapper type is `sqlite.Statement`. Here is how you get one: | 124 | sqlite works exclusively by using prepared statements. The wrapper type is `sqlite.Statement`. Here is how you get one: |
| 125 | 125 | ||
| 126 | ```zig | 126 | ```zig |
| 127 | try db.exec("CREATE TABLE IF NOT EXISTS employees(id integer primary key, name text, age integer, salary integer)", .{}, .{}); | ||
| 128 | |||
| 127 | const query = | 129 | const query = |
| 128 | \\SELECT id, name, age, salary FROM employees WHERE age > ? AND age < ? | 130 | \\SELECT id, name, age, salary FROM employees WHERE age > ? AND age < ? |
| 129 | ; | 131 | ; |