mirror of
https://github.com/tursodatabase/libsql.git
synced 2024-12-15 13:19:41 +00:00
11 lines
190 B
JavaScript
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])
|
|
});
|