database

package
v0.0.0-...-0a0505a Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB) error

Types

type OrderRepository

type OrderRepository struct {
	Db *sql.DB
}

func NewOrderRepository

func NewOrderRepository(db *sql.DB) *OrderRepository

func (*OrderRepository) GetTotal

func (r *OrderRepository) GetTotal() (int, error)

func (*OrderRepository) List

func (r *OrderRepository) List() ([]entity.Order, error)

func (*OrderRepository) Save

func (r *OrderRepository) Save(order *entity.Order) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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