Documentation
¶
Index ¶
- Variables
- func ItemExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func ItemExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func ItemKindExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func ItemKindExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func ItemKinds(mods ...qm.QueryMod) itemKindQuery
- func ItemOptionExists(ctx context.Context, exec boil.ContextExecutor, itemID int64, optionID int64) (bool, error)
- func ItemOptionExistsG(ctx context.Context, itemID int64, optionID int64) (bool, error)
- func ItemOptions(mods ...qm.QueryMod) itemOptionQuery
- func ItemSideExists(ctx context.Context, exec boil.ContextExecutor, itemID int64, sideItemID int64) (bool, error)
- func ItemSideExistsG(ctx context.Context, itemID int64, sideItemID int64) (bool, error)
- func ItemSides(mods ...qm.QueryMod) itemSideQuery
- func Items(mods ...qm.QueryMod) itemQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func OptionExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func OptionExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func OptionKindExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func OptionKindExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func OptionKinds(mods ...qm.QueryMod) optionKindQuery
- func Options(mods ...qm.QueryMod) optionQuery
- func OrderExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func OrderExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func OrderItemExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func OrderItemExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func OrderItemOptionExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
- func OrderItemOptionExistsG(ctx context.Context, iD null.Int64) (bool, error)
- func OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery
- func OrderItems(mods ...qm.QueryMod) orderItemQuery
- func Orders(mods ...qm.QueryMod) orderQuery
- type Item
- func (o *Item) AddOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Item) AddOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error
- func (o *Item) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Item) DeleteG(ctx context.Context) (int64, error)
- func (o *Item) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Item) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Item) ItemOption(mods ...qm.QueryMod) itemOptionQuery
- func (o *Item) ItemSide(mods ...qm.QueryMod) itemSideQuery
- func (o *Item) Kind(mods ...qm.QueryMod) itemKindQuery
- func (o *Item) OrderItems(mods ...qm.QueryMod) orderItemQuery
- func (o *Item) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Item) ReloadG(ctx context.Context) error
- func (o *Item) SetItemOption(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Item) SetItemOptionG(ctx context.Context, insert bool, related *ItemOption) error
- func (o *Item) SetItemSide(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemSide) error
- func (o *Item) SetItemSideG(ctx context.Context, insert bool, related *ItemSide) error
- func (o *Item) SetKind(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemKind) error
- func (o *Item) SetKindG(ctx context.Context, insert bool, related *ItemKind) error
- func (o *Item) SetSideItemItemSide(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemSide) error
- func (o *Item) SetSideItemItemSideG(ctx context.Context, insert bool, related *ItemSide) error
- func (o *Item) SideItemItemSide(mods ...qm.QueryMod) itemSideQuery
- func (o *Item) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Item) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type ItemKind
- func (o *ItemKind) AddKindItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Item) error
- func (o *ItemKind) AddKindItemsG(ctx context.Context, insert bool, related ...*Item) error
- func (o *ItemKind) AddOptionKinds(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ItemKind) AddOptionKindsG(ctx context.Context, insert bool, related ...*OptionKind) error
- func (o *ItemKind) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ItemKind) DeleteG(ctx context.Context) (int64, error)
- func (o *ItemKind) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ItemKind) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ItemKind) KindItems(mods ...qm.QueryMod) itemQuery
- func (o *ItemKind) OptionKinds(mods ...qm.QueryMod) optionKindQuery
- func (o *ItemKind) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemKind) ReloadG(ctx context.Context) error
- func (o *ItemKind) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ItemKind) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type ItemKindSlice
- func (o ItemKindSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ItemKindSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ItemKindSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemKindSlice) ReloadAllG(ctx context.Context) error
- func (o ItemKindSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ItemKindSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ItemOption
- func (o *ItemOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ItemOption) DeleteG(ctx context.Context) (int64, error)
- func (o *ItemOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ItemOption) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ItemOption) Item(mods ...qm.QueryMod) itemQuery
- func (o *ItemOption) Option(mods ...qm.QueryMod) optionQuery
- func (o *ItemOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemOption) ReloadG(ctx context.Context) error
- func (o *ItemOption) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *ItemOption) SetItemG(ctx context.Context, insert bool, related *Item) error
- func (o *ItemOption) SetOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Option) error
- func (o *ItemOption) SetOptionG(ctx context.Context, insert bool, related *Option) error
- func (o *ItemOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ItemOption) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type ItemOptionSlice
- func (o ItemOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ItemOptionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ItemOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemOptionSlice) ReloadAllG(ctx context.Context) error
- func (o ItemOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ItemOptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ItemSide
- func (o *ItemSide) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ItemSide) DeleteG(ctx context.Context) (int64, error)
- func (o *ItemSide) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ItemSide) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ItemSide) Item(mods ...qm.QueryMod) itemQuery
- func (o *ItemSide) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemSide) ReloadG(ctx context.Context) error
- func (o *ItemSide) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *ItemSide) SetItemG(ctx context.Context, insert bool, related *Item) error
- func (o *ItemSide) SetSideItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *ItemSide) SetSideItemG(ctx context.Context, insert bool, related *Item) error
- func (o *ItemSide) SideItem(mods ...qm.QueryMod) itemQuery
- func (o *ItemSide) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ItemSide) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type ItemSideSlice
- func (o ItemSideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ItemSideSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ItemSideSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemSideSlice) ReloadAllG(ctx context.Context) error
- func (o ItemSideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ItemSideSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ItemSlice
- func (o ItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ItemSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ItemSlice) ReloadAllG(ctx context.Context) error
- func (o ItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ItemSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type Option
- func (o *Option) AddOrderItemOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Option) AddOrderItemOptionsG(ctx context.Context, insert bool, related ...*OrderItemOption) error
- func (o *Option) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Option) DeleteG(ctx context.Context) (int64, error)
- func (o *Option) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Option) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Option) ItemOption(mods ...qm.QueryMod) itemOptionQuery
- func (o *Option) Kind(mods ...qm.QueryMod) optionKindQuery
- func (o *Option) OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery
- func (o *Option) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Option) ReloadG(ctx context.Context) error
- func (o *Option) SetItemOption(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Option) SetItemOptionG(ctx context.Context, insert bool, related *ItemOption) error
- func (o *Option) SetKind(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Option) SetKindG(ctx context.Context, insert bool, related *OptionKind) error
- func (o *Option) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Option) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type OptionKind
- func (o *OptionKind) AddKindOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OptionKind) AddKindOptionsG(ctx context.Context, insert bool, related ...*Option) error
- func (o *OptionKind) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OptionKind) DeleteG(ctx context.Context) (int64, error)
- func (o *OptionKind) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OptionKind) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *OptionKind) ItemKind(mods ...qm.QueryMod) itemKindQuery
- func (o *OptionKind) KindOptions(mods ...qm.QueryMod) optionQuery
- func (o *OptionKind) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OptionKind) ReloadG(ctx context.Context) error
- func (o *OptionKind) SetItemKind(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemKind) error
- func (o *OptionKind) SetItemKindG(ctx context.Context, insert bool, related *ItemKind) error
- func (o *OptionKind) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OptionKind) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type OptionKindSlice
- func (o OptionKindSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o OptionKindSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *OptionKindSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OptionKindSlice) ReloadAllG(ctx context.Context) error
- func (o OptionKindSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o OptionKindSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type OptionSlice
- func (o OptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o OptionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *OptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OptionSlice) ReloadAllG(ctx context.Context) error
- func (o OptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o OptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type Order
- func (o *Order) AddOrderItemOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Order) AddOrderItemOptionsG(ctx context.Context, insert bool, related ...*OrderItemOption) error
- func (o *Order) AddOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Order) AddOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error
- func (o *Order) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Order) DeleteG(ctx context.Context) (int64, error)
- func (o *Order) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Order) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Order) OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery
- func (o *Order) OrderItems(mods ...qm.QueryMod) orderItemQuery
- func (o *Order) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Order) ReloadG(ctx context.Context) error
- func (o *Order) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Order) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type OrderItem
- func (o *OrderItem) AddMainOrderItemOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderItem) AddMainOrderItemOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error
- func (o *OrderItem) AddOrderItemOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderItem) AddOrderItemOptionsG(ctx context.Context, insert bool, related ...*OrderItemOption) error
- func (o *OrderItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OrderItem) DeleteG(ctx context.Context) (int64, error)
- func (o *OrderItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OrderItem) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *OrderItem) Item(mods ...qm.QueryMod) itemQuery
- func (o *OrderItem) MainOrderItem(mods ...qm.QueryMod) orderItemQuery
- func (o *OrderItem) MainOrderItemOrderItems(mods ...qm.QueryMod) orderItemQuery
- func (o *OrderItem) Order(mods ...qm.QueryMod) orderQuery
- func (o *OrderItem) OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery
- func (o *OrderItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderItem) ReloadG(ctx context.Context) error
- func (o *OrderItem) RemoveMainOrderItem(ctx context.Context, exec boil.ContextExecutor, related *OrderItem) error
- func (o *OrderItem) RemoveMainOrderItemG(ctx context.Context, related *OrderItem) error
- func (o *OrderItem) RemoveMainOrderItemOrderItems(ctx context.Context, exec boil.ContextExecutor, related ...*OrderItem) error
- func (o *OrderItem) RemoveMainOrderItemOrderItemsG(ctx context.Context, related ...*OrderItem) error
- func (o *OrderItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
- func (o *OrderItem) SetItemG(ctx context.Context, insert bool, related *Item) error
- func (o *OrderItem) SetMainOrderItem(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderItem) SetMainOrderItemG(ctx context.Context, insert bool, related *OrderItem) error
- func (o *OrderItem) SetMainOrderItemOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderItem) SetMainOrderItemOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error
- func (o *OrderItem) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Order) error
- func (o *OrderItem) SetOrderG(ctx context.Context, insert bool, related *Order) error
- func (o *OrderItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OrderItem) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type OrderItemOption
- func (o *OrderItemOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OrderItemOption) DeleteG(ctx context.Context) (int64, error)
- func (o *OrderItemOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OrderItemOption) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *OrderItemOption) Option(mods ...qm.QueryMod) optionQuery
- func (o *OrderItemOption) Order(mods ...qm.QueryMod) orderQuery
- func (o *OrderItemOption) OrderItem(mods ...qm.QueryMod) orderItemQuery
- func (o *OrderItemOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderItemOption) ReloadG(ctx context.Context) error
- func (o *OrderItemOption) SetOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Option) error
- func (o *OrderItemOption) SetOptionG(ctx context.Context, insert bool, related *Option) error
- func (o *OrderItemOption) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Order) error
- func (o *OrderItemOption) SetOrderG(ctx context.Context, insert bool, related *Order) error
- func (o *OrderItemOption) SetOrderItem(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderItemOption) SetOrderItemG(ctx context.Context, insert bool, related *OrderItem) error
- func (o *OrderItemOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OrderItemOption) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- type OrderItemOptionSlice
- func (o OrderItemOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o OrderItemOptionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *OrderItemOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderItemOptionSlice) ReloadAllG(ctx context.Context) error
- func (o OrderItemOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o OrderItemOptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type OrderItemSlice
- func (o OrderItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o OrderItemSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *OrderItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderItemSlice) ReloadAllG(ctx context.Context) error
- func (o OrderItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o OrderItemSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type OrderSlice
- func (o OrderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o OrderSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *OrderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderSlice) ReloadAllG(ctx context.Context) error
- func (o OrderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o OrderSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var ItemColumns = struct { ID string Deleted string Available string KindID string Name string Price string }{ ID: "id", Deleted: "deleted", Available: "available", KindID: "kind_id", Name: "name", Price: "price", }
var ItemKindColumns = struct { ID string Deleted string Name string }{ ID: "id", Deleted: "deleted", Name: "name", }
var ItemKindRels = struct { KindItems string OptionKinds string }{ KindItems: "KindItems", OptionKinds: "OptionKinds", }
ItemKindRels is where relationship names are stored.
var ItemKindWhere = struct { ID whereHelpernull_Int64 Deleted whereHelpernull_Int64 Name whereHelperstring }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Deleted: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var ItemOptionColumns = struct { ItemID string OptionID string IsDefault string Price string LightPrice string HeavyPrice string }{ ItemID: "item_id", OptionID: "option_id", IsDefault: "is_default", Price: "price", LightPrice: "light_price", HeavyPrice: "heavy_price", }
var ItemOptionRels = struct { Option string Item string }{ Option: "Option", Item: "Item", }
ItemOptionRels is where relationship names are stored.
var ItemOptionWhere = struct { ItemID whereHelperint64 OptionID whereHelperint64 IsDefault whereHelpernull_Int64 Price whereHelpernull_Int64 LightPrice whereHelpernull_Int64 HeavyPrice whereHelpernull_Int64 }{ ItemID: whereHelperint64{/* contains filtered or unexported fields */}, OptionID: whereHelperint64{/* contains filtered or unexported fields */}, IsDefault: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Price: whereHelpernull_Int64{/* contains filtered or unexported fields */}, LightPrice: whereHelpernull_Int64{/* contains filtered or unexported fields */}, HeavyPrice: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var ItemRels = struct { Kind string ItemOption string SideItemItemSide string ItemSide string OrderItems string }{ Kind: "Kind", ItemOption: "ItemOption", SideItemItemSide: "SideItemItemSide", ItemSide: "ItemSide", OrderItems: "OrderItems", }
ItemRels is where relationship names are stored.
var ItemSideColumns = struct { ItemID string SideItemID string IsDefault string Price string }{ ItemID: "item_id", SideItemID: "side_item_id", IsDefault: "is_default", Price: "price", }
var ItemSideRels = struct { SideItem string Item string }{ SideItem: "SideItem", Item: "Item", }
ItemSideRels is where relationship names are stored.
var ItemSideWhere = struct { ItemID whereHelperint64 SideItemID whereHelperint64 IsDefault whereHelpernull_Int64 Price whereHelpernull_Int64 }{ ItemID: whereHelperint64{/* contains filtered or unexported fields */}, SideItemID: whereHelperint64{/* contains filtered or unexported fields */}, IsDefault: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Price: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var ItemWhere = struct { ID whereHelpernull_Int64 Deleted whereHelpernull_Int64 Available whereHelpernull_Int64 KindID whereHelperint64 Name whereHelperstring Price whereHelperint64 }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Deleted: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Available: whereHelpernull_Int64{/* contains filtered or unexported fields */}, KindID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Price: whereHelperint64{/* contains filtered or unexported fields */}, }
var OptionColumns = struct { ID string Deleted string Available string KindID string Name string Price string LightPrice string HeavyPrice string }{ ID: "id", Deleted: "deleted", Available: "available", KindID: "kind_id", Name: "name", Price: "price", LightPrice: "light_price", HeavyPrice: "heavy_price", }
var OptionKindColumns = struct { ID string ItemKindID string Name string }{ ID: "id", ItemKindID: "item_kind_id", Name: "name", }
var OptionKindRels = struct { ItemKind string KindOptions string }{ ItemKind: "ItemKind", KindOptions: "KindOptions", }
OptionKindRels is where relationship names are stored.
var OptionKindWhere = struct { ID whereHelpernull_Int64 ItemKindID whereHelperint64 Name whereHelperstring }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, ItemKindID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var OptionRels = struct { Kind string ItemOption string OrderItemOptions string }{ Kind: "Kind", ItemOption: "ItemOption", OrderItemOptions: "OrderItemOptions", }
OptionRels is where relationship names are stored.
var OptionWhere = struct { ID whereHelpernull_Int64 Deleted whereHelpernull_Int64 Available whereHelpernull_Int64 KindID whereHelperint64 Name whereHelperstring Price whereHelperint64 LightPrice whereHelpernull_Int64 HeavyPrice whereHelpernull_Int64 }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Deleted: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Available: whereHelpernull_Int64{/* contains filtered or unexported fields */}, KindID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Price: whereHelperint64{/* contains filtered or unexported fields */}, LightPrice: whereHelpernull_Int64{/* contains filtered or unexported fields */}, HeavyPrice: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var OrderColumns = struct { ID string SubmittedAt string CompletedAt string }{ ID: "id", SubmittedAt: "submitted_at", CompletedAt: "completed_at", }
var OrderItemColumns = struct { ID string OrderID string ItemID string MainOrderItemID string Price string }{ ID: "id", OrderID: "order_id", ItemID: "item_id", MainOrderItemID: "main_order_item_id", Price: "price", }
var OrderItemOptionColumns = struct { ID string OrderID string OptionID string OrderItemID string Price string }{ ID: "id", OrderID: "order_id", OptionID: "option_id", OrderItemID: "order_item_id", Price: "price", }
var OrderItemOptionRels = struct { OrderItem string Option string Order string }{ OrderItem: "OrderItem", Option: "Option", Order: "Order", }
OrderItemOptionRels is where relationship names are stored.
var OrderItemOptionWhere = struct { ID whereHelpernull_Int64 OrderID whereHelperint64 OptionID whereHelperint64 OrderItemID whereHelperint64 Price whereHelpernull_Int64 }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, OrderID: whereHelperint64{/* contains filtered or unexported fields */}, OptionID: whereHelperint64{/* contains filtered or unexported fields */}, OrderItemID: whereHelperint64{/* contains filtered or unexported fields */}, Price: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var OrderItemRels = struct { MainOrderItem string Item string Order string OrderItemOptions string MainOrderItemOrderItems string }{ MainOrderItem: "MainOrderItem", Item: "Item", Order: "Order", OrderItemOptions: "OrderItemOptions", MainOrderItemOrderItems: "MainOrderItemOrderItems", }
OrderItemRels is where relationship names are stored.
var OrderItemWhere = struct { ID whereHelpernull_Int64 OrderID whereHelperint64 ItemID whereHelperint64 MainOrderItemID whereHelpernull_Int64 Price whereHelpernull_Int64 }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, OrderID: whereHelperint64{/* contains filtered or unexported fields */}, ItemID: whereHelperint64{/* contains filtered or unexported fields */}, MainOrderItemID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Price: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var OrderRels = struct { OrderItemOptions string OrderItems string }{ OrderItemOptions: "OrderItemOptions", OrderItems: "OrderItems", }
OrderRels is where relationship names are stored.
var OrderWhere = struct { ID whereHelpernull_Int64 SubmittedAt whereHelperint64 CompletedAt whereHelpernull_Int64 }{ ID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, SubmittedAt: whereHelperint64{/* contains filtered or unexported fields */}, CompletedAt: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var TableNames = struct { ItemKinds string ItemOptions string ItemSides string Items string OptionKinds string Options string OrderItemOptions string OrderItems string Orders string }{ ItemKinds: "item_kinds", ItemOptions: "item_options", ItemSides: "item_sides", Items: "items", OptionKinds: "option_kinds", Options: "options", OrderItemOptions: "order_item_options", OrderItems: "order_items", Orders: "orders", }
Functions ¶
func ItemExists ¶
ItemExists checks if the Item row exists.
func ItemExistsG ¶
ItemExistsG checks if the Item row exists.
func ItemKindExists ¶
ItemKindExists checks if the ItemKind row exists.
func ItemKindExistsG ¶
ItemKindExistsG checks if the ItemKind row exists.
func ItemOptionExists ¶
func ItemOptionExists(ctx context.Context, exec boil.ContextExecutor, itemID int64, optionID int64) (bool, error)
ItemOptionExists checks if the ItemOption row exists.
func ItemOptionExistsG ¶
ItemOptionExistsG checks if the ItemOption row exists.
func ItemOptions ¶
ItemOptions retrieves all the records using an executor.
func ItemSideExists ¶
func ItemSideExists(ctx context.Context, exec boil.ContextExecutor, itemID int64, sideItemID int64) (bool, error)
ItemSideExists checks if the ItemSide row exists.
func ItemSideExistsG ¶
ItemSideExistsG checks if the ItemSide row exists.
func OptionExists ¶
OptionExists checks if the Option row exists.
func OptionExistsG ¶
OptionExistsG checks if the Option row exists.
func OptionKindExists ¶
OptionKindExists checks if the OptionKind row exists.
func OptionKindExistsG ¶
OptionKindExistsG checks if the OptionKind row exists.
func OptionKinds ¶
OptionKinds retrieves all the records using an executor.
func OrderExists ¶
OrderExists checks if the Order row exists.
func OrderExistsG ¶
OrderExistsG checks if the Order row exists.
func OrderItemExists ¶
OrderItemExists checks if the OrderItem row exists.
func OrderItemExistsG ¶
OrderItemExistsG checks if the OrderItem row exists.
func OrderItemOptionExists ¶
func OrderItemOptionExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)
OrderItemOptionExists checks if the OrderItemOption row exists.
func OrderItemOptionExistsG ¶
OrderItemOptionExistsG checks if the OrderItemOption row exists.
func OrderItemOptions ¶
OrderItemOptions retrieves all the records using an executor.
func OrderItems ¶
OrderItems retrieves all the records using an executor.
Types ¶
type Item ¶
type Item struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` Deleted null.Int64 `boil:"deleted" json:"deleted,omitempty" toml:"deleted" yaml:"deleted,omitempty"` Available null.Int64 `boil:"available" json:"available,omitempty" toml:"available" yaml:"available,omitempty"` KindID int64 `boil:"kind_id" json:"kindID" toml:"kindID" yaml:"kindID"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Price int64 `boil:"price" json:"price" toml:"price" yaml:"price"` R *itemR `boil:"-" json:"-" toml:"-" yaml:"-"` L itemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Item is an object representing the database table.
func FindItem ¶
func FindItem(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*Item, error)
FindItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Item) AddOrderItems ¶
func (o *Item) AddOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItem) error
AddOrderItems adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.OrderItems. Sets related.R.Item appropriately.
func (*Item) AddOrderItemsG ¶
AddOrderItemsG adds the given related objects to the existing relationships of the item, optionally inserting them as new records. Appends related to o.R.OrderItems. Sets related.R.Item appropriately. Uses the global database handle.
func (*Item) Delete ¶
Delete deletes a single Item record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Item) DeleteG ¶
DeleteG deletes a single Item record. DeleteG will match against the primary key column to find the record to delete.
func (*Item) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Item) ItemOption ¶
ItemOption pointed to by the foreign key.
func (*Item) OrderItems ¶
OrderItems retrieves all the order_item's OrderItems with an executor.
func (*Item) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Item) SetItemOption ¶
func (o *Item) SetItemOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemOption) error
SetItemOption of the item to the related item. Sets o.R.ItemOption to related. Adds o to related.R.Item.
func (*Item) SetItemOptionG ¶
SetItemOptionG of the item to the related item. Sets o.R.ItemOption to related. Adds o to related.R.Item. Uses the global database handle.
func (*Item) SetItemSide ¶
func (o *Item) SetItemSide(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemSide) error
SetItemSide of the item to the related item. Sets o.R.ItemSide to related. Adds o to related.R.Item.
func (*Item) SetItemSideG ¶
SetItemSideG of the item to the related item. Sets o.R.ItemSide to related. Adds o to related.R.Item. Uses the global database handle.
func (*Item) SetKind ¶
func (o *Item) SetKind(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemKind) error
SetKind of the item to the related item. Sets o.R.Kind to related. Adds o to related.R.KindItems.
func (*Item) SetKindG ¶
SetKindG of the item to the related item. Sets o.R.Kind to related. Adds o to related.R.KindItems. Uses the global database handle.
func (*Item) SetSideItemItemSide ¶
func (o *Item) SetSideItemItemSide(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemSide) error
SetSideItemItemSide of the item to the related item. Sets o.R.SideItemItemSide to related. Adds o to related.R.SideItem.
func (*Item) SetSideItemItemSideG ¶
SetSideItemItemSideG of the item to the related item. Sets o.R.SideItemItemSide to related. Adds o to related.R.SideItem. Uses the global database handle.
func (*Item) SideItemItemSide ¶
SideItemItemSide pointed to by the foreign key.
func (*Item) Update ¶
func (o *Item) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Item. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type ItemKind ¶
type ItemKind struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` Deleted null.Int64 `boil:"deleted" json:"deleted,omitempty" toml:"deleted" yaml:"deleted,omitempty"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *itemKindR `boil:"-" json:"-" toml:"-" yaml:"-"` L itemKindL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ItemKind is an object representing the database table.
func FindItemKind ¶
func FindItemKind(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*ItemKind, error)
FindItemKind retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindItemKindG ¶
FindItemKindG retrieves a single record by ID.
func (*ItemKind) AddKindItems ¶
func (o *ItemKind) AddKindItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Item) error
AddKindItems adds the given related objects to the existing relationships of the item_kind, optionally inserting them as new records. Appends related to o.R.KindItems. Sets related.R.Kind appropriately.
func (*ItemKind) AddKindItemsG ¶
AddKindItemsG adds the given related objects to the existing relationships of the item_kind, optionally inserting them as new records. Appends related to o.R.KindItems. Sets related.R.Kind appropriately. Uses the global database handle.
func (*ItemKind) AddOptionKinds ¶
func (o *ItemKind) AddOptionKinds(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OptionKind) error
AddOptionKinds adds the given related objects to the existing relationships of the item_kind, optionally inserting them as new records. Appends related to o.R.OptionKinds. Sets related.R.ItemKind appropriately.
func (*ItemKind) AddOptionKindsG ¶
AddOptionKindsG adds the given related objects to the existing relationships of the item_kind, optionally inserting them as new records. Appends related to o.R.OptionKinds. Sets related.R.ItemKind appropriately. Uses the global database handle.
func (*ItemKind) Delete ¶
Delete deletes a single ItemKind record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ItemKind) DeleteG ¶
DeleteG deletes a single ItemKind record. DeleteG will match against the primary key column to find the record to delete.
func (*ItemKind) Insert ¶
func (o *ItemKind) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ItemKind) KindItems ¶
KindItems retrieves all the item's Items with an executor via kind_id column.
func (*ItemKind) OptionKinds ¶
OptionKinds retrieves all the option_kind's OptionKinds with an executor.
func (*ItemKind) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*ItemKind) Update ¶
func (o *ItemKind) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ItemKind. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type ItemKindSlice ¶
type ItemKindSlice []*ItemKind
ItemKindSlice is an alias for a slice of pointers to ItemKind. This should generally be used opposed to []ItemKind.
func (ItemKindSlice) DeleteAll ¶
func (o ItemKindSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ItemKindSlice) DeleteAllG ¶
func (o ItemKindSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ItemKindSlice) ReloadAll ¶
func (o *ItemKindSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ItemKindSlice) ReloadAllG ¶
func (o *ItemKindSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ItemKindSlice) UpdateAll ¶
func (o ItemKindSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ItemKindSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ItemOption ¶
type ItemOption struct { ItemID int64 `boil:"item_id" json:"itemID" toml:"itemID" yaml:"itemID"` OptionID int64 `boil:"option_id" json:"optionID" toml:"optionID" yaml:"optionID"` IsDefault null.Int64 `boil:"is_default" json:"isDefault,omitempty" toml:"isDefault" yaml:"isDefault,omitempty"` Price null.Int64 `boil:"price" json:"price,omitempty" toml:"price" yaml:"price,omitempty"` LightPrice null.Int64 `boil:"light_price" json:"lightPrice,omitempty" toml:"lightPrice" yaml:"lightPrice,omitempty"` HeavyPrice null.Int64 `boil:"heavy_price" json:"heavyPrice,omitempty" toml:"heavyPrice" yaml:"heavyPrice,omitempty"` R *itemOptionR `boil:"-" json:"-" toml:"-" yaml:"-"` L itemOptionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ItemOption is an object representing the database table.
func FindItemOption ¶
func FindItemOption(ctx context.Context, exec boil.ContextExecutor, itemID int64, optionID int64, selectCols ...string) (*ItemOption, error)
FindItemOption retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindItemOptionG ¶
func FindItemOptionG(ctx context.Context, itemID int64, optionID int64, selectCols ...string) (*ItemOption, error)
FindItemOptionG retrieves a single record by ID.
func (*ItemOption) Delete ¶
func (o *ItemOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ItemOption record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ItemOption) DeleteG ¶
func (o *ItemOption) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ItemOption record. DeleteG will match against the primary key column to find the record to delete.
func (*ItemOption) Insert ¶
func (o *ItemOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ItemOption) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ItemOption) Item ¶
func (o *ItemOption) Item(mods ...qm.QueryMod) itemQuery
Item pointed to by the foreign key.
func (*ItemOption) Option ¶
func (o *ItemOption) Option(mods ...qm.QueryMod) optionQuery
Option pointed to by the foreign key.
func (*ItemOption) Reload ¶
func (o *ItemOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ItemOption) ReloadG ¶
func (o *ItemOption) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ItemOption) SetItem ¶
func (o *ItemOption) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the itemOption to the related item. Sets o.R.Item to related. Adds o to related.R.ItemOption.
func (*ItemOption) SetItemG ¶
SetItemG of the itemOption to the related item. Sets o.R.Item to related. Adds o to related.R.ItemOption. Uses the global database handle.
func (*ItemOption) SetOption ¶
func (o *ItemOption) SetOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Option) error
SetOption of the itemOption to the related item. Sets o.R.Option to related. Adds o to related.R.ItemOption.
func (*ItemOption) SetOptionG ¶
SetOptionG of the itemOption to the related item. Sets o.R.Option to related. Adds o to related.R.ItemOption. Uses the global database handle.
func (*ItemOption) Update ¶
func (o *ItemOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ItemOption. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type ItemOptionSlice ¶
type ItemOptionSlice []*ItemOption
ItemOptionSlice is an alias for a slice of pointers to ItemOption. This should generally be used opposed to []ItemOption.
func (ItemOptionSlice) DeleteAll ¶
func (o ItemOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ItemOptionSlice) DeleteAllG ¶
func (o ItemOptionSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ItemOptionSlice) ReloadAll ¶
func (o *ItemOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ItemOptionSlice) ReloadAllG ¶
func (o *ItemOptionSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ItemOptionSlice) UpdateAll ¶
func (o ItemOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ItemOptionSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ItemSide ¶
type ItemSide struct { ItemID int64 `boil:"item_id" json:"itemID" toml:"itemID" yaml:"itemID"` SideItemID int64 `boil:"side_item_id" json:"sideItemID" toml:"sideItemID" yaml:"sideItemID"` IsDefault null.Int64 `boil:"is_default" json:"isDefault,omitempty" toml:"isDefault" yaml:"isDefault,omitempty"` Price null.Int64 `boil:"price" json:"price,omitempty" toml:"price" yaml:"price,omitempty"` R *itemSideR `boil:"-" json:"-" toml:"-" yaml:"-"` L itemSideL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ItemSide is an object representing the database table.
func FindItemSide ¶
func FindItemSide(ctx context.Context, exec boil.ContextExecutor, itemID int64, sideItemID int64, selectCols ...string) (*ItemSide, error)
FindItemSide retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindItemSideG ¶
func FindItemSideG(ctx context.Context, itemID int64, sideItemID int64, selectCols ...string) (*ItemSide, error)
FindItemSideG retrieves a single record by ID.
func (*ItemSide) Delete ¶
Delete deletes a single ItemSide record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ItemSide) DeleteG ¶
DeleteG deletes a single ItemSide record. DeleteG will match against the primary key column to find the record to delete.
func (*ItemSide) Insert ¶
func (o *ItemSide) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*ItemSide) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*ItemSide) SetItem ¶
func (o *ItemSide) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the itemSide to the related item. Sets o.R.Item to related. Adds o to related.R.ItemSide.
func (*ItemSide) SetItemG ¶
SetItemG of the itemSide to the related item. Sets o.R.Item to related. Adds o to related.R.ItemSide. Uses the global database handle.
func (*ItemSide) SetSideItem ¶
func (o *ItemSide) SetSideItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetSideItem of the itemSide to the related item. Sets o.R.SideItem to related. Adds o to related.R.SideItemItemSide.
func (*ItemSide) SetSideItemG ¶
SetSideItemG of the itemSide to the related item. Sets o.R.SideItem to related. Adds o to related.R.SideItemItemSide. Uses the global database handle.
func (*ItemSide) Update ¶
func (o *ItemSide) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ItemSide. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type ItemSideSlice ¶
type ItemSideSlice []*ItemSide
ItemSideSlice is an alias for a slice of pointers to ItemSide. This should generally be used opposed to []ItemSide.
func (ItemSideSlice) DeleteAll ¶
func (o ItemSideSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ItemSideSlice) DeleteAllG ¶
func (o ItemSideSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ItemSideSlice) ReloadAll ¶
func (o *ItemSideSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ItemSideSlice) ReloadAllG ¶
func (o *ItemSideSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ItemSideSlice) UpdateAll ¶
func (o ItemSideSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ItemSideSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ItemSlice ¶
type ItemSlice []*Item
ItemSlice is an alias for a slice of pointers to Item. This should generally be used opposed to []Item.
func (ItemSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*ItemSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ItemSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Option ¶
type Option struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` Deleted null.Int64 `boil:"deleted" json:"deleted,omitempty" toml:"deleted" yaml:"deleted,omitempty"` Available null.Int64 `boil:"available" json:"available,omitempty" toml:"available" yaml:"available,omitempty"` KindID int64 `boil:"kind_id" json:"kindID" toml:"kindID" yaml:"kindID"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Price int64 `boil:"price" json:"price" toml:"price" yaml:"price"` LightPrice null.Int64 `boil:"light_price" json:"lightPrice,omitempty" toml:"lightPrice" yaml:"lightPrice,omitempty"` HeavyPrice null.Int64 `boil:"heavy_price" json:"heavyPrice,omitempty" toml:"heavyPrice" yaml:"heavyPrice,omitempty"` R *optionR `boil:"-" json:"-" toml:"-" yaml:"-"` L optionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Option is an object representing the database table.
func FindOption ¶
func FindOption(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*Option, error)
FindOption retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindOptionG ¶
FindOptionG retrieves a single record by ID.
func (*Option) AddOrderItemOptions ¶
func (o *Option) AddOrderItemOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItemOption) error
AddOrderItemOptions adds the given related objects to the existing relationships of the option, optionally inserting them as new records. Appends related to o.R.OrderItemOptions. Sets related.R.Option appropriately.
func (*Option) AddOrderItemOptionsG ¶
func (o *Option) AddOrderItemOptionsG(ctx context.Context, insert bool, related ...*OrderItemOption) error
AddOrderItemOptionsG adds the given related objects to the existing relationships of the option, optionally inserting them as new records. Appends related to o.R.OrderItemOptions. Sets related.R.Option appropriately. Uses the global database handle.
func (*Option) Delete ¶
Delete deletes a single Option record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Option) DeleteG ¶
DeleteG deletes a single Option record. DeleteG will match against the primary key column to find the record to delete.
func (*Option) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Option) ItemOption ¶
ItemOption pointed to by the foreign key.
func (*Option) OrderItemOptions ¶
OrderItemOptions retrieves all the order_item_option's OrderItemOptions with an executor.
func (*Option) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Option) SetItemOption ¶
func (o *Option) SetItemOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemOption) error
SetItemOption of the option to the related item. Sets o.R.ItemOption to related. Adds o to related.R.Option.
func (*Option) SetItemOptionG ¶
SetItemOptionG of the option to the related item. Sets o.R.ItemOption to related. Adds o to related.R.Option. Uses the global database handle.
func (*Option) SetKind ¶
func (o *Option) SetKind(ctx context.Context, exec boil.ContextExecutor, insert bool, related *OptionKind) error
SetKind of the option to the related item. Sets o.R.Kind to related. Adds o to related.R.KindOptions.
func (*Option) SetKindG ¶
SetKindG of the option to the related item. Sets o.R.Kind to related. Adds o to related.R.KindOptions. Uses the global database handle.
func (*Option) Update ¶
func (o *Option) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Option. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type OptionKind ¶
type OptionKind struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` ItemKindID int64 `boil:"item_kind_id" json:"itemKindID" toml:"itemKindID" yaml:"itemKindID"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *optionKindR `boil:"-" json:"-" toml:"-" yaml:"-"` L optionKindL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OptionKind is an object representing the database table.
func FindOptionKind ¶
func FindOptionKind(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*OptionKind, error)
FindOptionKind retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindOptionKindG ¶
func FindOptionKindG(ctx context.Context, iD null.Int64, selectCols ...string) (*OptionKind, error)
FindOptionKindG retrieves a single record by ID.
func (*OptionKind) AddKindOptions ¶
func (o *OptionKind) AddKindOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Option) error
AddKindOptions adds the given related objects to the existing relationships of the option_kind, optionally inserting them as new records. Appends related to o.R.KindOptions. Sets related.R.Kind appropriately.
func (*OptionKind) AddKindOptionsG ¶
AddKindOptionsG adds the given related objects to the existing relationships of the option_kind, optionally inserting them as new records. Appends related to o.R.KindOptions. Sets related.R.Kind appropriately. Uses the global database handle.
func (*OptionKind) Delete ¶
func (o *OptionKind) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OptionKind record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OptionKind) DeleteG ¶
func (o *OptionKind) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single OptionKind record. DeleteG will match against the primary key column to find the record to delete.
func (*OptionKind) Insert ¶
func (o *OptionKind) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*OptionKind) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*OptionKind) ItemKind ¶
func (o *OptionKind) ItemKind(mods ...qm.QueryMod) itemKindQuery
ItemKind pointed to by the foreign key.
func (*OptionKind) KindOptions ¶
func (o *OptionKind) KindOptions(mods ...qm.QueryMod) optionQuery
KindOptions retrieves all the option's Options with an executor via kind_id column.
func (*OptionKind) Reload ¶
func (o *OptionKind) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OptionKind) ReloadG ¶
func (o *OptionKind) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*OptionKind) SetItemKind ¶
func (o *OptionKind) SetItemKind(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ItemKind) error
SetItemKind of the optionKind to the related item. Sets o.R.ItemKind to related. Adds o to related.R.OptionKinds.
func (*OptionKind) SetItemKindG ¶
SetItemKindG of the optionKind to the related item. Sets o.R.ItemKind to related. Adds o to related.R.OptionKinds. Uses the global database handle.
func (*OptionKind) Update ¶
func (o *OptionKind) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OptionKind. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type OptionKindSlice ¶
type OptionKindSlice []*OptionKind
OptionKindSlice is an alias for a slice of pointers to OptionKind. This should generally be used opposed to []OptionKind.
func (OptionKindSlice) DeleteAll ¶
func (o OptionKindSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (OptionKindSlice) DeleteAllG ¶
func (o OptionKindSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*OptionKindSlice) ReloadAll ¶
func (o *OptionKindSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*OptionKindSlice) ReloadAllG ¶
func (o *OptionKindSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OptionKindSlice) UpdateAll ¶
func (o OptionKindSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (OptionKindSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type OptionSlice ¶
type OptionSlice []*Option
OptionSlice is an alias for a slice of pointers to Option. This should generally be used opposed to []Option.
func (OptionSlice) DeleteAll ¶
func (o OptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (OptionSlice) DeleteAllG ¶
func (o OptionSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*OptionSlice) ReloadAll ¶
func (o *OptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*OptionSlice) ReloadAllG ¶
func (o *OptionSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OptionSlice) UpdateAll ¶
func (o OptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (OptionSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type Order ¶
type Order struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` SubmittedAt int64 `boil:"submitted_at" json:"submittedAt" toml:"submittedAt" yaml:"submittedAt"` CompletedAt null.Int64 `boil:"completed_at" json:"completedAt,omitempty" toml:"completedAt" yaml:"completedAt,omitempty"` R *orderR `boil:"-" json:"-" toml:"-" yaml:"-"` L orderL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Order is an object representing the database table.
func FindOrder ¶
func FindOrder(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*Order, error)
FindOrder retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindOrderG ¶
FindOrderG retrieves a single record by ID.
func (*Order) AddOrderItemOptions ¶
func (o *Order) AddOrderItemOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItemOption) error
AddOrderItemOptions adds the given related objects to the existing relationships of the order, optionally inserting them as new records. Appends related to o.R.OrderItemOptions. Sets related.R.Order appropriately.
func (*Order) AddOrderItemOptionsG ¶
func (o *Order) AddOrderItemOptionsG(ctx context.Context, insert bool, related ...*OrderItemOption) error
AddOrderItemOptionsG adds the given related objects to the existing relationships of the order, optionally inserting them as new records. Appends related to o.R.OrderItemOptions. Sets related.R.Order appropriately. Uses the global database handle.
func (*Order) AddOrderItems ¶
func (o *Order) AddOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItem) error
AddOrderItems adds the given related objects to the existing relationships of the order, optionally inserting them as new records. Appends related to o.R.OrderItems. Sets related.R.Order appropriately.
func (*Order) AddOrderItemsG ¶
AddOrderItemsG adds the given related objects to the existing relationships of the order, optionally inserting them as new records. Appends related to o.R.OrderItems. Sets related.R.Order appropriately. Uses the global database handle.
func (*Order) Delete ¶
Delete deletes a single Order record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Order) DeleteG ¶
DeleteG deletes a single Order record. DeleteG will match against the primary key column to find the record to delete.
func (*Order) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Order) OrderItemOptions ¶
OrderItemOptions retrieves all the order_item_option's OrderItemOptions with an executor.
func (*Order) OrderItems ¶
OrderItems retrieves all the order_item's OrderItems with an executor.
func (*Order) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Order) Update ¶
func (o *Order) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Order. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type OrderItem ¶
type OrderItem struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` OrderID int64 `boil:"order_id" json:"orderID" toml:"orderID" yaml:"orderID"` ItemID int64 `boil:"item_id" json:"itemID" toml:"itemID" yaml:"itemID"` MainOrderItemID null.Int64 `boil:"main_order_item_id" json:"mainOrderItemID,omitempty" toml:"mainOrderItemID" yaml:"mainOrderItemID,omitempty"` Price null.Int64 `boil:"price" json:"price,omitempty" toml:"price" yaml:"price,omitempty"` R *orderItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L orderItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OrderItem is an object representing the database table.
func FindOrderItem ¶
func FindOrderItem(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*OrderItem, error)
FindOrderItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindOrderItemG ¶
FindOrderItemG retrieves a single record by ID.
func (*OrderItem) AddMainOrderItemOrderItems ¶
func (o *OrderItem) AddMainOrderItemOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItem) error
AddMainOrderItemOrderItems adds the given related objects to the existing relationships of the order_item, optionally inserting them as new records. Appends related to o.R.MainOrderItemOrderItems. Sets related.R.MainOrderItem appropriately.
func (*OrderItem) AddMainOrderItemOrderItemsG ¶
func (o *OrderItem) AddMainOrderItemOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error
AddMainOrderItemOrderItemsG adds the given related objects to the existing relationships of the order_item, optionally inserting them as new records. Appends related to o.R.MainOrderItemOrderItems. Sets related.R.MainOrderItem appropriately. Uses the global database handle.
func (*OrderItem) AddOrderItemOptions ¶
func (o *OrderItem) AddOrderItemOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItemOption) error
AddOrderItemOptions adds the given related objects to the existing relationships of the order_item, optionally inserting them as new records. Appends related to o.R.OrderItemOptions. Sets related.R.OrderItem appropriately.
func (*OrderItem) AddOrderItemOptionsG ¶
func (o *OrderItem) AddOrderItemOptionsG(ctx context.Context, insert bool, related ...*OrderItemOption) error
AddOrderItemOptionsG adds the given related objects to the existing relationships of the order_item, optionally inserting them as new records. Appends related to o.R.OrderItemOptions. Sets related.R.OrderItem appropriately. Uses the global database handle.
func (*OrderItem) Delete ¶
Delete deletes a single OrderItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OrderItem) DeleteG ¶
DeleteG deletes a single OrderItem record. DeleteG will match against the primary key column to find the record to delete.
func (*OrderItem) Insert ¶
func (o *OrderItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*OrderItem) MainOrderItem ¶
MainOrderItem pointed to by the foreign key.
func (*OrderItem) MainOrderItemOrderItems ¶
MainOrderItemOrderItems retrieves all the order_item's OrderItems with an executor via main_order_item_id column.
func (*OrderItem) OrderItemOptions ¶
OrderItemOptions retrieves all the order_item_option's OrderItemOptions with an executor.
func (*OrderItem) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*OrderItem) RemoveMainOrderItem ¶
func (o *OrderItem) RemoveMainOrderItem(ctx context.Context, exec boil.ContextExecutor, related *OrderItem) error
RemoveMainOrderItem relationship. Sets o.R.MainOrderItem to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*OrderItem) RemoveMainOrderItemG ¶
RemoveMainOrderItemG relationship. Sets o.R.MainOrderItem to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*OrderItem) RemoveMainOrderItemOrderItems ¶
func (o *OrderItem) RemoveMainOrderItemOrderItems(ctx context.Context, exec boil.ContextExecutor, related ...*OrderItem) error
RemoveMainOrderItemOrderItems relationships from objects passed in. Removes related items from R.MainOrderItemOrderItems (uses pointer comparison, removal does not keep order) Sets related.R.MainOrderItem.
func (*OrderItem) RemoveMainOrderItemOrderItemsG ¶
func (o *OrderItem) RemoveMainOrderItemOrderItemsG(ctx context.Context, related ...*OrderItem) error
RemoveMainOrderItemOrderItemsG relationships from objects passed in. Removes related items from R.MainOrderItemOrderItems (uses pointer comparison, removal does not keep order) Sets related.R.MainOrderItem. Uses the global database handle.
func (*OrderItem) SetItem ¶
func (o *OrderItem) SetItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Item) error
SetItem of the orderItem to the related item. Sets o.R.Item to related. Adds o to related.R.OrderItems.
func (*OrderItem) SetItemG ¶
SetItemG of the orderItem to the related item. Sets o.R.Item to related. Adds o to related.R.OrderItems. Uses the global database handle.
func (*OrderItem) SetMainOrderItem ¶
func (o *OrderItem) SetMainOrderItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *OrderItem) error
SetMainOrderItem of the orderItem to the related item. Sets o.R.MainOrderItem to related. Adds o to related.R.MainOrderItemOrderItems.
func (*OrderItem) SetMainOrderItemG ¶
SetMainOrderItemG of the orderItem to the related item. Sets o.R.MainOrderItem to related. Adds o to related.R.MainOrderItemOrderItems. Uses the global database handle.
func (*OrderItem) SetMainOrderItemOrderItems ¶
func (o *OrderItem) SetMainOrderItemOrderItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderItem) error
SetMainOrderItemOrderItems removes all previously related items of the order_item replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MainOrderItem's MainOrderItemOrderItems accordingly. Replaces o.R.MainOrderItemOrderItems with related. Sets related.R.MainOrderItem's MainOrderItemOrderItems accordingly.
func (*OrderItem) SetMainOrderItemOrderItemsG ¶
func (o *OrderItem) SetMainOrderItemOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error
SetMainOrderItemOrderItemsG removes all previously related items of the order_item replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MainOrderItem's MainOrderItemOrderItems accordingly. Replaces o.R.MainOrderItemOrderItems with related. Sets related.R.MainOrderItem's MainOrderItemOrderItems accordingly. Uses the global database handle.
func (*OrderItem) SetOrder ¶
func (o *OrderItem) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Order) error
SetOrder of the orderItem to the related item. Sets o.R.Order to related. Adds o to related.R.OrderItems.
func (*OrderItem) SetOrderG ¶
SetOrderG of the orderItem to the related item. Sets o.R.Order to related. Adds o to related.R.OrderItems. Uses the global database handle.
func (*OrderItem) Update ¶
func (o *OrderItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OrderItem. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type OrderItemOption ¶
type OrderItemOption struct { ID null.Int64 `boil:"id" json:"id,omitempty" toml:"id" yaml:"id,omitempty"` OrderID int64 `boil:"order_id" json:"orderID" toml:"orderID" yaml:"orderID"` OptionID int64 `boil:"option_id" json:"optionID" toml:"optionID" yaml:"optionID"` OrderItemID int64 `boil:"order_item_id" json:"orderItemID" toml:"orderItemID" yaml:"orderItemID"` Price null.Int64 `boil:"price" json:"price,omitempty" toml:"price" yaml:"price,omitempty"` R *orderItemOptionR `boil:"-" json:"-" toml:"-" yaml:"-"` L orderItemOptionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OrderItemOption is an object representing the database table.
func FindOrderItemOption ¶
func FindOrderItemOption(ctx context.Context, exec boil.ContextExecutor, iD null.Int64, selectCols ...string) (*OrderItemOption, error)
FindOrderItemOption retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindOrderItemOptionG ¶
func FindOrderItemOptionG(ctx context.Context, iD null.Int64, selectCols ...string) (*OrderItemOption, error)
FindOrderItemOptionG retrieves a single record by ID.
func (*OrderItemOption) Delete ¶
func (o *OrderItemOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OrderItemOption record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OrderItemOption) DeleteG ¶
func (o *OrderItemOption) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single OrderItemOption record. DeleteG will match against the primary key column to find the record to delete.
func (*OrderItemOption) Insert ¶
func (o *OrderItemOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*OrderItemOption) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*OrderItemOption) Option ¶
func (o *OrderItemOption) Option(mods ...qm.QueryMod) optionQuery
Option pointed to by the foreign key.
func (*OrderItemOption) Order ¶
func (o *OrderItemOption) Order(mods ...qm.QueryMod) orderQuery
Order pointed to by the foreign key.
func (*OrderItemOption) OrderItem ¶
func (o *OrderItemOption) OrderItem(mods ...qm.QueryMod) orderItemQuery
OrderItem pointed to by the foreign key.
func (*OrderItemOption) Reload ¶
func (o *OrderItemOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OrderItemOption) ReloadG ¶
func (o *OrderItemOption) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*OrderItemOption) SetOption ¶
func (o *OrderItemOption) SetOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Option) error
SetOption of the orderItemOption to the related item. Sets o.R.Option to related. Adds o to related.R.OrderItemOptions.
func (*OrderItemOption) SetOptionG ¶
SetOptionG of the orderItemOption to the related item. Sets o.R.Option to related. Adds o to related.R.OrderItemOptions. Uses the global database handle.
func (*OrderItemOption) SetOrder ¶
func (o *OrderItemOption) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Order) error
SetOrder of the orderItemOption to the related item. Sets o.R.Order to related. Adds o to related.R.OrderItemOptions.
func (*OrderItemOption) SetOrderG ¶
SetOrderG of the orderItemOption to the related item. Sets o.R.Order to related. Adds o to related.R.OrderItemOptions. Uses the global database handle.
func (*OrderItemOption) SetOrderItem ¶
func (o *OrderItemOption) SetOrderItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *OrderItem) error
SetOrderItem of the orderItemOption to the related item. Sets o.R.OrderItem to related. Adds o to related.R.OrderItemOptions.
func (*OrderItemOption) SetOrderItemG ¶
SetOrderItemG of the orderItemOption to the related item. Sets o.R.OrderItem to related. Adds o to related.R.OrderItemOptions. Uses the global database handle.
func (*OrderItemOption) Update ¶
func (o *OrderItemOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OrderItemOption. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
type OrderItemOptionSlice ¶
type OrderItemOptionSlice []*OrderItemOption
OrderItemOptionSlice is an alias for a slice of pointers to OrderItemOption. This should generally be used opposed to []OrderItemOption.
func (OrderItemOptionSlice) DeleteAll ¶
func (o OrderItemOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (OrderItemOptionSlice) DeleteAllG ¶
func (o OrderItemOptionSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*OrderItemOptionSlice) ReloadAll ¶
func (o *OrderItemOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*OrderItemOptionSlice) ReloadAllG ¶
func (o *OrderItemOptionSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OrderItemOptionSlice) UpdateAll ¶
func (o OrderItemOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (OrderItemOptionSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type OrderItemSlice ¶
type OrderItemSlice []*OrderItem
OrderItemSlice is an alias for a slice of pointers to OrderItem. This should generally be used opposed to []OrderItem.
func (OrderItemSlice) DeleteAll ¶
func (o OrderItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (OrderItemSlice) DeleteAllG ¶
func (o OrderItemSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*OrderItemSlice) ReloadAll ¶
func (o *OrderItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*OrderItemSlice) ReloadAllG ¶
func (o *OrderItemSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OrderItemSlice) UpdateAll ¶
func (o OrderItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (OrderItemSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type OrderSlice ¶
type OrderSlice []*Order
OrderSlice is an alias for a slice of pointers to Order. This should generally be used opposed to []Order.
func (OrderSlice) DeleteAll ¶
func (o OrderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (OrderSlice) DeleteAllG ¶
func (o OrderSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*OrderSlice) ReloadAll ¶
func (o *OrderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*OrderSlice) ReloadAllG ¶
func (o *OrderSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OrderSlice) UpdateAll ¶
func (o OrderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (OrderSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.