Readme

example output

{
  columns: [ "id", "content", "time" ],
  columnTypes: [ "INTEGER", "TEXT", "TIMESTAMP" ],
  rows: [ { id: 1, content: "asdfasdf", time: "2024-05-24 19:11:52" } ],
  rowsAffected: 0,
  lastInsertRowid: null
}
1
2
3
4
5
import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";
console.log(
await sqlite.execute(`select * from messages limit 1`),
);
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!
September 19, 2024