postgres

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

func (p *Postgres) Close() error

Close close PostgreSql instance.

func (*Postgres) GetComponentMetadata

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