cube-js/cube

Support for ts_query on postgressql

Open

#3225 aperta il 11 ago 2021

Vedi su GitHub
 (2 commenti) (4 reazioni) (0 assegnatari)Rust (1965 fork)batch import
driver:postgreshelp wanted

Metriche repository

Star
 (19.563 star)
Metriche merge PR
 (Merge medio 5g 16h) (138 PR mergiate in 30 g)

Descrizione

Is your feature request related to a problem? Please describe. The list of available filters does not include postgresql full text search.

Describe the solution you'd like Add a filter option called tsQuery to BaseFilter.js:

tsQueryWhere(column) { return ${column} @@ to_tsquery(${this.firstParameter()}); }

add the option to operators in query.js const operators = [ 'equals', 'notEquals', 'contains', 'notContains', 'in', 'notIn', 'gt', 'gte', 'lt', 'lte', 'tsQuery', 'set', 'notSet', 'inDateRange', 'notInDateRange', 'onTheDate', 'beforeDate', 'afterDate', 'measureFilter', ];

Guida contributor