postgresql

package
v0.0.0-...-3b037d6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoAffectedRows = errors.New("no affected rows")
)

Functions

This section is empty.

Types

type Store

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

func New

func New(pool *pgxpool.Pool) *Store

func (*Store) Append

func (s *Store) Append(ctx context.Context, p *pm.Process) error

func (*Store) Load

func (s *Store) Load(ctx context.Context, kind string, pid uuid.UUID) (*pm.Process, error)

func (*Store) Remove

func (s *Store) Remove(ctx context.Context, pid uuid.UUID) error

func (*Store) Save

func (s *Store) Save(ctx context.Context, p *pm.Process) error

Jump to

Keyboard shortcuts

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