Liking cljdoc? Tell your friends :D
Clojure only.

wagoe.search.shell.persistence

Database persistence for search documents.

Implements ISearchStore using next.jdbc + HoneySQL for DML and raw parameterized SQL for FTS-specific queries.

Strategies chosen by the adapter's capabilities (ADR-039):

  • :full-text — to_tsvector/plainto_tsquery + ts_rank + ts_headline, and pg_trgm suggestions where it is installed; without it, a LOWER/LIKE fallback
  • :on-conflict — INSERT … ON CONFLICT DO UPDATE; without it, delete and insert in one transaction
Database persistence for search documents.

Implements ISearchStore using next.jdbc + HoneySQL for DML
and raw parameterized SQL for FTS-specific queries.

Strategies chosen by the adapter's capabilities (ADR-039):
- :full-text — to_tsvector/plainto_tsquery + ts_rank + ts_headline, and
  pg_trgm suggestions where it is installed; without it, a LOWER/LIKE fallback
- :on-conflict — INSERT … ON CONFLICT DO UPDATE; without it, delete and
  insert in one transaction
raw docstring

create-search-storeclj

(create-search-store datasource adapter)

Create a SearchStore backed by a JDBC datasource.

Args: datasource - javax.sql.DataSource adapter - the database's DBAdapter; its :full-text and :on-conflict capabilities choose the query and upsert strategies

Returns: SearchStore implementing ISearchStore

Create a SearchStore backed by a JDBC datasource.

Args:
  datasource - javax.sql.DataSource
  adapter    - the database's DBAdapter; its :full-text and :on-conflict
               capabilities choose the query and upsert strategies

Returns:
  SearchStore implementing ISearchStore
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close