Commit ecb4f3c8 by Mithgol

Merge pull request #538 from lvivier/json

Enable json1 extension by default
parents e73c3c40 988b0615
......@@ -80,6 +80,7 @@
'defines': [
'SQLITE_THREADSAFE=1',
'SQLITE_ENABLE_FTS3',
'SQLITE_ENABLE_JSON1',
'SQLITE_ENABLE_RTREE'
],
},
......@@ -91,6 +92,7 @@
'_REENTRANT=1',
'SQLITE_THREADSAFE=1',
'SQLITE_ENABLE_FTS3',
'SQLITE_ENABLE_JSON1',
'SQLITE_ENABLE_RTREE'
],
'export_dependent_settings': [
......
var sqlite3 = require('..');
describe('json', function() {
var db;
before(function(done) {
db = new sqlite3.Database(':memory:', done);
});
it('should select JSON', function(done) {
db.run('SELECT json(?)', JSON.stringify({ok:true}), 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