1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { sqlite } from "https://esm.town/v/std/sqlite";
await sqlite.execute(`drop table if exists pages`);
await sqlite.execute(`create table if not exists pages (
id integer primary key,
dt datetime default current_timestamp,
value text
)`);
await sqlite.execute({
sql: `insert into pages (value) values (:value)`,
args: { value: "Everything starts somewhere." },
});
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
March 23, 2024