Back

Version 2

3/19/2024
import { sqlite } from "https://esm.town/v/std/sqlite";

await sqlite.execute(`create table if not exists pages(
id integer primary key,
dt datetime default current_timestamp,
value text
)`);

const latestVersion = sqlite.execute(`select * from pages where id = (select max max(id) from pages);`);

console.log(latestVersion);
Updated: March 23, 2024