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

store

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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

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