load

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres added in v0.1.0

type Postgres struct {
	// contains filtered or unexported fields
}

func NewPostgres added in v0.1.0

func NewPostgres(dbConn string) (*Postgres, error)

func (*Postgres) Close added in v0.1.0

func (p *Postgres) Close()

func (*Postgres) Init added in v0.1.0

func (p *Postgres) Init(index string, srid int, lang language.Tag) error

Init initialize search index. Should be idempotent!

Since not all DDL in Postgres support the "if not exists" syntax we use a bit of pl/pgsql to make it idempotent.

func (*Postgres) Load added in v0.1.0

func (p *Postgres) Load(records []t.SearchIndexRecord, index string) (int64, error)

func (*Postgres) Optimize added in v0.1.13

func (p *Postgres) Optimize() error

Jump to

Keyboard shortcuts

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