Skip to content

Instantly share code, notes, and snippets.

View youwillbe's full-sized avatar
😄
Haskell这门语言是真的棒!

布里焦焦迪布利多 youwillbe

😄
Haskell这门语言是真的棒!
  • 06:20 (UTC +08:00)
View GitHub Profile
@youwillbe
youwillbe / demo.ts
Created December 24, 2024 01:45 — forked from vedantroy/demo.ts
SQLite-backed key-value store with JS-like object manipulation and automatic JSON serialization.
import Database from 'better-sqlite3';
import { createDatabaseClient } from './proxy.ts';
// 1) Create an in-memory DB and your table(s).
const db = new Database(':memory:');
db.exec(`
CREATE TABLE users (
id TEXT PRIMARY KEY,
data JSON
);