trigram

package
v0.104.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

FcTranslator is the filter conditions translator from simila QL to the Postgres dialect

Functions

func Migrations added in v0.56.0

func Migrations(rollback bool) []*migrate.Migration

Migrations returns migrations to be applied on top of the "common" migrations for the "trigram" search module to work, the "trigram" module migration IDs range is [2000-2999]

Search is an implementation of the postgres.SearchFn function based on the "pg_trgm" postgres extension. SearchQuery.TextQuery is text, no expressions are supported for now, the whole segment of text is matched against the whole query text using `trigram word similarity`, see https://www.postgresql.org/docs/current/pgtrgm.html.

func SessionParams added in v0.56.0

func SessionParams() map[string]any

SessionParams returns a map of k:v pairs, which represent DB settings to be applied as soon as the DB session is started. This may be needed to tweak parameters of the DB extension, since some controlled DB envs (e.g. RDS) do not always allow to modify system or DB settings on a permanent basis (i.e. ALTER SYSTEM/DATABASE SET..).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL