postgres

package
v0.0.0-...-bb36b98 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(connStr string, config *Config) (*sql.DB, error)

func MigrateDir

func MigrateDir(db *sql.DB, dir string) ([]string, error)

MigrateDir applies migrations with Goose and returns the list of applied migration files.

func MigrateFS

func MigrateFS(db *sql.DB, fs fs.FS) ([]string, error)

MigrateFS applies migrations with Goose and returns the list of applied migration files.

Types

type Config

type Config struct {
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration

	WaitForReadyTimeout    time.Duration
	WaitForReadyMaxBackoff time.Duration
}

Jump to

Keyboard shortcuts

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