Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteItem ¶
DeleteItem deletes a row in the item table based off of item_id.
Types ¶
type Item ¶
type Item struct { ID int `json:"id" db:"item_id"` ListID int `json:"listID" db:"list_id"` Name string `json:"name" db:"name"` Quantity int `json:"quantity" db:"quantity"` Created time.Time `json:"created" db:"created"` Modified time.Time `json:"modified" db:"modified"` }
Item is a type that contains the proper struct tags for both a JSON and Postgres representation of an item.
func CreateItem ¶
CreateItem inserts a new row into the item table.
func SelectItem ¶
SelectItem selects a single row from the item table based off given list_id and item_id.
Click to show internal directories.
Click to hide internal directories.