You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
451 B
19 lines
451 B
const libsql = require("@libsql/client")
|
|
|
|
const insert = `
|
|
insert into pages (title, description) values (
|
|
'main',
|
|
'this is the main page.\n\nit describes a large field in which you stand.'
|
|
)
|
|
`
|
|
|
|
async function initDb() {
|
|
const config = {
|
|
url: "http://127.0.0.1:8000"
|
|
};
|
|
const db = libsql.createClient(config);
|
|
|
|
const cIns = await db.execute(insert);
|
|
console.log(cIns);
|
|
}
|
|
initDb() |