Create a PostgreSQL to_tsvector expression SQL: to_tsvector(config, column)
Optional
import { toTsvector } from 'orm';// Using with to_tsqueryArticle.findAll({ where: { [toTsvector('title')]: { $tsquery: 'database' } }})// SQL: WHERE to_tsvector('english', title) @@ to_tsquery('english', 'database') Copy
import { toTsvector } from 'orm';// Using with to_tsqueryArticle.findAll({ where: { [toTsvector('title')]: { $tsquery: 'database' } }})// SQL: WHERE to_tsvector('english', title) @@ to_tsquery('english', 'database')
Create a PostgreSQL to_tsvector expression SQL: to_tsvector(config, column)