mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-17 07:34:15 -06:00
5 lines
223 B
JavaScript
5 lines
223 B
JavaScript
const Database = require('libsql');
|
|
const db = new Database(':memory:');
|
|
db.exec('CREATE TABLE foo (id INT); CREATE TABLE bar (id INT);');
|
|
console.log(db.prepare("SELECT name FROM sqlite_master WHERE type='table'").all());
|