Skip to content

Commit

Permalink
Merge pull request #17 from fholzer/support-fts5
Browse files Browse the repository at this point in the history
Add support for FTS5
  • Loading branch information
rkistner authored Mar 27, 2019
2 parents 9798fef + 7967486 commit 2998fbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/sqlite3.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
'defines': [
'SQLITE_THREADSAFE=1',
'SQLITE_ENABLE_FTS3',
'SQLITE_ENABLE_FTS5',
'SQLITE_ENABLE_JSON1',
'SQLITE_ENABLE_RTREE',
'SQLITE_HAS_CODEC',
Expand All @@ -171,6 +172,7 @@
'_REENTRANT=1',
'SQLITE_THREADSAFE=1',
'SQLITE_ENABLE_FTS3',
'SQLITE_ENABLE_FTS5',
'SQLITE_ENABLE_JSON1',
'SQLITE_ENABLE_RTREE',
'SQLITE_HAS_CODEC',
Expand Down
4 changes: 4 additions & 0 deletions test/fts-content.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ describe('fts', function() {
it('should create a new fts4 table', function(done) {
db.exec('CREATE VIRTUAL TABLE t1 USING fts4(content="", a, b, c);', done);
});

it('should create a new fts5 table', function(done) {
db.exec('CREATE VIRTUAL TABLE t2 USING fts5(content="", a, b, c);', done);
});
});

0 comments on commit 2998fbe

Please sign in to comment.