Documentation
¶
Index ¶
- type Postgres
- func (p *Postgres) Close()
- func (p *Postgres) GetVersion(collectionID string, index string) (string, error)
- func (p *Postgres) Init(index string, srid int, lang language.Tag) error
- func (p *Postgres) Load(records []t.SearchIndexRecord) (int64, error)
- func (p *Postgres) Optimize() error
- func (p *Postgres) PostLoad(collectionID string, index string, collectionVersion string) error
- func (p *Postgres) PreLoad(collectionID string, index string) error
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 (*Postgres) GetVersion ¶ added in v0.1.34
Get the current version of a collection in the search index
func (*Postgres) Init ¶ added in v0.1.0
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) (int64, error)
Click to show internal directories.
Click to hide internal directories.