postgres

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDatabase

func OpenDatabase(ctx context.Context, cfg config.Config) (*sql.DB, func() error, error)

Types

type Store

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

func NewPostgresStore

func NewPostgresStore(db *sql.DB) *Store

func (*Store) Create

func (s *Store) Create(ctx context.Context, user domain.User) (domain.User, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, id string) (domain.User, error)

func (*Store) List

func (s *Store) List(ctx context.Context) ([]domain.User, error)

Jump to

Keyboard shortcuts

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