From 42cccd69f8f8aecbd77fe5ab04ba64aed3e98da3 Mon Sep 17 00:00:00 2001 From: Waozi Date: Wed, 30 Sep 2026 15:59:33 -0300 Subject: [PATCH] Show a complete SQLite connection example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5e9b19..1e0c583 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ ziran add https://github.com/ziranlang/sqlite.git database: *void = null flags: s32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE -if SqliteOpen(path, *database, flags) == SQLITE_OK { +if SqliteOpenText(":memory:", *database, flags) == SQLITE_OK { SqliteExecText(database, "create table if not exists votes (voter text, score integer)") + SqliteClose(database) } ```