max-mapper / sqlite-search

2 stars 1 forks source link

sqlite-search

NPM

api

require('sqlite-search')(opts, readyCallback)

opts:

readyCallback

Will get called with err, instance

var sqliteSearch = require('sqlite-search')
sqliteSearch(opts, function (err, searcher) {
  searcher.createSearchStream(searchOpts)
})

instance.createWriteStream()

returns a writable object stream. objects written into this stream will be stored in the search table. make sure the keys of your object were included in the columns array you passed into the constructor above

instance.createSearchStream(opts)

returns a readable object stream that emits search result objects

opts: