postgres

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgres

func NewPostgres(logger logger.Logger) bindings.OutputBinding

NewPostgres returns a new PostgreSQL output binding.

Types

type Postgres

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

Postgres represents PostgreSQL output binding.

func (*Postgres) Close added in v1.4.4

func (p *Postgres) Close() error

Close close PostgreSql instance.

func (*Postgres) GetComponentMetadata added in v1.11.0

func (p *Postgres) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*Postgres) Init

func (p *Postgres) Init(ctx context.Context, meta bindings.Metadata) error

Init initializes the PostgreSql binding.

func (*Postgres) Invoke

func (p *Postgres) Invoke(ctx context.Context, req *bindings.InvokeRequest) (resp *bindings.InvokeResponse, err error)

Invoke handles all invoke operations.

func (*Postgres) Operations

func (p *Postgres) Operations() []bindings.OperationKind

Operations returns list of operations supported by PostgreSql binding.

Jump to

Keyboard shortcuts

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