From 60d0a0d0eeed50ef2b1f0697ea4b1bf79eade384 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Sat, 14 Dec 2024 01:16:09 +0100 Subject: update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b26708c..fbbd30e 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,8 @@ Only the `mode` field is mandatory, the other fields have sane default values. sqlite works exclusively by using prepared statements. The wrapper type is `sqlite.Statement`. Here is how you get one: ```zig +try db.exec("CREATE TABLE IF NOT EXISTS employees(id integer primary key, name text, age integer, salary integer)", .{}, .{}); + const query = \\SELECT id, name, age, salary FROM employees WHERE age > ? AND age < ? ; -- cgit v1.2.3