1
2
3
4
5
6
7
8
9
import { sqlite } from "https://esm.town/v/std/sqlite";
await sqlite.execute(`create table if not exists popes(value)`);
await sqlite.execute({
sql: `insert into popes values (?), (?)`,
args: ["innocent", "benedict"],
});
let popes = await sqlite.execute(`select * from popes`);
export let sqliteExample = popes.rows.map(r => r[0]);