ingredient

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingredient

type Ingredient struct {
	Id   int64  `db:"ID" structs:"-"`
	Name string `db:"NAME" structs:"name"`
}

type Query

type Query interface {
	New() Query

	Get() (*Ingredient, error)
	Select() ([]Ingredient, error)

	Insert(Ingredient) (Ingredient, error)
	Update(Ingredient) (Ingredient, error)
	Delete(id int64) error

	Page(pageParams pgdb.OffsetPageParams) Query

	FilterById(ids ...int64) Query
	FilterByName(names ...string) Query
}

func NewQuery

func NewQuery(db *sqlx.DB) Query

Jump to

Keyboard shortcuts

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