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

store

package
v0.2.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, databaseURL, dir string) error

func MigrateFS added in v0.2.5

func MigrateFS(ctx context.Context, databaseURL string, migrations fs.FS) error

func Migrations added in v0.2.5

func Migrations() fs.FS

Types

type Store

type Store struct{ Pool *pgxpool.Pool }

func Open

func Open(ctx context.Context, databaseURL string) (*Store, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) Identity

func (s *Store) Identity(ctx context.Context, userID string, fn func(pgx.Tx) error) error

func (*Store) Tenant

func (s *Store) Tenant(ctx context.Context, orgID, userID string, fn func(pgx.Tx) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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