postgres

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: 17 Imported by: 0

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 GetDb

func GetDb(ctx context.Context, dsName string, search SearchModuleName) (*Db, error)

GetDb returns the Db object built for the given configuration

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) Init added in v0.53.0

func (d *Db) Init(ctx context.Context) error

Init implements linker.Initializer interface

func (*Db) NewModelTx added in v0.53.0

func (d *Db) NewModelTx(ctx context.Context) persistence.ModelTx

NewModelTx returns the new ModelTx object

func (*Db) NewTx added in v0.53.0

func (d *Db) NewTx(ctx context.Context) persistence.Tx

NewTx returns the new Tx object

func (*Db) Shutdown added in v0.53.0

func (d *Db) Shutdown()

Shutdown implements linker.Shutdowner interface

type SearchFn added in v0.53.0

SearchFn is used to provide different search implementations

type SearchModuleName added in v0.53.0

type SearchModuleName string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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