Hi all,
With much help from Digital Man, I have added the abilty use SQLite databases through JavaScript within Synchronet. It's a work in progress and always happy to accept patches and the like.
It's not been merged yet and will only work on Linux so far, You'll need to checkout the sqlite branch and make sure you have libsqlite3 installed.
// open a new database object. This will create the database if it doesn't
// exist
var db = new Sqlite("/tmp/base1");
if (!db.open())
writeln ("Unable to open database: " + db.errormsg);
// Create a table for our data
if (db.exec("CREATE TABLE test (firstname text , lastname text)"))
writeln ("Table created");
else
writeln ("Unable to create table: " + db.errormsg);
great very nice!
Sysop: | Shifter |
---|---|
Location: | Streator, IL |
Users: | 13 |
Nodes: | 10 (0 / 10) |
Uptime: | 49:55:50 |
Calls: | 115 |
Calls today: | 1 |
Messages: | 6,911 |