Liking cljdoc? Tell your friends :D
Clojure only.

boundary.search.shell.persistence

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)
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)
raw docstring

create-search-storeclj

(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
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