postgres

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database added in v0.1.1

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

func NewDatabase added in v0.1.1

func NewDatabase(c office.Database) (*Database, error)

func (*Database) Close added in v0.1.1

func (db *Database) Close() error

func (*Database) Migrate added in v0.1.1

func (db *Database) Migrate() error

func (*Database) Open added in v0.1.1

func (db *Database) Open() error

func (*Database) WithQuery added in v0.1.1

func (db *Database) WithQuery(query driver.Query) error

func (*Database) WithTransaction added in v0.1.1

func (db *Database) WithTransaction(ctx context.Context, tx driver.Transaction) error

type Service

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

func NewService

func NewService(db *Database) Service

func (Service) Create

func (s Service) Create(ctx context.Context, r *office.CreateRequest) error

func (Service) FindMany

func (Service) FindOne

func (Service) Update

func (s Service) Update(ctx context.Context, r *office.UpdateRequest) error

Jump to

Keyboard shortcuts

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