Database persistence for search documents.
Implements ISearchStore using next.jdbc + HoneySQL for DML and raw parameterized SQL for FTS-specific queries.
Two query strategies selected by db-type:
Database persistence for search documents. Implements ISearchStore using next.jdbc + HoneySQL for DML and raw parameterized SQL for FTS-specific queries. Two query strategies selected by db-type: - :postgresql — to_tsvector/plainto_tsquery + ts_rank + ts_headline - :h2 / :sqlite — LOWER/LIKE fallback (used in tests and dev)
(create-search-store datasource db-type)Create a SearchStore backed by a JDBC datasource.
Args: datasource - javax.sql.DataSource db-type - :postgresql (FTS path) or :h2 / :sqlite (LIKE fallback)
Returns: SearchStore implementing ISearchStore
Create a SearchStore backed by a JDBC datasource. Args: datasource - javax.sql.DataSource db-type - :postgresql (FTS path) or :h2 / :sqlite (LIKE fallback) Returns: SearchStore implementing ISearchStore
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |