PostgreSQL with PGlite
const sql = view(Inputs.textarea({value: "select 'Hello world'", label: "SQL"}))
Query result
How this works
import { PGlite } from "npm:@electric-sql/pglite@0.0.1-alpha.2/dist/index.min.js";
const db = new PGlite()
// Pass 'idb://my-pgdata' for indexedDB persistence
const response = await db.query(sql)