wip
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 56s

This commit is contained in:
2026-04-12 22:22:44 +03:00
parent c403bda2cc
commit 05e9fb3cda
10 changed files with 271 additions and 332 deletions

11
src/sqlite/index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { Database, constants } from 'bun:sqlite'
const db = new Database('db.sqlite', {create: true, strict: true})
db.run('PRAGMA journal_mode = WAL;')
db.fileControl(constants.SQLITE_FCNTL_PERSIST_WAL, 0)
// Checkpoint and truncate the WAL file
db.run('PRAGMA wal_checkpoint(TRUNCATE);')
db.close()
const query = db.query(`select "Hello world" as message`)