postgres

package
v0.0.0-...-d3cfb62 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationsFS embed.FS

Functions

func NewPool

func NewPool(
	ctx context.Context, options ...PoolOption,
) (*pgxpool.Pool, error)

Types

type Client

type Client struct {
	Pool *pgxpool.Pool
}

func NewClient

func NewClient(ctx context.Context, dbURL string) (*Client, error)

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

type PoolOption

type PoolOption func(*Pool)

func WithConnString

func WithConnString(connString string) PoolOption

func WithoutMigrations

func WithoutMigrations() PoolOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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