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 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.

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