db

package
v0.0.0-...-72f9dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound - запись не найдена
	ErrNotFound = errors.New("record not found")
)

Functions

This section is empty.

Types

type Database

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

func New

func New(ctx context.Context) (*Database, error)

func (*Database) Close

func (db *Database) Close()

func (*Database) CreateOrder

func (db *Database) CreateOrder(ctx context.Context, order *model.Order) error

func (*Database) GetOrder

func (db *Database) GetOrder(ctx context.Context, id string) (*model.Order, error)

func (*Database) GetOrders

func (db *Database) GetOrders(ctx context.Context) ([]*model.Order, error)

Jump to

Keyboard shortcuts

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