postgresbackend

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresBackend

func NewPostgresBackend(host string, port int, user, password, database string, opts ...option) *postgresBackend

func NewPostgresBackendWithDb added in v1.0.1

func NewPostgresBackendWithDb(db *sql.DB, opts ...option) *postgresBackend

func SQLReplacer

func SQLReplacer(src string) string

func WithApplyMigrations

func WithApplyMigrations(applyMigrations bool) option

WithApplyMigrations automatically applies database migrations on startup.

func WithBackendOptions

func WithBackendOptions(opts ...backend.BackendOption) option

WithBackendOptions allows to pass generic backend options.

func WithPostgreSQLOptions

func WithPostgreSQLOptions(f func(db *sql.DB)) option

Types

This section is empty.

Jump to

Keyboard shortcuts

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