UNPKG
@thinql/to-knex
Version:
latest (0.2.0)
0.2.0
Build SQL queries from ThinQL ASTs with Knex.js
github.com/mmiller42/thinql
mmiller42/thinql
@thinql/to-knex
/
src
/
processors
/
fullTextSearch.js
9 lines
(6 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
processFullTextSearch
= (
fullTextSearchNode, builder, options
) => {
const
{ fullTextSearch } = options
const
{ value } = fullTextSearchNode builder.
addGroup
(
nextBuilder
=>
fullTextSearch
(nextBuilder.
knexBuilder
, value)) }
export
default
processFullTextSearch