postgres

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

README

Postgres Backend

Testing

By default, the postgres tests are skipped. To run the tests, set the environment variable POSTGRES_ENABLED to true before running the tests and have a postgres server running on localhost:5432 with a database named postgres and a user postgres with password postgres.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresBackend

func NewPostgresBackend(opts *PostgresOptions, logger backend.Logger) backend.Backend

NewPostgresBackend creates a new postgres-based Backend object.

Types

type PostgresOptions

type PostgresOptions struct {
	PgOptions                *pgxpool.Config
	OrchestrationLockTimeout time.Duration
	ActivityLockTimeout      time.Duration
}

func NewPostgresOptions

func NewPostgresOptions(host string, port uint16, database string, user string, password string) *PostgresOptions

NewPostgresOptions creates a new options object for the postgres backend provider.

Jump to

Keyboard shortcuts

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