postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func NewDriver

func NewDriver(c office.Database) (*Driver, error)

func (*Driver) BeginTx

func (d *Driver) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

func (*Driver) Close

func (d *Driver) Close() error

func (*Driver) Migrate

func (d *Driver) Migrate() error

func (*Driver) Open

func (d *Driver) Open() error

type Migration

type Migration struct {
	FileName string
	Query    string
}

type Service

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

TODO: User Driver from core-go

func NewService

func NewService(d *Driver) 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

type Tx

type Tx struct {
	*sql.Tx
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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