postgres

package
v0.0.0-...-0a06464 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	QueryTableExists = "SELECT EXISTS (SELECT FROM pg_tables where tablename = $1)"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, conn string, maxTimeout time.Duration) (*pgxpool.Pool, error)

func NewPostgresConfigurationStore

func NewPostgresConfigurationStore(logger logger.Logger) configuration.Store

Types

type ConfigurationStore

type ConfigurationStore struct {
	ActiveSubscriptions map[string]*subscription
	// contains filtered or unexported fields
}

func (*ConfigurationStore) Get

func (*ConfigurationStore) GetComponentMetadata

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

GetComponentMetadata returns the metadata of the component.

func (*ConfigurationStore) Init

func (p *ConfigurationStore) Init(parentCtx context.Context, metadata configuration.Metadata) error

func (*ConfigurationStore) Subscribe

func (*ConfigurationStore) Unsubscribe

Jump to

Keyboard shortcuts

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