0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 13:19:41 +00:00
libsql/bindings/wasm/example.js
2023-10-16 09:06:25 -07:00

11 lines
190 B
JavaScript

var libsql = require('./pkg');
var db = new libsql.Database('libsql://penberg.turso.io');
db.all('SELECT 1', function(err, res) {
if (err) {
throw err;
}
console.log(res[0])
});