postgresql

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

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

PostgreSQL state store.

func NewPostgreSQLStateStore

func NewPostgreSQLStateStore(logger logger.Logger) *PostgreSQL

NewPostgreSQLStateStore creates a new instance of PostgreSQL state store.

func (*PostgreSQL) BulkDelete

func (p *PostgreSQL) BulkDelete(req []state.DeleteRequest) error

BulkDelete removes multiple entries from the store.

func (*PostgreSQL) BulkGet added in v1.0.0

func (p *PostgreSQL) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)

BulkGet performs a bulks get operations.

func (*PostgreSQL) BulkSet

func (p *PostgreSQL) BulkSet(req []state.SetRequest) error

BulkSet adds/updates multiple entities on store.

func (*PostgreSQL) Close

func (p *PostgreSQL) Close() error

Close implements io.Closer.

func (*PostgreSQL) Delete

func (p *PostgreSQL) Delete(req *state.DeleteRequest) error

Delete removes an entity from the store.

func (*PostgreSQL) Features added in v1.1.1

func (p *PostgreSQL) Features() []state.Feature

Features returns the features available in this state store.

func (*PostgreSQL) Get

func (p *PostgreSQL) Get(req *state.GetRequest) (*state.GetResponse, error)

Get returns an entity from store.

func (*PostgreSQL) Init

func (p *PostgreSQL) Init(metadata state.Metadata) error

Init initializes the SQL server state store.

func (*PostgreSQL) Multi

func (p *PostgreSQL) Multi(request *state.TransactionalStateRequest) error

Multi handles multiple transactions. Implements TransactionalStore.

func (*PostgreSQL) Ping added in v1.4.4

func (p *PostgreSQL) Ping() error

func (*PostgreSQL) Set

func (p *PostgreSQL) Set(req *state.SetRequest) error

Set adds/updates an entity on store.

Jump to

Keyboard shortcuts

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