Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, cfg Config) (*pgxpool.Pool, error)

Connect creates a new database connection pool

func RunMigrations

func RunMigrations(ctx context.Context, databaseURL string) error

RunMigrations runs database migrations from the embedded filesystem

Types

type Config

type Config struct {
	URL      string
	MaxConns int32
	MinConns int32
}

Config holds database configuration

Jump to

Keyboard shortcuts

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