models

package
v0.0.0-...-7d965fe Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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",
}
View Source
var ItemKindColumns = struct {
	ID      string
	Deleted string
	Name    string
}{
	ID:      "id",
	Deleted: "deleted",
	Name:    "name",
}
View Source
var ItemKindRels = struct {
	KindItems   string
	OptionKinds string
}{
	KindItems:   "KindItems",
	OptionKinds: "OptionKinds",
}

ItemKindRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var ItemOptionRels = struct {
	Option string
	Item   string
}{
	Option: "Option",
	Item:   "Item",
}

ItemOptionRels is where relationship names are stored.

View Source
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 */},
}
View Source
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.

View Source
var ItemSideColumns = struct {
	ItemID     string
	SideItemID string
	IsDefault  string
	Price      string
}{
	ItemID:     "item_id",
	SideItemID: "side_item_id",
	IsDefault:  "is_default",
	Price:      "price",
}
View Source
var ItemSideRels = struct {
	SideItem string
	Item     string
}{
	SideItem: "SideItem",
	Item:     "Item",
}

ItemSideRels is where relationship names are stored.

View Source
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 */},
}
View Source
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 */},
}
View Source
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",
}
View Source
var OptionKindColumns = struct {
	ID         string
	ItemKindID string
	Name       string
}{
	ID:         "id",
	ItemKindID: "item_kind_id",
	Name:       "name",
}
View Source
var OptionKindRels = struct {
	ItemKind    string
	KindOptions string
}{
	ItemKind:    "ItemKind",
	KindOptions: "KindOptions",
}

OptionKindRels is where relationship names are stored.

View Source
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 */},
}
View Source
var OptionRels = struct {
	Kind             string
	ItemOption       string
	OrderItemOptions string
}{
	Kind:             "Kind",
	ItemOption:       "ItemOption",
	OrderItemOptions: "OrderItemOptions",
}

OptionRels is where relationship names are stored.

View Source
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 */},
}
View Source
var OrderColumns = struct {
	ID          string
	SubmittedAt string
	CompletedAt string
}{
	ID:          "id",
	SubmittedAt: "submitted_at",
	CompletedAt: "completed_at",
}
View Source
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",
}
View Source
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",
}
View Source
var OrderItemOptionRels = struct {
	OrderItem string
	Option    string
	Order     string
}{
	OrderItem: "OrderItem",
	Option:    "Option",
	Order:     "Order",
}

OrderItemOptionRels is where relationship names are stored.

View Source
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 */},
}
View Source
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.

View Source
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 */},
}
View Source
var OrderRels = struct {
	OrderItemOptions string
	OrderItems       string
}{
	OrderItemOptions: "OrderItemOptions",
	OrderItems:       "OrderItems",
}

OrderRels is where relationship names are stored.

View Source
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 */},
}
View Source
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

func ItemExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)

ItemExists checks if the Item row exists.

func ItemExistsG

func ItemExistsG(ctx context.Context, iD null.Int64) (bool, error)

ItemExistsG checks if the Item row exists.

func ItemKindExists

func ItemKindExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)

ItemKindExists checks if the ItemKind row exists.

func ItemKindExistsG

func ItemKindExistsG(ctx context.Context, iD null.Int64) (bool, error)

ItemKindExistsG checks if the ItemKind row exists.

func ItemKinds

func ItemKinds(mods ...qm.QueryMod) itemKindQuery

ItemKinds retrieves all the records using an executor.

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

func ItemOptionExistsG(ctx context.Context, itemID int64, optionID int64) (bool, error)

ItemOptionExistsG checks if the ItemOption row exists.

func ItemOptions

func ItemOptions(mods ...qm.QueryMod) itemOptionQuery

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

func ItemSideExistsG(ctx context.Context, itemID int64, sideItemID int64) (bool, error)

ItemSideExistsG checks if the ItemSide row exists.

func ItemSides

func ItemSides(mods ...qm.QueryMod) itemSideQuery

ItemSides retrieves all the records using an executor.

func Items

func Items(mods ...qm.QueryMod) itemQuery

Items retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func OptionExists

func OptionExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)

OptionExists checks if the Option row exists.

func OptionExistsG

func OptionExistsG(ctx context.Context, iD null.Int64) (bool, error)

OptionExistsG checks if the Option row exists.

func OptionKindExists

func OptionKindExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)

OptionKindExists checks if the OptionKind row exists.

func OptionKindExistsG

func OptionKindExistsG(ctx context.Context, iD null.Int64) (bool, error)

OptionKindExistsG checks if the OptionKind row exists.

func OptionKinds

func OptionKinds(mods ...qm.QueryMod) optionKindQuery

OptionKinds retrieves all the records using an executor.

func Options

func Options(mods ...qm.QueryMod) optionQuery

Options retrieves all the records using an executor.

func OrderExists

func OrderExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)

OrderExists checks if the Order row exists.

func OrderExistsG

func OrderExistsG(ctx context.Context, iD null.Int64) (bool, error)

OrderExistsG checks if the Order row exists.

func OrderItemExists

func OrderItemExists(ctx context.Context, exec boil.ContextExecutor, iD null.Int64) (bool, error)

OrderItemExists checks if the OrderItem row exists.

func OrderItemExistsG

func OrderItemExistsG(ctx context.Context, iD null.Int64) (bool, error)

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

func OrderItemOptionExistsG(ctx context.Context, iD null.Int64) (bool, error)

OrderItemOptionExistsG checks if the OrderItemOption row exists.

func OrderItemOptions

func OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery

OrderItemOptions retrieves all the records using an executor.

func OrderItems

func OrderItems(mods ...qm.QueryMod) orderItemQuery

OrderItems retrieves all the records using an executor.

func Orders

func Orders(mods ...qm.QueryMod) orderQuery

Orders 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 FindItemG

func FindItemG(ctx context.Context, iD null.Int64, selectCols ...string) (*Item, error)

FindItemG retrieves a single record by ID.

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

func (o *Item) AddOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error

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

func (o *Item) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *Item) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Item record. DeleteG will match against the primary key column to find the record to delete.

func (*Item) Insert

func (o *Item) 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 (*Item) InsertG

func (o *Item) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Item) ItemOption

func (o *Item) ItemOption(mods ...qm.QueryMod) itemOptionQuery

ItemOption pointed to by the foreign key.

func (*Item) ItemSide

func (o *Item) ItemSide(mods ...qm.QueryMod) itemSideQuery

ItemSide pointed to by the foreign key.

func (*Item) Kind

func (o *Item) Kind(mods ...qm.QueryMod) itemKindQuery

Kind pointed to by the foreign key.

func (*Item) OrderItems

func (o *Item) OrderItems(mods ...qm.QueryMod) orderItemQuery

OrderItems retrieves all the order_item's OrderItems with an executor.

func (*Item) Reload

func (o *Item) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Item) ReloadG

func (o *Item) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

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

func (o *Item) SetItemOptionG(ctx context.Context, insert bool, related *ItemOption) error

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

func (o *Item) SetItemSideG(ctx context.Context, insert bool, related *ItemSide) error

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

func (o *Item) SetKindG(ctx context.Context, insert bool, related *ItemKind) error

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

func (o *Item) SetSideItemItemSideG(ctx context.Context, insert bool, related *ItemSide) error

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

func (o *Item) SideItemItemSide(mods ...qm.QueryMod) itemSideQuery

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.

func (*Item) UpdateG

func (o *Item) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Item record using the global executor. See Update for more documentation.

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

func FindItemKindG(ctx context.Context, iD null.Int64, selectCols ...string) (*ItemKind, error)

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

func (o *ItemKind) AddKindItemsG(ctx context.Context, insert bool, related ...*Item) error

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

func (o *ItemKind) AddOptionKindsG(ctx context.Context, insert bool, related ...*OptionKind) error

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

func (o *ItemKind) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *ItemKind) DeleteG(ctx context.Context) (int64, error)

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) InsertG

func (o *ItemKind) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ItemKind) KindItems

func (o *ItemKind) KindItems(mods ...qm.QueryMod) itemQuery

KindItems retrieves all the item's Items with an executor via kind_id column.

func (*ItemKind) OptionKinds

func (o *ItemKind) OptionKinds(mods ...qm.QueryMod) optionKindQuery

OptionKinds retrieves all the option_kind's OptionKinds with an executor.

func (*ItemKind) Reload

func (o *ItemKind) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ItemKind) ReloadG

func (o *ItemKind) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

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.

func (*ItemKind) UpdateG

func (o *ItemKind) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single ItemKind record using the global executor. See Update for more documentation.

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

func (o ItemKindSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

func (o *ItemOption) InsertG(ctx context.Context, columns boil.Columns) error

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

func (o *ItemOption) SetItemG(ctx context.Context, insert bool, related *Item) error

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

func (o *ItemOption) SetOptionG(ctx context.Context, insert bool, related *Option) error

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.

func (*ItemOption) UpdateG

func (o *ItemOption) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single ItemOption record using the global executor. See Update for more documentation.

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

func (o ItemOptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

func (o *ItemSide) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *ItemSide) DeleteG(ctx context.Context) (int64, error)

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) InsertG

func (o *ItemSide) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ItemSide) Item

func (o *ItemSide) Item(mods ...qm.QueryMod) itemQuery

Item pointed to by the foreign key.

func (*ItemSide) Reload

func (o *ItemSide) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ItemSide) ReloadG

func (o *ItemSide) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

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

func (o *ItemSide) SetItemG(ctx context.Context, insert bool, related *Item) error

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

func (o *ItemSide) SetSideItemG(ctx context.Context, insert bool, related *Item) error

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) SideItem

func (o *ItemSide) SideItem(mods ...qm.QueryMod) itemQuery

SideItem pointed to by the foreign key.

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.

func (*ItemSide) UpdateG

func (o *ItemSide) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single ItemSide record using the global executor. See Update for more documentation.

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

func (o ItemSideSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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) DeleteAll

func (o ItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (ItemSlice) DeleteAllG

func (o ItemSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*ItemSlice) ReloadAll

func (o *ItemSlice) 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 (*ItemSlice) ReloadAllG

func (o *ItemSlice) 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 (ItemSlice) UpdateAll

func (o ItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (ItemSlice) UpdateAllG

func (o ItemSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

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

func FindOptionG(ctx context.Context, iD null.Int64, selectCols ...string) (*Option, error)

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

func (o *Option) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *Option) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Option record. DeleteG will match against the primary key column to find the record to delete.

func (*Option) Insert

func (o *Option) 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 (*Option) InsertG

func (o *Option) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Option) ItemOption

func (o *Option) ItemOption(mods ...qm.QueryMod) itemOptionQuery

ItemOption pointed to by the foreign key.

func (*Option) Kind

func (o *Option) Kind(mods ...qm.QueryMod) optionKindQuery

Kind pointed to by the foreign key.

func (*Option) OrderItemOptions

func (o *Option) OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery

OrderItemOptions retrieves all the order_item_option's OrderItemOptions with an executor.

func (*Option) Reload

func (o *Option) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Option) ReloadG

func (o *Option) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

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

func (o *Option) SetItemOptionG(ctx context.Context, insert bool, related *ItemOption) error

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

func (o *Option) SetKindG(ctx context.Context, insert bool, related *OptionKind) error

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.

func (*Option) UpdateG

func (o *Option) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Option record using the global executor. See Update for more documentation.

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

func (o *OptionKind) AddKindOptionsG(ctx context.Context, insert bool, related ...*Option) error

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

func (o *OptionKind) InsertG(ctx context.Context, columns boil.Columns) error

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

func (o *OptionKind) SetItemKindG(ctx context.Context, insert bool, related *ItemKind) error

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.

func (*OptionKind) UpdateG

func (o *OptionKind) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single OptionKind record using the global executor. See Update for more documentation.

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

func (o OptionKindSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

func (o OptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

func FindOrderG(ctx context.Context, iD null.Int64, selectCols ...string) (*Order, error)

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

func (o *Order) AddOrderItemsG(ctx context.Context, insert bool, related ...*OrderItem) error

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

func (o *Order) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *Order) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Order record. DeleteG will match against the primary key column to find the record to delete.

func (*Order) Insert

func (o *Order) 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 (*Order) InsertG

func (o *Order) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Order) OrderItemOptions

func (o *Order) OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery

OrderItemOptions retrieves all the order_item_option's OrderItemOptions with an executor.

func (*Order) OrderItems

func (o *Order) OrderItems(mods ...qm.QueryMod) orderItemQuery

OrderItems retrieves all the order_item's OrderItems with an executor.

func (*Order) Reload

func (o *Order) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Order) ReloadG

func (o *Order) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

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.

func (*Order) UpdateG

func (o *Order) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Order record using the global executor. See Update for more documentation.

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

func FindOrderItemG(ctx context.Context, iD null.Int64, selectCols ...string) (*OrderItem, error)

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

func (o *OrderItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (o *OrderItem) DeleteG(ctx context.Context) (int64, error)

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) InsertG

func (o *OrderItem) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*OrderItem) Item

func (o *OrderItem) Item(mods ...qm.QueryMod) itemQuery

Item pointed to by the foreign key.

func (*OrderItem) MainOrderItem

func (o *OrderItem) MainOrderItem(mods ...qm.QueryMod) orderItemQuery

MainOrderItem pointed to by the foreign key.

func (*OrderItem) MainOrderItemOrderItems

func (o *OrderItem) MainOrderItemOrderItems(mods ...qm.QueryMod) orderItemQuery

MainOrderItemOrderItems retrieves all the order_item's OrderItems with an executor via main_order_item_id column.

func (*OrderItem) Order

func (o *OrderItem) Order(mods ...qm.QueryMod) orderQuery

Order pointed to by the foreign key.

func (*OrderItem) OrderItemOptions

func (o *OrderItem) OrderItemOptions(mods ...qm.QueryMod) orderItemOptionQuery

OrderItemOptions retrieves all the order_item_option's OrderItemOptions with an executor.

func (*OrderItem) Reload

func (o *OrderItem) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*OrderItem) ReloadG

func (o *OrderItem) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

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

func (o *OrderItem) RemoveMainOrderItemG(ctx context.Context, related *OrderItem) error

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

func (o *OrderItem) SetItemG(ctx context.Context, insert bool, related *Item) error

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

func (o *OrderItem) SetMainOrderItemG(ctx context.Context, insert bool, related *OrderItem) error

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

func (o *OrderItem) SetOrderG(ctx context.Context, insert bool, related *Order) error

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.

func (*OrderItem) UpdateG

func (o *OrderItem) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single OrderItem record using the global executor. See Update for more documentation.

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

func (o *OrderItemOption) InsertG(ctx context.Context, columns boil.Columns) error

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

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

func (o *OrderItemOption) SetOptionG(ctx context.Context, insert bool, related *Option) error

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

func (o *OrderItemOption) SetOrderG(ctx context.Context, insert bool, related *Order) error

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

func (o *OrderItemOption) SetOrderItemG(ctx context.Context, insert bool, related *OrderItem) error

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.

func (*OrderItemOption) UpdateG

func (o *OrderItemOption) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single OrderItemOption record using the global executor. See Update for more documentation.

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

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

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

func (o OrderItemOptionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

func (o OrderItemSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

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

func (o OrderSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

Jump to

Keyboard shortcuts

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