Documentation ¶
Index ¶
Constants ¶
View Source
const ( SearchModuleNone = "" SearchModuleGroonga = "pgroonga" SearchModuleTrigram = "pgtrigram" SearchModuleFts = "pgfts" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶ added in v0.53.0
type Db struct {
// contains filtered or unexported fields
}
Db implements persistence.Db
func MustGetDb ¶ added in v0.53.0
func MustGetDb(ctx context.Context, dsName string, search SearchModuleName) *Db
MustGetDb does the same as GetDb but panics in case of an error
func (*Db) NewModelTx ¶ added in v0.53.0
func (d *Db) NewModelTx(ctx context.Context) persistence.ModelTx
NewModelTx returns the new ModelTx object
type SearchFn ¶ added in v0.53.0
type SearchFn func(ctx context.Context, qx sqlx.QueryerContext, r persistence.Node, q persistence.SearchQuery) (persistence.SearchQueryResult, error)
SearchFn is used to provide different search implementations
type SearchModuleName ¶ added in v0.53.0
type SearchModuleName string
Click to show internal directories.
Click to hide internal directories.