cube-js/cube

Support for ts_query on postgressql

Open

#3.225 geöffnet am 11. Aug. 2021

Auf GitHub ansehen
 (2 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Rust (1.965 Forks)batch import
driver:postgreshelp wanted

Repository-Metriken

Stars
 (19.563 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 16h) (138 gemergte PRs in 30 T)

Beschreibung

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', ];

Contributor Guide