Commit 63893a9e by Orlando Vazquez Committed by Orlando Vazquez

Initial stab at using libeio for when doing synchronous io

parent 8a2e0682
var fs = require("fs");
process.mixin(GLOBAL, require("assert"));
process.mixin(GLOBAL, require("sys"));
var sqlite = require("./sqlite3_bindings");
var db = new sqlite.Database();
throws(function () {
db.open();
});
throws(function () {
db.open("my.db");
});
throws(function () {
db.open("/tmp");
});
db.open("my.db", function (err) {
puts(inspect(arguments));
if (err) {
puts("There was an error");
throw err;
}
puts("open callback");
db.printIt();
});
puts("done");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment