Back

Version 13

4/1/2024
import { VtDialect } from "https://esm.town/v/easrng/kyselyVtDialect";
import { Kysely } from "npm:kysely@^0.27.3";
const k = new Kysely({
dialect: new VtDialect(),
});
let query = k
.selectFrom("sqlite_master")
.where("type", "in", ["table", "view"])
.where("name", "not like", "sqlite_%")
.select("name")
.orderBy("name")
.$castTo();
const tables = await query.execute();
console.log(tables);
easrng-kyselyvttypes.web.val.run
Updated: April 1, 2024