Documentation ¶
Index ¶
- Variables
- func AddCollectionHook(hookPoint boil.HookPoint, collectionHook CollectionHook)
- func AddCustomerAddressHook(hookPoint boil.HookPoint, customerAddressHook CustomerAddressHook)
- func AddCustomerHook(hookPoint boil.HookPoint, customerHook CustomerHook)
- func AddCustomerOrderHook(hookPoint boil.HookPoint, customerOrderHook CustomerOrderHook)
- func AddGorpMigrationHook(hookPoint boil.HookPoint, gorpMigrationHook GorpMigrationHook)
- func AddImageHook(hookPoint boil.HookPoint, imageHook ImageHook)
- func AddInventoryItemHook(hookPoint boil.HookPoint, inventoryItemHook InventoryItemHook)
- func AddInventoryLevelHook(hookPoint boil.HookPoint, inventoryLevelHook InventoryLevelHook)
- func AddLocationHook(hookPoint boil.HookPoint, locationHook LocationHook)
- func AddOrderLineHook(hookPoint boil.HookPoint, orderLineHook OrderLineHook)
- func AddProductHook(hookPoint boil.HookPoint, productHook ProductHook)
- func AddProductImageHook(hookPoint boil.HookPoint, productImageHook ProductImageHook)
- func AddProductOptionHook(hookPoint boil.HookPoint, productOptionHook ProductOptionHook)
- func AddProductOptionValueHook(hookPoint boil.HookPoint, productOptionValueHook ProductOptionValueHook)
- func AddProductTagHook(hookPoint boil.HookPoint, productTagHook ProductTagHook)
- func AddProductVariantHook(hookPoint boil.HookPoint, productVariantHook ProductVariantHook)
- func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)
- func CollectionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Collections(mods ...qm.QueryMod) collectionQuery
- func CustomerAddressExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CustomerAddresses(mods ...qm.QueryMod) customerAddressQuery
- func CustomerExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CustomerOrderExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CustomerOrders(mods ...qm.QueryMod) customerOrderQuery
- func Customers(mods ...qm.QueryMod) customerQuery
- func GorpMigrationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func GorpMigrations(mods ...qm.QueryMod) gorpMigrationQuery
- func ImageExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Images(mods ...qm.QueryMod) imageQuery
- func InventoryItemExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func InventoryItems(mods ...qm.QueryMod) inventoryItemQuery
- func InventoryLevelExists(ctx context.Context, exec boil.ContextExecutor, inventoryItemID int64, ...) (bool, error)
- func InventoryLevels(mods ...qm.QueryMod) inventoryLevelQuery
- func LocationExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Locations(mods ...qm.QueryMod) locationQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func OrderLineExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func OrderLines(mods ...qm.QueryMod) orderLineQuery
- func ProductExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ProductImageExists(ctx context.Context, exec boil.ContextExecutor, productID int64, imageID int64) (bool, error)
- func ProductImages(mods ...qm.QueryMod) productImageQuery
- func ProductOptionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ProductOptionValueExists(ctx context.Context, exec boil.ContextExecutor, optionID int64) (bool, error)
- func ProductOptionValues(mods ...qm.QueryMod) productOptionValueQuery
- func ProductOptions(mods ...qm.QueryMod) productOptionQuery
- func ProductTagExists(ctx context.Context, exec boil.ContextExecutor, tagID int64, productID int64) (bool, error)
- func ProductTags(mods ...qm.QueryMod) productTagQuery
- func ProductVariantExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func ProductVariants(mods ...qm.QueryMod) productVariantQuery
- func Products(mods ...qm.QueryMod) productQuery
- func TagExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Tags(mods ...qm.QueryMod) tagQuery
- type Collection
- func (o *Collection) AddProducts(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Collection) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Collection) Image(mods ...qm.QueryMod) imageQuery
- func (o *Collection) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Collection) Products(mods ...qm.QueryMod) productQuery
- func (o *Collection) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Collection) RemoveImage(ctx context.Context, exec boil.ContextExecutor, related *Image) error
- func (o *Collection) RemoveProducts(ctx context.Context, exec boil.ContextExecutor, related ...*Product) error
- func (o *Collection) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
- func (o *Collection) SetProducts(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Collection) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Collection) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CollectionHook
- type CollectionSlice
- type Customer
- func (o *Customer) AddCustomerAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Customer) CustomerAddresses(mods ...qm.QueryMod) customerAddressQuery
- func (o *Customer) DefaultAddress(mods ...qm.QueryMod) customerAddressQuery
- func (o *Customer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Customer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Customer) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Customer) RemoveDefaultAddress(ctx context.Context, exec boil.ContextExecutor, related *CustomerAddress) error
- func (o *Customer) SetDefaultAddress(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Customer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Customer) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CustomerAddress
- func (o *CustomerAddress) AddDefaultAddressCustomers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CustomerAddress) Customer(mods ...qm.QueryMod) customerQuery
- func (o *CustomerAddress) DefaultAddressCustomers(mods ...qm.QueryMod) customerQuery
- func (o *CustomerAddress) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CustomerAddress) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CustomerAddress) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CustomerAddress) RemoveDefaultAddressCustomers(ctx context.Context, exec boil.ContextExecutor, related ...*Customer) error
- func (o *CustomerAddress) SetCustomer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Customer) error
- func (o *CustomerAddress) SetDefaultAddressCustomers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CustomerAddress) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CustomerAddress) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CustomerAddressHook
- type CustomerAddressSlice
- func (o CustomerAddressSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CustomerAddressSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o CustomerAddressSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type CustomerHook
- type CustomerOrder
- func (o *CustomerOrder) AddOrderOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CustomerOrder) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CustomerOrder) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CustomerOrder) OrderOrderLines(mods ...qm.QueryMod) orderLineQuery
- func (o *CustomerOrder) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CustomerOrder) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CustomerOrder) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CustomerOrderHook
- type CustomerOrderSlice
- func (o CustomerOrderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CustomerOrderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o CustomerOrderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type CustomerSlice
- type GorpMigration
- func (o *GorpMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GorpMigration) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GorpMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GorpMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *GorpMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type GorpMigrationHook
- type GorpMigrationSlice
- func (o GorpMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GorpMigrationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o GorpMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Image
- func (o *Image) AddCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) AddInventoryItemProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) AddProductImages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) AddProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) Collections(mods ...qm.QueryMod) collectionQuery
- func (o *Image) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Image) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Image) InventoryItemProductVariants(mods ...qm.QueryMod) productVariantQuery
- func (o *Image) ProductImages(mods ...qm.QueryMod) productImageQuery
- func (o *Image) ProductVariants(mods ...qm.QueryMod) productVariantQuery
- func (o *Image) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Image) RemoveCollections(ctx context.Context, exec boil.ContextExecutor, related ...*Collection) error
- func (o *Image) RemoveInventoryItemProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
- func (o *Image) RemoveProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
- func (o *Image) SetCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) SetInventoryItemProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) SetProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Image) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Image) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ImageHook
- type ImageSlice
- type InventoryItem
- func (o *InventoryItem) AddInventoryLevels(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *InventoryItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InventoryItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *InventoryItem) InventoryLevels(mods ...qm.QueryMod) inventoryLevelQuery
- func (o *InventoryItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *InventoryItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *InventoryItem) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type InventoryItemHook
- type InventoryItemSlice
- func (o InventoryItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InventoryItemSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o InventoryItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type InventoryLevel
- func (o *InventoryLevel) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InventoryLevel) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *InventoryLevel) InventoryItem(mods ...qm.QueryMod) inventoryItemQuery
- func (o *InventoryLevel) Location(mods ...qm.QueryMod) locationQuery
- func (o *InventoryLevel) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *InventoryLevel) SetInventoryItem(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *InventoryLevel) SetLocation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Location) error
- func (o *InventoryLevel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *InventoryLevel) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type InventoryLevelHook
- type InventoryLevelSlice
- func (o InventoryLevelSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InventoryLevelSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o InventoryLevelSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Location
- func (o *Location) AddInventoryLevels(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Location) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Location) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Location) InventoryLevels(mods ...qm.QueryMod) inventoryLevelQuery
- func (o *Location) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Location) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Location) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type LocationHook
- type LocationSlice
- type M
- type OrderLine
- func (o *OrderLine) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OrderLine) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OrderLine) Order(mods ...qm.QueryMod) customerOrderQuery
- func (o *OrderLine) Product(mods ...qm.QueryMod) productQuery
- func (o *OrderLine) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderLine) RemoveProduct(ctx context.Context, exec boil.ContextExecutor, related *Product) error
- func (o *OrderLine) RemoveVariant(ctx context.Context, exec boil.ContextExecutor, related *ProductVariant) error
- func (o *OrderLine) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderLine) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
- func (o *OrderLine) SetVariant(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OrderLine) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OrderLine) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *OrderLine) Variant(mods ...qm.QueryMod) productVariantQuery
- type OrderLineHook
- type OrderLineSlice
- type Product
- func (o *Product) AddCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) AddOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) AddProductImages(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) AddProductOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) AddProductTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) AddProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) Collections(mods ...qm.QueryMod) collectionQuery
- func (o *Product) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Product) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Product) OrderLines(mods ...qm.QueryMod) orderLineQuery
- func (o *Product) ProductImages(mods ...qm.QueryMod) productImageQuery
- func (o *Product) ProductOptions(mods ...qm.QueryMod) productOptionQuery
- func (o *Product) ProductTags(mods ...qm.QueryMod) productTagQuery
- func (o *Product) ProductVariants(mods ...qm.QueryMod) productVariantQuery
- func (o *Product) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Product) RemoveCollections(ctx context.Context, exec boil.ContextExecutor, related ...*Collection) error
- func (o *Product) RemoveOrderLines(ctx context.Context, exec boil.ContextExecutor, related ...*OrderLine) error
- func (o *Product) SetCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) SetOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Product) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Product) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProductHook
- type ProductImage
- func (o *ProductImage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductImage) Image(mods ...qm.QueryMod) imageQuery
- func (o *ProductImage) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProductImage) Product(mods ...qm.QueryMod) productQuery
- func (o *ProductImage) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProductImage) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
- func (o *ProductImage) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
- func (o *ProductImage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProductImage) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProductImageHook
- type ProductImageSlice
- type ProductOption
- func (o *ProductOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductOption) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProductOption) OptionProductOptionValue(mods ...qm.QueryMod) productOptionValueQuery
- func (o *ProductOption) Product(mods ...qm.QueryMod) productQuery
- func (o *ProductOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProductOption) SetOptionProductOptionValue(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOption) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
- func (o *ProductOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProductOption) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProductOptionHook
- type ProductOptionSlice
- func (o ProductOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductOptionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ProductOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ProductOptionValue
- func (o *ProductOptionValue) AddOption1ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) AddOption2ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) AddOption3ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductOptionValue) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProductOptionValue) Option(mods ...qm.QueryMod) productOptionQuery
- func (o *ProductOptionValue) Option1ValueProductVariants(mods ...qm.QueryMod) productVariantQuery
- func (o *ProductOptionValue) Option2ValueProductVariants(mods ...qm.QueryMod) productVariantQuery
- func (o *ProductOptionValue) Option3ValueProductVariants(mods ...qm.QueryMod) productVariantQuery
- func (o *ProductOptionValue) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProductOptionValue) RemoveOption1ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
- func (o *ProductOptionValue) RemoveOption2ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
- func (o *ProductOptionValue) RemoveOption3ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
- func (o *ProductOptionValue) SetOption(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) SetOption1ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) SetOption2ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) SetOption3ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductOptionValue) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProductOptionValue) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProductOptionValueHook
- type ProductOptionValueSlice
- func (o ProductOptionValueSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductOptionValueSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ProductOptionValueSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ProductSlice
- type ProductTag
- func (o *ProductTag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductTag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProductTag) Product(mods ...qm.QueryMod) productQuery
- func (o *ProductTag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProductTag) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
- func (o *ProductTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error
- func (o *ProductTag) Tag(mods ...qm.QueryMod) tagQuery
- func (o *ProductTag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProductTag) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProductTagHook
- type ProductTagSlice
- type ProductVariant
- func (o *ProductVariant) AddVariantOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductVariant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductVariant) Image(mods ...qm.QueryMod) imageQuery
- func (o *ProductVariant) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProductVariant) InventoryItem(mods ...qm.QueryMod) imageQuery
- func (o *ProductVariant) Option1Value(mods ...qm.QueryMod) productOptionValueQuery
- func (o *ProductVariant) Option2Value(mods ...qm.QueryMod) productOptionValueQuery
- func (o *ProductVariant) Option3Value(mods ...qm.QueryMod) productOptionValueQuery
- func (o *ProductVariant) Product(mods ...qm.QueryMod) productQuery
- func (o *ProductVariant) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProductVariant) RemoveImage(ctx context.Context, exec boil.ContextExecutor, related *Image) error
- func (o *ProductVariant) RemoveInventoryItem(ctx context.Context, exec boil.ContextExecutor, related *Image) error
- func (o *ProductVariant) RemoveOption1Value(ctx context.Context, exec boil.ContextExecutor, related *ProductOptionValue) error
- func (o *ProductVariant) RemoveOption2Value(ctx context.Context, exec boil.ContextExecutor, related *ProductOptionValue) error
- func (o *ProductVariant) RemoveOption3Value(ctx context.Context, exec boil.ContextExecutor, related *ProductOptionValue) error
- func (o *ProductVariant) RemoveVariantOrderLines(ctx context.Context, exec boil.ContextExecutor, related ...*OrderLine) error
- func (o *ProductVariant) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
- func (o *ProductVariant) SetInventoryItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
- func (o *ProductVariant) SetOption1Value(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductVariant) SetOption2Value(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductVariant) SetOption3Value(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductVariant) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
- func (o *ProductVariant) SetVariantOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProductVariant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProductVariant) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *ProductVariant) VariantOrderLines(mods ...qm.QueryMod) orderLineQuery
- type ProductVariantHook
- type ProductVariantSlice
- func (o ProductVariantSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProductVariantSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ProductVariantSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Tag
- func (o *Tag) AddProductTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Tag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Tag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Tag) ProductTags(mods ...qm.QueryMod) productTagQuery
- func (o *Tag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TagHook
- type TagSlice
Constants ¶
This section is empty.
Variables ¶
var CollectionColumns = struct { ID string ImageID string BodyHTML string Handle string PublishedAt string PublishedScope string SortOrder string Title string TemplateSuffix string UpdatedAt string }{ ID: "id", ImageID: "image_id", BodyHTML: "body_html", Handle: "handle", PublishedAt: "published_at", PublishedScope: "published_scope", SortOrder: "sort_order", Title: "title", TemplateSuffix: "template_suffix", UpdatedAt: "updated_at", }
var CollectionRels = struct { Image string Products string }{ Image: "Image", Products: "Products", }
CollectionRels is where relationship names are stored.
var CollectionTableColumns = struct { ID string ImageID string BodyHTML string Handle string PublishedAt string PublishedScope string SortOrder string Title string TemplateSuffix string UpdatedAt string }{ ID: "collection.id", ImageID: "collection.image_id", BodyHTML: "collection.body_html", Handle: "collection.handle", PublishedAt: "collection.published_at", PublishedScope: "collection.published_scope", SortOrder: "collection.sort_order", Title: "collection.title", TemplateSuffix: "collection.template_suffix", UpdatedAt: "collection.updated_at", }
var CollectionWhere = struct { ID whereHelperint64 ImageID whereHelpernull_Int64 BodyHTML whereHelpernull_String Handle whereHelperstring PublishedAt whereHelpernull_Time PublishedScope whereHelperstring SortOrder whereHelperstring Title whereHelpernull_String TemplateSuffix whereHelpernull_String UpdatedAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, ImageID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, BodyHTML: whereHelpernull_String{/* contains filtered or unexported fields */}, Handle: whereHelperstring{/* contains filtered or unexported fields */}, PublishedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, PublishedScope: whereHelperstring{/* contains filtered or unexported fields */}, SortOrder: whereHelperstring{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, TemplateSuffix: whereHelpernull_String{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var CustomerAddressColumns = struct { ID string CustomerID string Address1 string Address2 string City string Company string Country string CountryCode string FirstName string IsDefault string LastName string Name string Phone string Province string ProvinceCode string Zip string }{ ID: "id", CustomerID: "customer_id", Address1: "address1", Address2: "address2", City: "city", Company: "company", Country: "country", CountryCode: "country_code", FirstName: "first_name", IsDefault: "is_default", LastName: "last_name", Name: "name", Phone: "phone", Province: "province", ProvinceCode: "province_code", Zip: "zip", }
var CustomerAddressRels = struct { Customer string DefaultAddressCustomers string }{ Customer: "Customer", DefaultAddressCustomers: "DefaultAddressCustomers", }
CustomerAddressRels is where relationship names are stored.
var CustomerAddressTableColumns = struct { ID string CustomerID string Address1 string Address2 string City string Company string Country string CountryCode string FirstName string IsDefault string LastName string Name string Phone string Province string ProvinceCode string Zip string }{ ID: "customer_address.id", CustomerID: "customer_address.customer_id", Address1: "customer_address.address1", Address2: "customer_address.address2", City: "customer_address.city", Company: "customer_address.company", Country: "customer_address.country", CountryCode: "customer_address.country_code", FirstName: "customer_address.first_name", IsDefault: "customer_address.is_default", LastName: "customer_address.last_name", Name: "customer_address.name", Phone: "customer_address.phone", Province: "customer_address.province", ProvinceCode: "customer_address.province_code", Zip: "customer_address.zip", }
var CustomerAddressWhere = struct { ID whereHelperint64 CustomerID whereHelperint64 Address1 whereHelpernull_String Address2 whereHelpernull_String City whereHelpernull_String Company whereHelpernull_String Country whereHelpernull_String CountryCode whereHelpernull_String FirstName whereHelpernull_String IsDefault whereHelperbool LastName whereHelpernull_String Name whereHelpernull_String Phone whereHelpernull_String Province whereHelpernull_String ProvinceCode whereHelpernull_String Zip whereHelpernull_String }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CustomerID: whereHelperint64{/* contains filtered or unexported fields */}, Address1: whereHelpernull_String{/* contains filtered or unexported fields */}, Address2: whereHelpernull_String{/* contains filtered or unexported fields */}, City: whereHelpernull_String{/* contains filtered or unexported fields */}, Company: whereHelpernull_String{/* contains filtered or unexported fields */}, Country: whereHelpernull_String{/* contains filtered or unexported fields */}, CountryCode: whereHelpernull_String{/* contains filtered or unexported fields */}, FirstName: whereHelpernull_String{/* contains filtered or unexported fields */}, IsDefault: whereHelperbool{/* contains filtered or unexported fields */}, LastName: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Phone: whereHelpernull_String{/* contains filtered or unexported fields */}, Province: whereHelpernull_String{/* contains filtered or unexported fields */}, ProvinceCode: whereHelpernull_String{/* contains filtered or unexported fields */}, Zip: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var CustomerColumns = struct { ID string DefaultAddressID string AcceptsMarketing string AcceptsMarketingUpdatedAt string CreatedAt string Email string FirstName string LastName string MarketingOptInLevel string Note string OrderCount string Phone string State string TaxExempt string TotalSpent string UpdatedAt string VerifiedEmail string }{ ID: "id", DefaultAddressID: "default_address_id", AcceptsMarketing: "accepts_marketing", AcceptsMarketingUpdatedAt: "accepts_marketing_updated_at", CreatedAt: "created_at", Email: "email", FirstName: "first_name", LastName: "last_name", MarketingOptInLevel: "marketing_opt_in_level", Note: "note", OrderCount: "order_count", Phone: "phone", State: "state", TaxExempt: "tax_exempt", TotalSpent: "total_spent", UpdatedAt: "updated_at", VerifiedEmail: "verified_email", }
var CustomerOrderColumns = struct { ID string OrderNumber string Name string Note string Email string FinancialStatus string FulfillmentStatus string TotalDiscounts string TotalLineItemsPrice string TotalOutstanding string TotalPrice string TotalTax string CreatedAt string UpdatedAt string ProcessedAt string CancelledAt string ClosedAt string }{ ID: "id", OrderNumber: "order_number", Name: "name", Note: "note", Email: "email", FinancialStatus: "financial_status", FulfillmentStatus: "fulfillment_status", TotalDiscounts: "total_discounts", TotalLineItemsPrice: "total_line_items_price", TotalOutstanding: "total_outstanding", TotalPrice: "total_price", TotalTax: "total_tax", CreatedAt: "created_at", UpdatedAt: "updated_at", ProcessedAt: "processed_at", CancelledAt: "cancelled_at", ClosedAt: "closed_at", }
var CustomerOrderRels = struct { OrderOrderLines string }{ OrderOrderLines: "OrderOrderLines", }
CustomerOrderRels is where relationship names are stored.
var CustomerOrderTableColumns = struct { ID string OrderNumber string Name string Note string Email string FinancialStatus string FulfillmentStatus string TotalDiscounts string TotalLineItemsPrice string TotalOutstanding string TotalPrice string TotalTax string CreatedAt string UpdatedAt string ProcessedAt string CancelledAt string ClosedAt string }{ ID: "customer_order.id", OrderNumber: "customer_order.order_number", Name: "customer_order.name", Note: "customer_order.note", Email: "customer_order.email", FinancialStatus: "customer_order.financial_status", FulfillmentStatus: "customer_order.fulfillment_status", TotalDiscounts: "customer_order.total_discounts", TotalLineItemsPrice: "customer_order.total_line_items_price", TotalOutstanding: "customer_order.total_outstanding", TotalPrice: "customer_order.total_price", TotalTax: "customer_order.total_tax", CreatedAt: "customer_order.created_at", UpdatedAt: "customer_order.updated_at", ProcessedAt: "customer_order.processed_at", CancelledAt: "customer_order.cancelled_at", ClosedAt: "customer_order.closed_at", }
var CustomerOrderWhere = struct { ID whereHelperint64 OrderNumber whereHelperint Name whereHelperstring Note whereHelpernull_String Email whereHelperstring FinancialStatus whereHelperstring FulfillmentStatus whereHelperstring TotalDiscounts whereHelpertypes_Decimal TotalLineItemsPrice whereHelpertypes_Decimal TotalOutstanding whereHelpertypes_Decimal TotalPrice whereHelpertypes_Decimal TotalTax whereHelpertypes_Decimal CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time ProcessedAt whereHelpernull_Time CancelledAt whereHelpernull_Time ClosedAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, OrderNumber: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Note: whereHelpernull_String{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, FinancialStatus: whereHelperstring{/* contains filtered or unexported fields */}, FulfillmentStatus: whereHelperstring{/* contains filtered or unexported fields */}, TotalDiscounts: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, TotalLineItemsPrice: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, TotalOutstanding: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, TotalPrice: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, TotalTax: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ProcessedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, CancelledAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ClosedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var CustomerRels = struct { DefaultAddress string CustomerAddresses string }{ DefaultAddress: "DefaultAddress", CustomerAddresses: "CustomerAddresses", }
CustomerRels is where relationship names are stored.
var CustomerTableColumns = struct { ID string DefaultAddressID string AcceptsMarketing string AcceptsMarketingUpdatedAt string CreatedAt string Email string FirstName string LastName string MarketingOptInLevel string Note string OrderCount string Phone string State string TaxExempt string TotalSpent string UpdatedAt string VerifiedEmail string }{ ID: "customer.id", DefaultAddressID: "customer.default_address_id", AcceptsMarketing: "customer.accepts_marketing", AcceptsMarketingUpdatedAt: "customer.accepts_marketing_updated_at", CreatedAt: "customer.created_at", Email: "customer.email", FirstName: "customer.first_name", LastName: "customer.last_name", MarketingOptInLevel: "customer.marketing_opt_in_level", Note: "customer.note", OrderCount: "customer.order_count", Phone: "customer.phone", State: "customer.state", TaxExempt: "customer.tax_exempt", TotalSpent: "customer.total_spent", UpdatedAt: "customer.updated_at", VerifiedEmail: "customer.verified_email", }
var CustomerWhere = struct { ID whereHelperint64 DefaultAddressID whereHelpernull_Int64 AcceptsMarketing whereHelperbool AcceptsMarketingUpdatedAt whereHelpertime_Time CreatedAt whereHelpertime_Time Email whereHelpernull_String FirstName whereHelperstring LastName whereHelpernull_String MarketingOptInLevel whereHelperstring Note whereHelpernull_String OrderCount whereHelperint Phone whereHelperstring State whereHelperstring TaxExempt whereHelperbool TotalSpent whereHelpertypes_Decimal UpdatedAt whereHelpertime_Time VerifiedEmail whereHelperbool }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, DefaultAddressID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, AcceptsMarketing: whereHelperbool{/* contains filtered or unexported fields */}, AcceptsMarketingUpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Email: whereHelpernull_String{/* contains filtered or unexported fields */}, FirstName: whereHelperstring{/* contains filtered or unexported fields */}, LastName: whereHelpernull_String{/* contains filtered or unexported fields */}, MarketingOptInLevel: whereHelperstring{/* contains filtered or unexported fields */}, Note: whereHelpernull_String{/* contains filtered or unexported fields */}, OrderCount: whereHelperint{/* contains filtered or unexported fields */}, Phone: whereHelperstring{/* contains filtered or unexported fields */}, State: whereHelperstring{/* contains filtered or unexported fields */}, TaxExempt: whereHelperbool{/* contains filtered or unexported fields */}, TotalSpent: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, VerifiedEmail: whereHelperbool{/* contains filtered or unexported fields */}, }
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 GorpMigrationColumns = struct { ID string AppliedAt string }{ ID: "id", AppliedAt: "applied_at", }
var GorpMigrationRels = struct {
}{}
GorpMigrationRels is where relationship names are stored.
var GorpMigrationTableColumns = struct { ID string AppliedAt string }{ ID: "gorp_migrations.id", AppliedAt: "gorp_migrations.applied_at", }
var GorpMigrationWhere = struct { ID whereHelperstring AppliedAt whereHelpernull_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AppliedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var ImageColumns = struct { ID string CreatedAt string Height string SRC string UpdatedAt string Width string }{ ID: "id", CreatedAt: "created_at", Height: "height", SRC: "src", UpdatedAt: "updated_at", Width: "width", }
var ImageRels = struct { Collections string ProductImages string ProductVariants string InventoryItemProductVariants string }{ Collections: "Collections", ProductImages: "ProductImages", ProductVariants: "ProductVariants", InventoryItemProductVariants: "InventoryItemProductVariants", }
ImageRels is where relationship names are stored.
var ImageTableColumns = struct { ID string CreatedAt string Height string SRC string UpdatedAt string Width string }{ ID: "image.id", CreatedAt: "image.created_at", Height: "image.height", SRC: "image.src", UpdatedAt: "image.updated_at", Width: "image.width", }
var ImageWhere = struct { ID whereHelperint64 CreatedAt whereHelpernull_Time Height whereHelpernull_Int SRC whereHelperstring UpdatedAt whereHelpernull_Time Width whereHelpernull_Int }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Height: whereHelpernull_Int{/* contains filtered or unexported fields */}, SRC: whereHelperstring{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Width: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var InventoryItemColumns = struct { ID string Cost string CountryCodeOfOrigin string CreatedAt string ProvinceCodeOfOrigin string RequiresShipping string Sku string Tracked string UpdatedAt string }{ ID: "id", Cost: "cost", CountryCodeOfOrigin: "country_code_of_origin", CreatedAt: "created_at", ProvinceCodeOfOrigin: "province_code_of_origin", RequiresShipping: "requires_shipping", Sku: "sku", Tracked: "tracked", UpdatedAt: "updated_at", }
var InventoryItemRels = struct { InventoryLevels string }{ InventoryLevels: "InventoryLevels", }
InventoryItemRels is where relationship names are stored.
var InventoryItemTableColumns = struct { ID string Cost string CountryCodeOfOrigin string CreatedAt string ProvinceCodeOfOrigin string RequiresShipping string Sku string Tracked string UpdatedAt string }{ ID: "inventory_item.id", Cost: "inventory_item.cost", CountryCodeOfOrigin: "inventory_item.country_code_of_origin", CreatedAt: "inventory_item.created_at", ProvinceCodeOfOrigin: "inventory_item.province_code_of_origin", RequiresShipping: "inventory_item.requires_shipping", Sku: "inventory_item.sku", Tracked: "inventory_item.tracked", UpdatedAt: "inventory_item.updated_at", }
var InventoryItemWhere = struct { ID whereHelperint64 Cost whereHelpertypes_NullDecimal CountryCodeOfOrigin whereHelpernull_String CreatedAt whereHelpernull_Time ProvinceCodeOfOrigin whereHelpernull_String RequiresShipping whereHelperbool Sku whereHelpernull_String Tracked whereHelperbool UpdatedAt whereHelpernull_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Cost: whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */}, CountryCodeOfOrigin: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ProvinceCodeOfOrigin: whereHelpernull_String{/* contains filtered or unexported fields */}, RequiresShipping: whereHelperbool{/* contains filtered or unexported fields */}, Sku: whereHelpernull_String{/* contains filtered or unexported fields */}, Tracked: whereHelperbool{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var InventoryLevelColumns = struct { InventoryItemID string LocationID string Available string UpdatedAt string }{ InventoryItemID: "inventory_item_id", LocationID: "location_id", Available: "available", UpdatedAt: "updated_at", }
var InventoryLevelRels = struct { InventoryItem string Location string }{ InventoryItem: "InventoryItem", Location: "Location", }
InventoryLevelRels is where relationship names are stored.
var InventoryLevelTableColumns = struct { InventoryItemID string LocationID string Available string UpdatedAt string }{ InventoryItemID: "inventory_level.inventory_item_id", LocationID: "inventory_level.location_id", Available: "inventory_level.available", UpdatedAt: "inventory_level.updated_at", }
var InventoryLevelWhere = struct { InventoryItemID whereHelperint64 LocationID whereHelperint64 Available whereHelperint UpdatedAt whereHelpernull_Time }{ InventoryItemID: whereHelperint64{/* contains filtered or unexported fields */}, LocationID: whereHelperint64{/* contains filtered or unexported fields */}, Available: whereHelperint{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var LocationColumns = struct { ID string Active string Address1 string Address2 string City string CreatedAt string Name string Phone string UpdatedAt string Zip string CountryCode string ProvinceCode string }{ ID: "id", Active: "active", Address1: "address1", Address2: "address2", City: "city", CreatedAt: "created_at", Name: "name", Phone: "phone", UpdatedAt: "updated_at", Zip: "zip", CountryCode: "country_code", ProvinceCode: "province_code", }
var LocationRels = struct { InventoryLevels string }{ InventoryLevels: "InventoryLevels", }
LocationRels is where relationship names are stored.
var LocationTableColumns = struct { ID string Active string Address1 string Address2 string City string CreatedAt string Name string Phone string UpdatedAt string Zip string CountryCode string ProvinceCode string }{ ID: "location.id", Active: "location.active", Address1: "location.address1", Address2: "location.address2", City: "location.city", CreatedAt: "location.created_at", Name: "location.name", Phone: "location.phone", UpdatedAt: "location.updated_at", Zip: "location.zip", CountryCode: "location.country_code", ProvinceCode: "location.province_code", }
var LocationWhere = struct { ID whereHelperint64 Active whereHelperbool Address1 whereHelpernull_String Address2 whereHelpernull_String City whereHelpernull_String CreatedAt whereHelpernull_Time Name whereHelperstring Phone whereHelpernull_String UpdatedAt whereHelpernull_Time Zip whereHelpernull_String CountryCode whereHelpernull_String ProvinceCode whereHelpernull_String }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Active: whereHelperbool{/* contains filtered or unexported fields */}, Address1: whereHelpernull_String{/* contains filtered or unexported fields */}, Address2: whereHelpernull_String{/* contains filtered or unexported fields */}, City: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Phone: whereHelpernull_String{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Zip: whereHelpernull_String{/* contains filtered or unexported fields */}, CountryCode: whereHelpernull_String{/* contains filtered or unexported fields */}, ProvinceCode: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var OrderLineColumns = struct { ID string OrderID string ProductID string VariantID string Sku string Name string Title string VariantTitle string Vendor string Quantity string Price string TotalDiscount string }{ ID: "id", OrderID: "order_id", ProductID: "product_id", VariantID: "variant_id", Sku: "sku", Name: "name", Title: "title", VariantTitle: "variant_title", Vendor: "vendor", Quantity: "quantity", Price: "price", TotalDiscount: "total_discount", }
var OrderLineRels = struct { Order string Product string Variant string }{ Order: "Order", Product: "Product", Variant: "Variant", }
OrderLineRels is where relationship names are stored.
var OrderLineTableColumns = struct { ID string OrderID string ProductID string VariantID string Sku string Name string Title string VariantTitle string Vendor string Quantity string Price string TotalDiscount string }{ ID: "order_line.id", OrderID: "order_line.order_id", ProductID: "order_line.product_id", VariantID: "order_line.variant_id", Sku: "order_line.sku", Name: "order_line.name", Title: "order_line.title", VariantTitle: "order_line.variant_title", Vendor: "order_line.vendor", Quantity: "order_line.quantity", Price: "order_line.price", TotalDiscount: "order_line.total_discount", }
var OrderLineWhere = struct { ID whereHelperint64 OrderID whereHelperint64 ProductID whereHelpernull_Int64 VariantID whereHelpernull_Int64 Sku whereHelpernull_String Name whereHelpernull_String Title whereHelpernull_String VariantTitle whereHelpernull_String Vendor whereHelpernull_String Quantity whereHelperint Price whereHelpertypes_Decimal TotalDiscount whereHelpertypes_Decimal }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, OrderID: whereHelperint64{/* contains filtered or unexported fields */}, ProductID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, VariantID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Sku: whereHelpernull_String{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, VariantTitle: whereHelpernull_String{/* contains filtered or unexported fields */}, Vendor: whereHelpernull_String{/* contains filtered or unexported fields */}, Quantity: whereHelperint{/* contains filtered or unexported fields */}, Price: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, TotalDiscount: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, }
var ProductColumns = struct { ID string BodyHTML string Title string Handle string ProductType string Vendor string CreatedAt string UpdatedAt string PublishedAt string PublishedScope string Status string TemplateSuffix string }{ ID: "id", BodyHTML: "body_html", Title: "title", Handle: "handle", ProductType: "product_type", Vendor: "vendor", CreatedAt: "created_at", UpdatedAt: "updated_at", PublishedAt: "published_at", PublishedScope: "published_scope", Status: "status", TemplateSuffix: "template_suffix", }
var ProductImageColumns = struct { ProductID string ImageID string Position string }{ ProductID: "product_id", ImageID: "image_id", Position: "position", }
var ProductImageRels = struct { Product string Image string }{ Product: "Product", Image: "Image", }
ProductImageRels is where relationship names are stored.
var ProductImageTableColumns = struct { ProductID string ImageID string Position string }{ ProductID: "product_image.product_id", ImageID: "product_image.image_id", Position: "product_image.position", }
var ProductImageWhere = struct { ProductID whereHelperint64 ImageID whereHelperint64 Position whereHelpernull_Int16 }{ ProductID: whereHelperint64{/* contains filtered or unexported fields */}, ImageID: whereHelperint64{/* contains filtered or unexported fields */}, Position: whereHelpernull_Int16{/* contains filtered or unexported fields */}, }
var ProductOptionColumns = struct { ID string ProductID string Position string Name string }{ ID: "id", ProductID: "product_id", Position: "position", Name: "name", }
var ProductOptionRels = struct { Product string OptionProductOptionValue string }{ Product: "Product", OptionProductOptionValue: "OptionProductOptionValue", }
ProductOptionRels is where relationship names are stored.
var ProductOptionTableColumns = struct { ID string ProductID string Position string Name string }{ ID: "product_option.id", ProductID: "product_option.product_id", Position: "product_option.position", Name: "product_option.name", }
var ProductOptionValueColumns = struct { OptionID string Value string }{ OptionID: "option_id", Value: "value", }
var ProductOptionValueRels = struct { Option string Option1ValueProductVariants string Option2ValueProductVariants string Option3ValueProductVariants string }{ Option: "Option", Option1ValueProductVariants: "Option1ValueProductVariants", Option2ValueProductVariants: "Option2ValueProductVariants", Option3ValueProductVariants: "Option3ValueProductVariants", }
ProductOptionValueRels is where relationship names are stored.
var ProductOptionValueTableColumns = struct { OptionID string Value string }{ OptionID: "product_option_value.option_id", Value: "product_option_value.value", }
var ProductOptionValueWhere = struct { OptionID whereHelperint64 Value whereHelperstring }{ OptionID: whereHelperint64{/* contains filtered or unexported fields */}, Value: whereHelperstring{/* contains filtered or unexported fields */}, }
var ProductOptionWhere = struct { ID whereHelperint64 ProductID whereHelperint64 Position whereHelperint Name whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, ProductID: whereHelperint64{/* contains filtered or unexported fields */}, Position: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var ProductRels = struct { Collections string OrderLines string ProductImages string ProductOptions string ProductTags string ProductVariants string }{ Collections: "Collections", OrderLines: "OrderLines", ProductImages: "ProductImages", ProductOptions: "ProductOptions", ProductTags: "ProductTags", ProductVariants: "ProductVariants", }
ProductRels is where relationship names are stored.
var ProductTableColumns = struct { ID string BodyHTML string Title string Handle string ProductType string Vendor string CreatedAt string UpdatedAt string PublishedAt string PublishedScope string Status string TemplateSuffix string }{ ID: "product.id", BodyHTML: "product.body_html", Title: "product.title", Handle: "product.handle", ProductType: "product.product_type", Vendor: "product.vendor", CreatedAt: "product.created_at", UpdatedAt: "product.updated_at", PublishedAt: "product.published_at", PublishedScope: "product.published_scope", Status: "product.status", TemplateSuffix: "product.template_suffix", }
var ProductTagColumns = struct { TagID string ProductID string Value string }{ TagID: "tag_id", ProductID: "product_id", Value: "value", }
var ProductTagRels = struct { Tag string Product string }{ Tag: "Tag", Product: "Product", }
ProductTagRels is where relationship names are stored.
var ProductTagTableColumns = struct { TagID string ProductID string Value string }{ TagID: "product_tag.tag_id", ProductID: "product_tag.product_id", Value: "product_tag.value", }
var ProductTagWhere = struct { TagID whereHelperint64 ProductID whereHelperint64 Value whereHelperstring }{ TagID: whereHelperint64{/* contains filtered or unexported fields */}, ProductID: whereHelperint64{/* contains filtered or unexported fields */}, Value: whereHelperstring{/* contains filtered or unexported fields */}, }
var ProductVariantColumns = struct { ID string ProductID string InventoryItemID string ImageID string Barcode string CompareAtPrice string FulfillmentService string Grams string InventoryManagement string InventoryPolicy string InventoryQuantity string Position string Price string Sku string Taxable string Title string Weight string WeightUnit string CreatedAt string UpdatedAt string Option1ValueID string Option2ValueID string Option3ValueID string }{ ID: "id", ProductID: "product_id", InventoryItemID: "inventory_item_id", ImageID: "image_id", Barcode: "barcode", CompareAtPrice: "compare_at_price", FulfillmentService: "fulfillment_service", Grams: "grams", InventoryManagement: "inventory_management", InventoryPolicy: "inventory_policy", InventoryQuantity: "inventory_quantity", Position: "position", Price: "price", Sku: "sku", Taxable: "taxable", Title: "title", Weight: "weight", WeightUnit: "weight_unit", CreatedAt: "created_at", UpdatedAt: "updated_at", Option1ValueID: "option_1_value_id", Option2ValueID: "option_2_value_id", Option3ValueID: "option_3_value_id", }
var ProductVariantRels = struct { Product string Option1Value string Option2Value string Option3Value string Image string InventoryItem string VariantOrderLines string }{ Product: "Product", Option1Value: "Option1Value", Option2Value: "Option2Value", Option3Value: "Option3Value", Image: "Image", InventoryItem: "InventoryItem", VariantOrderLines: "VariantOrderLines", }
ProductVariantRels is where relationship names are stored.
var ProductVariantTableColumns = struct { ID string ProductID string InventoryItemID string ImageID string Barcode string CompareAtPrice string FulfillmentService string Grams string InventoryManagement string InventoryPolicy string InventoryQuantity string Position string Price string Sku string Taxable string Title string Weight string WeightUnit string CreatedAt string UpdatedAt string Option1ValueID string Option2ValueID string Option3ValueID string }{ ID: "product_variant.id", ProductID: "product_variant.product_id", InventoryItemID: "product_variant.inventory_item_id", ImageID: "product_variant.image_id", Barcode: "product_variant.barcode", CompareAtPrice: "product_variant.compare_at_price", FulfillmentService: "product_variant.fulfillment_service", Grams: "product_variant.grams", InventoryManagement: "product_variant.inventory_management", InventoryPolicy: "product_variant.inventory_policy", InventoryQuantity: "product_variant.inventory_quantity", Position: "product_variant.position", Price: "product_variant.price", Sku: "product_variant.sku", Taxable: "product_variant.taxable", Title: "product_variant.title", Weight: "product_variant.weight", WeightUnit: "product_variant.weight_unit", CreatedAt: "product_variant.created_at", UpdatedAt: "product_variant.updated_at", Option1ValueID: "product_variant.option_1_value_id", Option2ValueID: "product_variant.option_2_value_id", Option3ValueID: "product_variant.option_3_value_id", }
var ProductVariantWhere = struct { ID whereHelperint64 ProductID whereHelperint64 InventoryItemID whereHelpernull_Int64 ImageID whereHelpernull_Int64 Barcode whereHelpernull_String CompareAtPrice whereHelpertypes_NullDecimal FulfillmentService whereHelpernull_String Grams whereHelpernull_Float64 InventoryManagement whereHelperstring InventoryPolicy whereHelperstring InventoryQuantity whereHelperint Position whereHelperint16 Price whereHelpertypes_Decimal Sku whereHelpernull_String Taxable whereHelperbool Title whereHelpernull_String Weight whereHelpernull_Float64 WeightUnit whereHelperstring CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time Option1ValueID whereHelpernull_Int64 Option2ValueID whereHelpernull_Int64 Option3ValueID whereHelpernull_Int64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, ProductID: whereHelperint64{/* contains filtered or unexported fields */}, InventoryItemID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, ImageID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Barcode: whereHelpernull_String{/* contains filtered or unexported fields */}, CompareAtPrice: whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */}, FulfillmentService: whereHelpernull_String{/* contains filtered or unexported fields */}, Grams: whereHelpernull_Float64{/* contains filtered or unexported fields */}, InventoryManagement: whereHelperstring{/* contains filtered or unexported fields */}, InventoryPolicy: whereHelperstring{/* contains filtered or unexported fields */}, InventoryQuantity: whereHelperint{/* contains filtered or unexported fields */}, Position: whereHelperint16{/* contains filtered or unexported fields */}, Price: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, Sku: whereHelpernull_String{/* contains filtered or unexported fields */}, Taxable: whereHelperbool{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, Weight: whereHelpernull_Float64{/* contains filtered or unexported fields */}, WeightUnit: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Option1ValueID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Option2ValueID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, Option3ValueID: whereHelpernull_Int64{/* contains filtered or unexported fields */}, }
var ProductWhere = struct { ID whereHelperint64 BodyHTML whereHelpernull_String Title whereHelpernull_String Handle whereHelperstring ProductType whereHelpernull_String Vendor whereHelpernull_String CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time PublishedAt whereHelpernull_Time PublishedScope whereHelperstring Status whereHelperint8 TemplateSuffix whereHelpernull_String }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, BodyHTML: whereHelpernull_String{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, Handle: whereHelperstring{/* contains filtered or unexported fields */}, ProductType: whereHelpernull_String{/* contains filtered or unexported fields */}, Vendor: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, PublishedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, PublishedScope: whereHelperstring{/* contains filtered or unexported fields */}, Status: whereHelperint8{/* contains filtered or unexported fields */}, TemplateSuffix: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var TableNames = struct { Collection string CollectionProduct string Customer string CustomerAddress string CustomerOrder string GorpMigrations string Image string InventoryItem string InventoryLevel string Location string OrderLine string Product string ProductImage string ProductOption string ProductOptionValue string ProductTag string ProductVariant string Tag string }{ Collection: "collection", CollectionProduct: "collection_product", Customer: "customer", CustomerAddress: "customer_address", CustomerOrder: "customer_order", GorpMigrations: "gorp_migrations", Image: "image", InventoryItem: "inventory_item", InventoryLevel: "inventory_level", Location: "location", OrderLine: "order_line", Product: "product", ProductImage: "product_image", ProductOption: "product_option", ProductOptionValue: "product_option_value", ProductTag: "product_tag", ProductVariant: "product_variant", Tag: "tag", }
var TagColumns = struct { ID string Value string }{ ID: "id", Value: "value", }
var TagRels = struct { ProductTags string }{ ProductTags: "ProductTags", }
TagRels is where relationship names are stored.
var TagTableColumns = struct { ID string Value string }{ ID: "tag.id", Value: "tag.value", }
var TagWhere = struct { ID whereHelperint64 Value whereHelpernull_String }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Value: whereHelpernull_String{/* contains filtered or unexported fields */}, }
Functions ¶
func AddCollectionHook ¶
func AddCollectionHook(hookPoint boil.HookPoint, collectionHook CollectionHook)
AddCollectionHook registers your hook function for all future operations.
func AddCustomerAddressHook ¶
func AddCustomerAddressHook(hookPoint boil.HookPoint, customerAddressHook CustomerAddressHook)
AddCustomerAddressHook registers your hook function for all future operations.
func AddCustomerHook ¶
func AddCustomerHook(hookPoint boil.HookPoint, customerHook CustomerHook)
AddCustomerHook registers your hook function for all future operations.
func AddCustomerOrderHook ¶
func AddCustomerOrderHook(hookPoint boil.HookPoint, customerOrderHook CustomerOrderHook)
AddCustomerOrderHook registers your hook function for all future operations.
func AddGorpMigrationHook ¶
func AddGorpMigrationHook(hookPoint boil.HookPoint, gorpMigrationHook GorpMigrationHook)
AddGorpMigrationHook registers your hook function for all future operations.
func AddImageHook ¶
AddImageHook registers your hook function for all future operations.
func AddInventoryItemHook ¶
func AddInventoryItemHook(hookPoint boil.HookPoint, inventoryItemHook InventoryItemHook)
AddInventoryItemHook registers your hook function for all future operations.
func AddInventoryLevelHook ¶
func AddInventoryLevelHook(hookPoint boil.HookPoint, inventoryLevelHook InventoryLevelHook)
AddInventoryLevelHook registers your hook function for all future operations.
func AddLocationHook ¶
func AddLocationHook(hookPoint boil.HookPoint, locationHook LocationHook)
AddLocationHook registers your hook function for all future operations.
func AddOrderLineHook ¶
func AddOrderLineHook(hookPoint boil.HookPoint, orderLineHook OrderLineHook)
AddOrderLineHook registers your hook function for all future operations.
func AddProductHook ¶
func AddProductHook(hookPoint boil.HookPoint, productHook ProductHook)
AddProductHook registers your hook function for all future operations.
func AddProductImageHook ¶
func AddProductImageHook(hookPoint boil.HookPoint, productImageHook ProductImageHook)
AddProductImageHook registers your hook function for all future operations.
func AddProductOptionHook ¶
func AddProductOptionHook(hookPoint boil.HookPoint, productOptionHook ProductOptionHook)
AddProductOptionHook registers your hook function for all future operations.
func AddProductOptionValueHook ¶
func AddProductOptionValueHook(hookPoint boil.HookPoint, productOptionValueHook ProductOptionValueHook)
AddProductOptionValueHook registers your hook function for all future operations.
func AddProductTagHook ¶
func AddProductTagHook(hookPoint boil.HookPoint, productTagHook ProductTagHook)
AddProductTagHook registers your hook function for all future operations.
func AddProductVariantHook ¶
func AddProductVariantHook(hookPoint boil.HookPoint, productVariantHook ProductVariantHook)
AddProductVariantHook registers your hook function for all future operations.
func AddTagHook ¶
AddTagHook registers your hook function for all future operations.
func CollectionExists ¶
CollectionExists checks if the Collection row exists.
func Collections ¶
Collections retrieves all the records using an executor.
func CustomerAddressExists ¶
CustomerAddressExists checks if the CustomerAddress row exists.
func CustomerAddresses ¶
CustomerAddresses retrieves all the records using an executor.
func CustomerExists ¶
CustomerExists checks if the Customer row exists.
func CustomerOrderExists ¶
CustomerOrderExists checks if the CustomerOrder row exists.
func CustomerOrders ¶
CustomerOrders retrieves all the records using an executor.
func GorpMigrationExists ¶
GorpMigrationExists checks if the GorpMigration row exists.
func GorpMigrations ¶
GorpMigrations retrieves all the records using an executor.
func ImageExists ¶
ImageExists checks if the Image row exists.
func InventoryItemExists ¶
InventoryItemExists checks if the InventoryItem row exists.
func InventoryItems ¶
InventoryItems retrieves all the records using an executor.
func InventoryLevelExists ¶
func InventoryLevelExists(ctx context.Context, exec boil.ContextExecutor, inventoryItemID int64, locationID int64) (bool, error)
InventoryLevelExists checks if the InventoryLevel row exists.
func InventoryLevels ¶
InventoryLevels retrieves all the records using an executor.
func LocationExists ¶
LocationExists checks if the Location row exists.
func OrderLineExists ¶
OrderLineExists checks if the OrderLine row exists.
func OrderLines ¶
OrderLines retrieves all the records using an executor.
func ProductExists ¶
ProductExists checks if the Product row exists.
func ProductImageExists ¶
func ProductImageExists(ctx context.Context, exec boil.ContextExecutor, productID int64, imageID int64) (bool, error)
ProductImageExists checks if the ProductImage row exists.
func ProductImages ¶
ProductImages retrieves all the records using an executor.
func ProductOptionExists ¶
ProductOptionExists checks if the ProductOption row exists.
func ProductOptionValueExists ¶
func ProductOptionValueExists(ctx context.Context, exec boil.ContextExecutor, optionID int64) (bool, error)
ProductOptionValueExists checks if the ProductOptionValue row exists.
func ProductOptionValues ¶
ProductOptionValues retrieves all the records using an executor.
func ProductOptions ¶
ProductOptions retrieves all the records using an executor.
func ProductTagExists ¶
func ProductTagExists(ctx context.Context, exec boil.ContextExecutor, tagID int64, productID int64) (bool, error)
ProductTagExists checks if the ProductTag row exists.
func ProductTags ¶
ProductTags retrieves all the records using an executor.
func ProductVariantExists ¶
ProductVariantExists checks if the ProductVariant row exists.
func ProductVariants ¶
ProductVariants retrieves all the records using an executor.
Types ¶
type Collection ¶
type Collection struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` ImageID null.Int64 `boil:"image_id" json:"image_id,omitempty" toml:"image_id" yaml:"image_id,omitempty"` BodyHTML null.String `boil:"body_html" json:"body_html,omitempty" toml:"body_html" yaml:"body_html,omitempty"` Handle string `boil:"handle" json:"handle" toml:"handle" yaml:"handle"` PublishedAt null.Time `boil:"published_at" json:"published_at,omitempty" toml:"published_at" yaml:"published_at,omitempty"` PublishedScope string `boil:"published_scope" json:"published_scope" toml:"published_scope" yaml:"published_scope"` SortOrder string `boil:"sort_order" json:"sort_order" toml:"sort_order" yaml:"sort_order"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` TemplateSuffix null.String `boil:"template_suffix" json:"template_suffix,omitempty" toml:"template_suffix" yaml:"template_suffix,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *collectionR `boil:"-" json:"-" toml:"-" yaml:"-"` L collectionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Collection is an object representing the database table.
func FindCollection ¶
func FindCollection(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Collection, error)
FindCollection retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Collection) AddProducts ¶
func (o *Collection) AddProducts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Product) error
AddProducts adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.Products. Sets related.R.Collections appropriately.
func (*Collection) Delete ¶
func (o *Collection) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Collection record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Collection) Image ¶
func (o *Collection) Image(mods ...qm.QueryMod) imageQuery
Image pointed to by the foreign key.
func (*Collection) Insert ¶
func (o *Collection) 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 (*Collection) Products ¶
func (o *Collection) Products(mods ...qm.QueryMod) productQuery
Products retrieves all the product's Products with an executor.
func (*Collection) Reload ¶
func (o *Collection) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Collection) RemoveImage ¶
func (o *Collection) RemoveImage(ctx context.Context, exec boil.ContextExecutor, related *Image) error
RemoveImage relationship. Sets o.R.Image to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Collection) RemoveProducts ¶
func (o *Collection) RemoveProducts(ctx context.Context, exec boil.ContextExecutor, related ...*Product) error
RemoveProducts relationships from objects passed in. Removes related items from R.Products (uses pointer comparison, removal does not keep order) Sets related.R.Collections.
func (*Collection) SetImage ¶
func (o *Collection) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
SetImage of the collection to the related item. Sets o.R.Image to related. Adds o to related.R.Collections.
func (*Collection) SetProducts ¶
func (o *Collection) SetProducts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Product) error
SetProducts removes all previously related items of the collection replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Collections's Products accordingly. Replaces o.R.Products with related. Sets related.R.Collections's Products accordingly.
func (*Collection) Update ¶
func (o *Collection) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Collection. 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 (*Collection) Upsert ¶
func (o *Collection) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CollectionHook ¶
type CollectionHook func(context.Context, boil.ContextExecutor, *Collection) error
CollectionHook is the signature for custom Collection hook methods
type CollectionSlice ¶
type CollectionSlice []*Collection
CollectionSlice is an alias for a slice of pointers to Collection. This should almost always be used instead of []Collection.
func (CollectionSlice) DeleteAll ¶
func (o CollectionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CollectionSlice) ReloadAll ¶
func (o *CollectionSlice) 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 (CollectionSlice) UpdateAll ¶
func (o CollectionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Customer ¶
type Customer struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` DefaultAddressID null.Int64 `boil:"default_address_id" json:"default_address_id,omitempty" toml:"default_address_id" yaml:"default_address_id,omitempty"` AcceptsMarketing bool `boil:"accepts_marketing" json:"accepts_marketing" toml:"accepts_marketing" yaml:"accepts_marketing"` AcceptsMarketingUpdatedAt time.Time `` /* 143-byte string literal not displayed */ CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` Email null.String `boil:"email" json:"email,omitempty" toml:"email" yaml:"email,omitempty"` FirstName string `boil:"first_name" json:"first_name" toml:"first_name" yaml:"first_name"` LastName null.String `boil:"last_name" json:"last_name,omitempty" toml:"last_name" yaml:"last_name,omitempty"` MarketingOptInLevel string `boil:"marketing_opt_in_level" json:"marketing_opt_in_level" toml:"marketing_opt_in_level" yaml:"marketing_opt_in_level"` Note null.String `boil:"note" json:"note,omitempty" toml:"note" yaml:"note,omitempty"` OrderCount int `boil:"order_count" json:"order_count" toml:"order_count" yaml:"order_count"` Phone string `boil:"phone" json:"phone" toml:"phone" yaml:"phone"` State string `boil:"state" json:"state" toml:"state" yaml:"state"` TaxExempt bool `boil:"tax_exempt" json:"tax_exempt" toml:"tax_exempt" yaml:"tax_exempt"` TotalSpent types.Decimal `boil:"total_spent" json:"total_spent" toml:"total_spent" yaml:"total_spent"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` VerifiedEmail bool `boil:"verified_email" json:"verified_email" toml:"verified_email" yaml:"verified_email"` R *customerR `boil:"-" json:"-" toml:"-" yaml:"-"` L customerL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Customer is an object representing the database table.
func FindCustomer ¶
func FindCustomer(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Customer, error)
FindCustomer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Customer) AddCustomerAddresses ¶
func (o *Customer) AddCustomerAddresses(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CustomerAddress) error
AddCustomerAddresses adds the given related objects to the existing relationships of the customer, optionally inserting them as new records. Appends related to o.R.CustomerAddresses. Sets related.R.Customer appropriately.
func (*Customer) CustomerAddresses ¶
CustomerAddresses retrieves all the customer_address's CustomerAddresses with an executor.
func (*Customer) DefaultAddress ¶
DefaultAddress pointed to by the foreign key.
func (*Customer) Delete ¶
Delete deletes a single Customer record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Customer) Insert ¶
func (o *Customer) 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 (*Customer) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Customer) RemoveDefaultAddress ¶
func (o *Customer) RemoveDefaultAddress(ctx context.Context, exec boil.ContextExecutor, related *CustomerAddress) error
RemoveDefaultAddress relationship. Sets o.R.DefaultAddress to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Customer) SetDefaultAddress ¶
func (o *Customer) SetDefaultAddress(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CustomerAddress) error
SetDefaultAddress of the customer to the related item. Sets o.R.DefaultAddress to related. Adds o to related.R.DefaultAddressCustomers.
func (*Customer) Update ¶
func (o *Customer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Customer. 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 (*Customer) Upsert ¶
func (o *Customer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CustomerAddress ¶
type CustomerAddress struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CustomerID int64 `boil:"customer_id" json:"customer_id" toml:"customer_id" yaml:"customer_id"` Address1 null.String `boil:"address1" json:"address1,omitempty" toml:"address1" yaml:"address1,omitempty"` Address2 null.String `boil:"address2" json:"address2,omitempty" toml:"address2" yaml:"address2,omitempty"` City null.String `boil:"city" json:"city,omitempty" toml:"city" yaml:"city,omitempty"` Company null.String `boil:"company" json:"company,omitempty" toml:"company" yaml:"company,omitempty"` Country null.String `boil:"country" json:"country,omitempty" toml:"country" yaml:"country,omitempty"` CountryCode null.String `boil:"country_code" json:"country_code,omitempty" toml:"country_code" yaml:"country_code,omitempty"` FirstName null.String `boil:"first_name" json:"first_name,omitempty" toml:"first_name" yaml:"first_name,omitempty"` IsDefault bool `boil:"is_default" json:"is_default" toml:"is_default" yaml:"is_default"` LastName null.String `boil:"last_name" json:"last_name,omitempty" toml:"last_name" yaml:"last_name,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Phone null.String `boil:"phone" json:"phone,omitempty" toml:"phone" yaml:"phone,omitempty"` Province null.String `boil:"province" json:"province,omitempty" toml:"province" yaml:"province,omitempty"` ProvinceCode null.String `boil:"province_code" json:"province_code,omitempty" toml:"province_code" yaml:"province_code,omitempty"` Zip null.String `boil:"zip" json:"zip,omitempty" toml:"zip" yaml:"zip,omitempty"` R *customerAddressR `boil:"-" json:"-" toml:"-" yaml:"-"` L customerAddressL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CustomerAddress is an object representing the database table.
func FindCustomerAddress ¶
func FindCustomerAddress(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CustomerAddress, error)
FindCustomerAddress retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*CustomerAddress) AddDefaultAddressCustomers ¶
func (o *CustomerAddress) AddDefaultAddressCustomers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Customer) error
AddDefaultAddressCustomers adds the given related objects to the existing relationships of the customer_address, optionally inserting them as new records. Appends related to o.R.DefaultAddressCustomers. Sets related.R.DefaultAddress appropriately.
func (*CustomerAddress) Customer ¶
func (o *CustomerAddress) Customer(mods ...qm.QueryMod) customerQuery
Customer pointed to by the foreign key.
func (*CustomerAddress) DefaultAddressCustomers ¶
func (o *CustomerAddress) DefaultAddressCustomers(mods ...qm.QueryMod) customerQuery
DefaultAddressCustomers retrieves all the customer's Customers with an executor via default_address_id column.
func (*CustomerAddress) Delete ¶
func (o *CustomerAddress) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CustomerAddress record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CustomerAddress) Insert ¶
func (o *CustomerAddress) 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 (*CustomerAddress) Reload ¶
func (o *CustomerAddress) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CustomerAddress) RemoveDefaultAddressCustomers ¶
func (o *CustomerAddress) RemoveDefaultAddressCustomers(ctx context.Context, exec boil.ContextExecutor, related ...*Customer) error
RemoveDefaultAddressCustomers relationships from objects passed in. Removes related items from R.DefaultAddressCustomers (uses pointer comparison, removal does not keep order) Sets related.R.DefaultAddress.
func (*CustomerAddress) SetCustomer ¶
func (o *CustomerAddress) SetCustomer(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Customer) error
SetCustomer of the customerAddress to the related item. Sets o.R.Customer to related. Adds o to related.R.CustomerAddresses.
func (*CustomerAddress) SetDefaultAddressCustomers ¶
func (o *CustomerAddress) SetDefaultAddressCustomers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Customer) error
SetDefaultAddressCustomers removes all previously related items of the customer_address replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.DefaultAddress's DefaultAddressCustomers accordingly. Replaces o.R.DefaultAddressCustomers with related. Sets related.R.DefaultAddress's DefaultAddressCustomers accordingly.
func (*CustomerAddress) Update ¶
func (o *CustomerAddress) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CustomerAddress. 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 (*CustomerAddress) Upsert ¶
func (o *CustomerAddress) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CustomerAddressHook ¶
type CustomerAddressHook func(context.Context, boil.ContextExecutor, *CustomerAddress) error
CustomerAddressHook is the signature for custom CustomerAddress hook methods
type CustomerAddressSlice ¶
type CustomerAddressSlice []*CustomerAddress
CustomerAddressSlice is an alias for a slice of pointers to CustomerAddress. This should almost always be used instead of []CustomerAddress.
func (CustomerAddressSlice) DeleteAll ¶
func (o CustomerAddressSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CustomerAddressSlice) ReloadAll ¶
func (o *CustomerAddressSlice) 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 (CustomerAddressSlice) UpdateAll ¶
func (o CustomerAddressSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type CustomerHook ¶
CustomerHook is the signature for custom Customer hook methods
type CustomerOrder ¶
type CustomerOrder struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` OrderNumber int `boil:"order_number" json:"order_number" toml:"order_number" yaml:"order_number"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Note null.String `boil:"note" json:"note,omitempty" toml:"note" yaml:"note,omitempty"` Email string `boil:"email" json:"email" toml:"email" yaml:"email"` FinancialStatus string `boil:"financial_status" json:"financial_status" toml:"financial_status" yaml:"financial_status"` FulfillmentStatus string `boil:"fulfillment_status" json:"fulfillment_status" toml:"fulfillment_status" yaml:"fulfillment_status"` TotalDiscounts types.Decimal `boil:"total_discounts" json:"total_discounts" toml:"total_discounts" yaml:"total_discounts"` TotalLineItemsPrice types.Decimal `boil:"total_line_items_price" json:"total_line_items_price" toml:"total_line_items_price" yaml:"total_line_items_price"` TotalOutstanding types.Decimal `boil:"total_outstanding" json:"total_outstanding" toml:"total_outstanding" yaml:"total_outstanding"` TotalPrice types.Decimal `boil:"total_price" json:"total_price" toml:"total_price" yaml:"total_price"` TotalTax types.Decimal `boil:"total_tax" json:"total_tax" toml:"total_tax" yaml:"total_tax"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` ProcessedAt null.Time `boil:"processed_at" json:"processed_at,omitempty" toml:"processed_at" yaml:"processed_at,omitempty"` CancelledAt null.Time `boil:"cancelled_at" json:"cancelled_at,omitempty" toml:"cancelled_at" yaml:"cancelled_at,omitempty"` ClosedAt null.Time `boil:"closed_at" json:"closed_at,omitempty" toml:"closed_at" yaml:"closed_at,omitempty"` R *customerOrderR `boil:"-" json:"-" toml:"-" yaml:"-"` L customerOrderL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CustomerOrder is an object representing the database table.
func FindCustomerOrder ¶
func FindCustomerOrder(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CustomerOrder, error)
FindCustomerOrder retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*CustomerOrder) AddOrderOrderLines ¶
func (o *CustomerOrder) AddOrderOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderLine) error
AddOrderOrderLines adds the given related objects to the existing relationships of the customer_order, optionally inserting them as new records. Appends related to o.R.OrderOrderLines. Sets related.R.Order appropriately.
func (*CustomerOrder) Delete ¶
func (o *CustomerOrder) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CustomerOrder record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CustomerOrder) Insert ¶
func (o *CustomerOrder) 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 (*CustomerOrder) OrderOrderLines ¶
func (o *CustomerOrder) OrderOrderLines(mods ...qm.QueryMod) orderLineQuery
OrderOrderLines retrieves all the order_line's OrderLines with an executor via order_id column.
func (*CustomerOrder) Reload ¶
func (o *CustomerOrder) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CustomerOrder) Update ¶
func (o *CustomerOrder) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CustomerOrder. 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 (*CustomerOrder) Upsert ¶
func (o *CustomerOrder) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CustomerOrderHook ¶
type CustomerOrderHook func(context.Context, boil.ContextExecutor, *CustomerOrder) error
CustomerOrderHook is the signature for custom CustomerOrder hook methods
type CustomerOrderSlice ¶
type CustomerOrderSlice []*CustomerOrder
CustomerOrderSlice is an alias for a slice of pointers to CustomerOrder. This should almost always be used instead of []CustomerOrder.
func (CustomerOrderSlice) DeleteAll ¶
func (o CustomerOrderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CustomerOrderSlice) ReloadAll ¶
func (o *CustomerOrderSlice) 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 (CustomerOrderSlice) UpdateAll ¶
func (o CustomerOrderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type CustomerSlice ¶
type CustomerSlice []*Customer
CustomerSlice is an alias for a slice of pointers to Customer. This should almost always be used instead of []Customer.
func (CustomerSlice) DeleteAll ¶
func (o CustomerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CustomerSlice) ReloadAll ¶
func (o *CustomerSlice) 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 (CustomerSlice) UpdateAll ¶
func (o CustomerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type GorpMigration ¶
type GorpMigration struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AppliedAt null.Time `boil:"applied_at" json:"applied_at,omitempty" toml:"applied_at" yaml:"applied_at,omitempty"` R *gorpMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"` L gorpMigrationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GorpMigration is an object representing the database table.
func FindGorpMigration ¶
func FindGorpMigration(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GorpMigration, error)
FindGorpMigration retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*GorpMigration) Delete ¶
func (o *GorpMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single GorpMigration record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GorpMigration) Insert ¶
func (o *GorpMigration) 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 (*GorpMigration) Reload ¶
func (o *GorpMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*GorpMigration) Update ¶
func (o *GorpMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the GorpMigration. 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 (*GorpMigration) Upsert ¶
func (o *GorpMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type GorpMigrationHook ¶
type GorpMigrationHook func(context.Context, boil.ContextExecutor, *GorpMigration) error
GorpMigrationHook is the signature for custom GorpMigration hook methods
type GorpMigrationSlice ¶
type GorpMigrationSlice []*GorpMigration
GorpMigrationSlice is an alias for a slice of pointers to GorpMigration. This should almost always be used instead of []GorpMigration.
func (GorpMigrationSlice) DeleteAll ¶
func (o GorpMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*GorpMigrationSlice) ReloadAll ¶
func (o *GorpMigrationSlice) 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 (GorpMigrationSlice) UpdateAll ¶
func (o GorpMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Image ¶
type Image struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` Height null.Int `boil:"height" json:"height,omitempty" toml:"height" yaml:"height,omitempty"` SRC string `boil:"src" json:"src" toml:"src" yaml:"src"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` Width null.Int `boil:"width" json:"width,omitempty" toml:"width" yaml:"width,omitempty"` R *imageR `boil:"-" json:"-" toml:"-" yaml:"-"` L imageL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Image is an object representing the database table.
func FindImage ¶
func FindImage(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Image, error)
FindImage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Image) AddCollections ¶
func (o *Image) AddCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Collection) error
AddCollections adds the given related objects to the existing relationships of the image, optionally inserting them as new records. Appends related to o.R.Collections. Sets related.R.Image appropriately.
func (*Image) AddInventoryItemProductVariants ¶
func (o *Image) AddInventoryItemProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
AddInventoryItemProductVariants adds the given related objects to the existing relationships of the image, optionally inserting them as new records. Appends related to o.R.InventoryItemProductVariants. Sets related.R.InventoryItem appropriately.
func (*Image) AddProductImages ¶
func (o *Image) AddProductImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductImage) error
AddProductImages adds the given related objects to the existing relationships of the image, optionally inserting them as new records. Appends related to o.R.ProductImages. Sets related.R.Image appropriately.
func (*Image) AddProductVariants ¶
func (o *Image) AddProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
AddProductVariants adds the given related objects to the existing relationships of the image, optionally inserting them as new records. Appends related to o.R.ProductVariants. Sets related.R.Image appropriately.
func (*Image) Collections ¶
Collections retrieves all the collection's Collections with an executor.
func (*Image) Delete ¶
Delete deletes a single Image record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Image) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Image) InventoryItemProductVariants ¶
InventoryItemProductVariants retrieves all the product_variant's ProductVariants with an executor via inventory_item_id column.
func (*Image) ProductImages ¶
ProductImages retrieves all the product_image's ProductImages with an executor.
func (*Image) ProductVariants ¶
ProductVariants retrieves all the product_variant's ProductVariants with an executor.
func (*Image) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Image) RemoveCollections ¶
func (o *Image) RemoveCollections(ctx context.Context, exec boil.ContextExecutor, related ...*Collection) error
RemoveCollections relationships from objects passed in. Removes related items from R.Collections (uses pointer comparison, removal does not keep order) Sets related.R.Image.
func (*Image) RemoveInventoryItemProductVariants ¶
func (o *Image) RemoveInventoryItemProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
RemoveInventoryItemProductVariants relationships from objects passed in. Removes related items from R.InventoryItemProductVariants (uses pointer comparison, removal does not keep order) Sets related.R.InventoryItem.
func (*Image) RemoveProductVariants ¶
func (o *Image) RemoveProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
RemoveProductVariants relationships from objects passed in. Removes related items from R.ProductVariants (uses pointer comparison, removal does not keep order) Sets related.R.Image.
func (*Image) SetCollections ¶
func (o *Image) SetCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Collection) error
SetCollections removes all previously related items of the image replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Image's Collections accordingly. Replaces o.R.Collections with related. Sets related.R.Image's Collections accordingly.
func (*Image) SetInventoryItemProductVariants ¶
func (o *Image) SetInventoryItemProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
SetInventoryItemProductVariants removes all previously related items of the image replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.InventoryItem's InventoryItemProductVariants accordingly. Replaces o.R.InventoryItemProductVariants with related. Sets related.R.InventoryItem's InventoryItemProductVariants accordingly.
func (*Image) SetProductVariants ¶
func (o *Image) SetProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
SetProductVariants removes all previously related items of the image replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Image's ProductVariants accordingly. Replaces o.R.ProductVariants with related. Sets related.R.Image's ProductVariants accordingly.
func (*Image) Update ¶
func (o *Image) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Image. 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 (*Image) Upsert ¶
func (o *Image) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ImageSlice ¶
type ImageSlice []*Image
ImageSlice is an alias for a slice of pointers to Image. This should almost always be used instead of []Image.
func (ImageSlice) DeleteAll ¶
func (o ImageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ImageSlice) ReloadAll ¶
func (o *ImageSlice) 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 (ImageSlice) UpdateAll ¶
func (o ImageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type InventoryItem ¶
type InventoryItem struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Cost types.NullDecimal `boil:"cost" json:"cost,omitempty" toml:"cost" yaml:"cost,omitempty"` CountryCodeOfOrigin null.String `` /* 139-byte string literal not displayed */ CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` ProvinceCodeOfOrigin null.String `` /* 143-byte string literal not displayed */ RequiresShipping bool `boil:"requires_shipping" json:"requires_shipping" toml:"requires_shipping" yaml:"requires_shipping"` Sku null.String `boil:"sku" json:"sku,omitempty" toml:"sku" yaml:"sku,omitempty"` Tracked bool `boil:"tracked" json:"tracked" toml:"tracked" yaml:"tracked"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *inventoryItemR `boil:"-" json:"-" toml:"-" yaml:"-"` L inventoryItemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
InventoryItem is an object representing the database table.
func FindInventoryItem ¶
func FindInventoryItem(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*InventoryItem, error)
FindInventoryItem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*InventoryItem) AddInventoryLevels ¶
func (o *InventoryItem) AddInventoryLevels(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*InventoryLevel) error
AddInventoryLevels adds the given related objects to the existing relationships of the inventory_item, optionally inserting them as new records. Appends related to o.R.InventoryLevels. Sets related.R.InventoryItem appropriately.
func (*InventoryItem) Delete ¶
func (o *InventoryItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single InventoryItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*InventoryItem) Insert ¶
func (o *InventoryItem) 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 (*InventoryItem) InventoryLevels ¶
func (o *InventoryItem) InventoryLevels(mods ...qm.QueryMod) inventoryLevelQuery
InventoryLevels retrieves all the inventory_level's InventoryLevels with an executor.
func (*InventoryItem) Reload ¶
func (o *InventoryItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*InventoryItem) Update ¶
func (o *InventoryItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the InventoryItem. 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 (*InventoryItem) Upsert ¶
func (o *InventoryItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type InventoryItemHook ¶
type InventoryItemHook func(context.Context, boil.ContextExecutor, *InventoryItem) error
InventoryItemHook is the signature for custom InventoryItem hook methods
type InventoryItemSlice ¶
type InventoryItemSlice []*InventoryItem
InventoryItemSlice is an alias for a slice of pointers to InventoryItem. This should almost always be used instead of []InventoryItem.
func (InventoryItemSlice) DeleteAll ¶
func (o InventoryItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InventoryItemSlice) ReloadAll ¶
func (o *InventoryItemSlice) 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 (InventoryItemSlice) UpdateAll ¶
func (o InventoryItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type InventoryLevel ¶
type InventoryLevel struct { InventoryItemID int64 `boil:"inventory_item_id" json:"inventory_item_id" toml:"inventory_item_id" yaml:"inventory_item_id"` LocationID int64 `boil:"location_id" json:"location_id" toml:"location_id" yaml:"location_id"` Available int `boil:"available" json:"available" toml:"available" yaml:"available"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *inventoryLevelR `boil:"-" json:"-" toml:"-" yaml:"-"` L inventoryLevelL `boil:"-" json:"-" toml:"-" yaml:"-"` }
InventoryLevel is an object representing the database table.
func FindInventoryLevel ¶
func FindInventoryLevel(ctx context.Context, exec boil.ContextExecutor, inventoryItemID int64, locationID int64, selectCols ...string) (*InventoryLevel, error)
FindInventoryLevel retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*InventoryLevel) Delete ¶
func (o *InventoryLevel) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single InventoryLevel record with an executor. Delete will match against the primary key column to find the record to delete.
func (*InventoryLevel) Insert ¶
func (o *InventoryLevel) 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 (*InventoryLevel) InventoryItem ¶
func (o *InventoryLevel) InventoryItem(mods ...qm.QueryMod) inventoryItemQuery
InventoryItem pointed to by the foreign key.
func (*InventoryLevel) Location ¶
func (o *InventoryLevel) Location(mods ...qm.QueryMod) locationQuery
Location pointed to by the foreign key.
func (*InventoryLevel) Reload ¶
func (o *InventoryLevel) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*InventoryLevel) SetInventoryItem ¶
func (o *InventoryLevel) SetInventoryItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *InventoryItem) error
SetInventoryItem of the inventoryLevel to the related item. Sets o.R.InventoryItem to related. Adds o to related.R.InventoryLevels.
func (*InventoryLevel) SetLocation ¶
func (o *InventoryLevel) SetLocation(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Location) error
SetLocation of the inventoryLevel to the related item. Sets o.R.Location to related. Adds o to related.R.InventoryLevels.
func (*InventoryLevel) Update ¶
func (o *InventoryLevel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the InventoryLevel. 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 (*InventoryLevel) Upsert ¶
func (o *InventoryLevel) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type InventoryLevelHook ¶
type InventoryLevelHook func(context.Context, boil.ContextExecutor, *InventoryLevel) error
InventoryLevelHook is the signature for custom InventoryLevel hook methods
type InventoryLevelSlice ¶
type InventoryLevelSlice []*InventoryLevel
InventoryLevelSlice is an alias for a slice of pointers to InventoryLevel. This should almost always be used instead of []InventoryLevel.
func (InventoryLevelSlice) DeleteAll ¶
func (o InventoryLevelSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InventoryLevelSlice) ReloadAll ¶
func (o *InventoryLevelSlice) 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 (InventoryLevelSlice) UpdateAll ¶
func (o InventoryLevelSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Location ¶
type Location struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Active bool `boil:"active" json:"active" toml:"active" yaml:"active"` Address1 null.String `boil:"address1" json:"address1,omitempty" toml:"address1" yaml:"address1,omitempty"` Address2 null.String `boil:"address2" json:"address2,omitempty" toml:"address2" yaml:"address2,omitempty"` City null.String `boil:"city" json:"city,omitempty" toml:"city" yaml:"city,omitempty"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Phone null.String `boil:"phone" json:"phone,omitempty" toml:"phone" yaml:"phone,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` Zip null.String `boil:"zip" json:"zip,omitempty" toml:"zip" yaml:"zip,omitempty"` CountryCode null.String `boil:"country_code" json:"country_code,omitempty" toml:"country_code" yaml:"country_code,omitempty"` ProvinceCode null.String `boil:"province_code" json:"province_code,omitempty" toml:"province_code" yaml:"province_code,omitempty"` R *locationR `boil:"-" json:"-" toml:"-" yaml:"-"` L locationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Location is an object representing the database table.
func FindLocation ¶
func FindLocation(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Location, error)
FindLocation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Location) AddInventoryLevels ¶
func (o *Location) AddInventoryLevels(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*InventoryLevel) error
AddInventoryLevels adds the given related objects to the existing relationships of the location, optionally inserting them as new records. Appends related to o.R.InventoryLevels. Sets related.R.Location appropriately.
func (*Location) Delete ¶
Delete deletes a single Location record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Location) Insert ¶
func (o *Location) 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 (*Location) InventoryLevels ¶
InventoryLevels retrieves all the inventory_level's InventoryLevels with an executor.
func (*Location) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Location) Update ¶
func (o *Location) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Location. 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 (*Location) Upsert ¶
func (o *Location) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type LocationHook ¶
LocationHook is the signature for custom Location hook methods
type LocationSlice ¶
type LocationSlice []*Location
LocationSlice is an alias for a slice of pointers to Location. This should almost always be used instead of []Location.
func (LocationSlice) DeleteAll ¶
func (o LocationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*LocationSlice) ReloadAll ¶
func (o *LocationSlice) 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 (LocationSlice) UpdateAll ¶
func (o LocationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type OrderLine ¶
type OrderLine struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` OrderID int64 `boil:"order_id" json:"order_id" toml:"order_id" yaml:"order_id"` ProductID null.Int64 `boil:"product_id" json:"product_id,omitempty" toml:"product_id" yaml:"product_id,omitempty"` VariantID null.Int64 `boil:"variant_id" json:"variant_id,omitempty" toml:"variant_id" yaml:"variant_id,omitempty"` Sku null.String `boil:"sku" json:"sku,omitempty" toml:"sku" yaml:"sku,omitempty"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` VariantTitle null.String `boil:"variant_title" json:"variant_title,omitempty" toml:"variant_title" yaml:"variant_title,omitempty"` Vendor null.String `boil:"vendor" json:"vendor,omitempty" toml:"vendor" yaml:"vendor,omitempty"` Quantity int `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` Price types.Decimal `boil:"price" json:"price" toml:"price" yaml:"price"` TotalDiscount types.Decimal `boil:"total_discount" json:"total_discount" toml:"total_discount" yaml:"total_discount"` R *orderLineR `boil:"-" json:"-" toml:"-" yaml:"-"` L orderLineL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OrderLine is an object representing the database table.
func FindOrderLine ¶
func FindOrderLine(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*OrderLine, error)
FindOrderLine retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*OrderLine) Delete ¶
Delete deletes a single OrderLine record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OrderLine) Insert ¶
func (o *OrderLine) 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 (*OrderLine) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*OrderLine) RemoveProduct ¶
func (o *OrderLine) RemoveProduct(ctx context.Context, exec boil.ContextExecutor, related *Product) error
RemoveProduct relationship. Sets o.R.Product to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*OrderLine) RemoveVariant ¶
func (o *OrderLine) RemoveVariant(ctx context.Context, exec boil.ContextExecutor, related *ProductVariant) error
RemoveVariant relationship. Sets o.R.Variant to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*OrderLine) SetOrder ¶
func (o *OrderLine) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *CustomerOrder) error
SetOrder of the orderLine to the related item. Sets o.R.Order to related. Adds o to related.R.OrderOrderLines.
func (*OrderLine) SetProduct ¶
func (o *OrderLine) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
SetProduct of the orderLine to the related item. Sets o.R.Product to related. Adds o to related.R.OrderLines.
func (*OrderLine) SetVariant ¶
func (o *OrderLine) SetVariant(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProductVariant) error
SetVariant of the orderLine to the related item. Sets o.R.Variant to related. Adds o to related.R.VariantOrderLines.
func (*OrderLine) Update ¶
func (o *OrderLine) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OrderLine. 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 (*OrderLine) Upsert ¶
func (o *OrderLine) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type OrderLineHook ¶
OrderLineHook is the signature for custom OrderLine hook methods
type OrderLineSlice ¶
type OrderLineSlice []*OrderLine
OrderLineSlice is an alias for a slice of pointers to OrderLine. This should almost always be used instead of []OrderLine.
func (OrderLineSlice) DeleteAll ¶
func (o OrderLineSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OrderLineSlice) ReloadAll ¶
func (o *OrderLineSlice) 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 (OrderLineSlice) UpdateAll ¶
func (o OrderLineSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Product ¶
type Product struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` BodyHTML null.String `boil:"body_html" json:"body_html,omitempty" toml:"body_html" yaml:"body_html,omitempty"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` Handle string `boil:"handle" json:"handle" toml:"handle" yaml:"handle"` ProductType null.String `boil:"product_type" json:"product_type,omitempty" toml:"product_type" yaml:"product_type,omitempty"` Vendor null.String `boil:"vendor" json:"vendor,omitempty" toml:"vendor" yaml:"vendor,omitempty"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` PublishedAt null.Time `boil:"published_at" json:"published_at,omitempty" toml:"published_at" yaml:"published_at,omitempty"` PublishedScope string `boil:"published_scope" json:"published_scope" toml:"published_scope" yaml:"published_scope"` Status int8 `boil:"status" json:"status" toml:"status" yaml:"status"` TemplateSuffix null.String `boil:"template_suffix" json:"template_suffix,omitempty" toml:"template_suffix" yaml:"template_suffix,omitempty"` R *productR `boil:"-" json:"-" toml:"-" yaml:"-"` L productL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Product is an object representing the database table.
func FindProduct ¶
func FindProduct(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Product, error)
FindProduct retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Product) AddCollections ¶
func (o *Product) AddCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Collection) error
AddCollections adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Collections. Sets related.R.Products appropriately.
func (*Product) AddOrderLines ¶
func (o *Product) AddOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderLine) error
AddOrderLines adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.OrderLines. Sets related.R.Product appropriately.
func (*Product) AddProductImages ¶
func (o *Product) AddProductImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductImage) error
AddProductImages adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductImages. Sets related.R.Product appropriately.
func (*Product) AddProductOptions ¶
func (o *Product) AddProductOptions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductOption) error
AddProductOptions adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductOptions. Sets related.R.Product appropriately.
func (*Product) AddProductTags ¶
func (o *Product) AddProductTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductTag) error
AddProductTags adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductTags. Sets related.R.Product appropriately.
func (*Product) AddProductVariants ¶
func (o *Product) AddProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
AddProductVariants adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductVariants. Sets related.R.Product appropriately.
func (*Product) Collections ¶
Collections retrieves all the collection's Collections with an executor.
func (*Product) Delete ¶
Delete deletes a single Product record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Product) Insert ¶
func (o *Product) 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 (*Product) OrderLines ¶
OrderLines retrieves all the order_line's OrderLines with an executor.
func (*Product) ProductImages ¶
ProductImages retrieves all the product_image's ProductImages with an executor.
func (*Product) ProductOptions ¶
ProductOptions retrieves all the product_option's ProductOptions with an executor.
func (*Product) ProductTags ¶
ProductTags retrieves all the product_tag's ProductTags with an executor.
func (*Product) ProductVariants ¶
ProductVariants retrieves all the product_variant's ProductVariants with an executor.
func (*Product) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Product) RemoveCollections ¶
func (o *Product) RemoveCollections(ctx context.Context, exec boil.ContextExecutor, related ...*Collection) error
RemoveCollections relationships from objects passed in. Removes related items from R.Collections (uses pointer comparison, removal does not keep order) Sets related.R.Products.
func (*Product) RemoveOrderLines ¶
func (o *Product) RemoveOrderLines(ctx context.Context, exec boil.ContextExecutor, related ...*OrderLine) error
RemoveOrderLines relationships from objects passed in. Removes related items from R.OrderLines (uses pointer comparison, removal does not keep order) Sets related.R.Product.
func (*Product) SetCollections ¶
func (o *Product) SetCollections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Collection) error
SetCollections removes all previously related items of the product replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Products's Collections accordingly. Replaces o.R.Collections with related. Sets related.R.Products's Collections accordingly.
func (*Product) SetOrderLines ¶
func (o *Product) SetOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderLine) error
SetOrderLines removes all previously related items of the product replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Product's OrderLines accordingly. Replaces o.R.OrderLines with related. Sets related.R.Product's OrderLines accordingly.
func (*Product) Update ¶
func (o *Product) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Product. 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 (*Product) Upsert ¶
func (o *Product) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ProductHook ¶
ProductHook is the signature for custom Product hook methods
type ProductImage ¶
type ProductImage struct { ProductID int64 `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` ImageID int64 `boil:"image_id" json:"image_id" toml:"image_id" yaml:"image_id"` Position null.Int16 `boil:"position" json:"position,omitempty" toml:"position" yaml:"position,omitempty"` R *productImageR `boil:"-" json:"-" toml:"-" yaml:"-"` L productImageL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProductImage is an object representing the database table.
func FindProductImage ¶
func FindProductImage(ctx context.Context, exec boil.ContextExecutor, productID int64, imageID int64, selectCols ...string) (*ProductImage, error)
FindProductImage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ProductImage) Delete ¶
func (o *ProductImage) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProductImage record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProductImage) Image ¶
func (o *ProductImage) Image(mods ...qm.QueryMod) imageQuery
Image pointed to by the foreign key.
func (*ProductImage) Insert ¶
func (o *ProductImage) 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 (*ProductImage) Product ¶
func (o *ProductImage) Product(mods ...qm.QueryMod) productQuery
Product pointed to by the foreign key.
func (*ProductImage) Reload ¶
func (o *ProductImage) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProductImage) SetImage ¶
func (o *ProductImage) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
SetImage of the productImage to the related item. Sets o.R.Image to related. Adds o to related.R.ProductImages.
func (*ProductImage) SetProduct ¶
func (o *ProductImage) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
SetProduct of the productImage to the related item. Sets o.R.Product to related. Adds o to related.R.ProductImages.
func (*ProductImage) Update ¶
func (o *ProductImage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProductImage. 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 (*ProductImage) Upsert ¶
func (o *ProductImage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ProductImageHook ¶
type ProductImageHook func(context.Context, boil.ContextExecutor, *ProductImage) error
ProductImageHook is the signature for custom ProductImage hook methods
type ProductImageSlice ¶
type ProductImageSlice []*ProductImage
ProductImageSlice is an alias for a slice of pointers to ProductImage. This should almost always be used instead of []ProductImage.
func (ProductImageSlice) DeleteAll ¶
func (o ProductImageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProductImageSlice) ReloadAll ¶
func (o *ProductImageSlice) 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 (ProductImageSlice) UpdateAll ¶
func (o ProductImageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProductOption ¶
type ProductOption struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` ProductID int64 `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` Position int `boil:"position" json:"position" toml:"position" yaml:"position"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *productOptionR `boil:"-" json:"-" toml:"-" yaml:"-"` L productOptionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProductOption is an object representing the database table.
func FindProductOption ¶
func FindProductOption(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ProductOption, error)
FindProductOption retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ProductOption) Delete ¶
func (o *ProductOption) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProductOption record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProductOption) Insert ¶
func (o *ProductOption) 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 (*ProductOption) OptionProductOptionValue ¶
func (o *ProductOption) OptionProductOptionValue(mods ...qm.QueryMod) productOptionValueQuery
OptionProductOptionValue pointed to by the foreign key.
func (*ProductOption) Product ¶
func (o *ProductOption) Product(mods ...qm.QueryMod) productQuery
Product pointed to by the foreign key.
func (*ProductOption) Reload ¶
func (o *ProductOption) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProductOption) SetOptionProductOptionValue ¶
func (o *ProductOption) SetOptionProductOptionValue(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProductOptionValue) error
SetOptionProductOptionValue of the productOption to the related item. Sets o.R.OptionProductOptionValue to related. Adds o to related.R.Option.
func (*ProductOption) SetProduct ¶
func (o *ProductOption) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
SetProduct of the productOption to the related item. Sets o.R.Product to related. Adds o to related.R.ProductOptions.
func (*ProductOption) Update ¶
func (o *ProductOption) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProductOption. 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 (*ProductOption) Upsert ¶
func (o *ProductOption) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ProductOptionHook ¶
type ProductOptionHook func(context.Context, boil.ContextExecutor, *ProductOption) error
ProductOptionHook is the signature for custom ProductOption hook methods
type ProductOptionSlice ¶
type ProductOptionSlice []*ProductOption
ProductOptionSlice is an alias for a slice of pointers to ProductOption. This should almost always be used instead of []ProductOption.
func (ProductOptionSlice) DeleteAll ¶
func (o ProductOptionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProductOptionSlice) ReloadAll ¶
func (o *ProductOptionSlice) 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 (ProductOptionSlice) UpdateAll ¶
func (o ProductOptionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProductOptionValue ¶
type ProductOptionValue struct { OptionID int64 `boil:"option_id" json:"option_id" toml:"option_id" yaml:"option_id"` Value string `boil:"value" json:"value" toml:"value" yaml:"value"` R *productOptionValueR `boil:"-" json:"-" toml:"-" yaml:"-"` L productOptionValueL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProductOptionValue is an object representing the database table.
func FindProductOptionValue ¶
func FindProductOptionValue(ctx context.Context, exec boil.ContextExecutor, optionID int64, selectCols ...string) (*ProductOptionValue, error)
FindProductOptionValue retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ProductOptionValue) AddOption1ValueProductVariants ¶
func (o *ProductOptionValue) AddOption1ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
AddOption1ValueProductVariants adds the given related objects to the existing relationships of the product_option_value, optionally inserting them as new records. Appends related to o.R.Option1ValueProductVariants. Sets related.R.Option1Value appropriately.
func (*ProductOptionValue) AddOption2ValueProductVariants ¶
func (o *ProductOptionValue) AddOption2ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
AddOption2ValueProductVariants adds the given related objects to the existing relationships of the product_option_value, optionally inserting them as new records. Appends related to o.R.Option2ValueProductVariants. Sets related.R.Option2Value appropriately.
func (*ProductOptionValue) AddOption3ValueProductVariants ¶
func (o *ProductOptionValue) AddOption3ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
AddOption3ValueProductVariants adds the given related objects to the existing relationships of the product_option_value, optionally inserting them as new records. Appends related to o.R.Option3ValueProductVariants. Sets related.R.Option3Value appropriately.
func (*ProductOptionValue) Delete ¶
func (o *ProductOptionValue) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProductOptionValue record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProductOptionValue) Insert ¶
func (o *ProductOptionValue) 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 (*ProductOptionValue) Option ¶
func (o *ProductOptionValue) Option(mods ...qm.QueryMod) productOptionQuery
Option pointed to by the foreign key.
func (*ProductOptionValue) Option1ValueProductVariants ¶
func (o *ProductOptionValue) Option1ValueProductVariants(mods ...qm.QueryMod) productVariantQuery
Option1ValueProductVariants retrieves all the product_variant's ProductVariants with an executor via option_1_value_id column.
func (*ProductOptionValue) Option2ValueProductVariants ¶
func (o *ProductOptionValue) Option2ValueProductVariants(mods ...qm.QueryMod) productVariantQuery
Option2ValueProductVariants retrieves all the product_variant's ProductVariants with an executor via option_2_value_id column.
func (*ProductOptionValue) Option3ValueProductVariants ¶
func (o *ProductOptionValue) Option3ValueProductVariants(mods ...qm.QueryMod) productVariantQuery
Option3ValueProductVariants retrieves all the product_variant's ProductVariants with an executor via option_3_value_id column.
func (*ProductOptionValue) Reload ¶
func (o *ProductOptionValue) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProductOptionValue) RemoveOption1ValueProductVariants ¶
func (o *ProductOptionValue) RemoveOption1ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
RemoveOption1ValueProductVariants relationships from objects passed in. Removes related items from R.Option1ValueProductVariants (uses pointer comparison, removal does not keep order) Sets related.R.Option1Value.
func (*ProductOptionValue) RemoveOption2ValueProductVariants ¶
func (o *ProductOptionValue) RemoveOption2ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
RemoveOption2ValueProductVariants relationships from objects passed in. Removes related items from R.Option2ValueProductVariants (uses pointer comparison, removal does not keep order) Sets related.R.Option2Value.
func (*ProductOptionValue) RemoveOption3ValueProductVariants ¶
func (o *ProductOptionValue) RemoveOption3ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, related ...*ProductVariant) error
RemoveOption3ValueProductVariants relationships from objects passed in. Removes related items from R.Option3ValueProductVariants (uses pointer comparison, removal does not keep order) Sets related.R.Option3Value.
func (*ProductOptionValue) SetOption ¶
func (o *ProductOptionValue) SetOption(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProductOption) error
SetOption of the productOptionValue to the related item. Sets o.R.Option to related. Adds o to related.R.OptionProductOptionValue.
func (*ProductOptionValue) SetOption1ValueProductVariants ¶
func (o *ProductOptionValue) SetOption1ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
SetOption1ValueProductVariants removes all previously related items of the product_option_value replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Option1Value's Option1ValueProductVariants accordingly. Replaces o.R.Option1ValueProductVariants with related. Sets related.R.Option1Value's Option1ValueProductVariants accordingly.
func (*ProductOptionValue) SetOption2ValueProductVariants ¶
func (o *ProductOptionValue) SetOption2ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
SetOption2ValueProductVariants removes all previously related items of the product_option_value replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Option2Value's Option2ValueProductVariants accordingly. Replaces o.R.Option2ValueProductVariants with related. Sets related.R.Option2Value's Option2ValueProductVariants accordingly.
func (*ProductOptionValue) SetOption3ValueProductVariants ¶
func (o *ProductOptionValue) SetOption3ValueProductVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductVariant) error
SetOption3ValueProductVariants removes all previously related items of the product_option_value replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Option3Value's Option3ValueProductVariants accordingly. Replaces o.R.Option3ValueProductVariants with related. Sets related.R.Option3Value's Option3ValueProductVariants accordingly.
func (*ProductOptionValue) Update ¶
func (o *ProductOptionValue) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProductOptionValue. 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 (*ProductOptionValue) Upsert ¶
func (o *ProductOptionValue) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ProductOptionValueHook ¶
type ProductOptionValueHook func(context.Context, boil.ContextExecutor, *ProductOptionValue) error
ProductOptionValueHook is the signature for custom ProductOptionValue hook methods
type ProductOptionValueSlice ¶
type ProductOptionValueSlice []*ProductOptionValue
ProductOptionValueSlice is an alias for a slice of pointers to ProductOptionValue. This should almost always be used instead of []ProductOptionValue.
func (ProductOptionValueSlice) DeleteAll ¶
func (o ProductOptionValueSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProductOptionValueSlice) ReloadAll ¶
func (o *ProductOptionValueSlice) 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 (ProductOptionValueSlice) UpdateAll ¶
func (o ProductOptionValueSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProductSlice ¶
type ProductSlice []*Product
ProductSlice is an alias for a slice of pointers to Product. This should almost always be used instead of []Product.
func (ProductSlice) DeleteAll ¶
func (o ProductSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProductSlice) ReloadAll ¶
func (o *ProductSlice) 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 (ProductSlice) UpdateAll ¶
func (o ProductSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProductTag ¶
type ProductTag struct { TagID int64 `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"` ProductID int64 `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` Value string `boil:"value" json:"value" toml:"value" yaml:"value"` R *productTagR `boil:"-" json:"-" toml:"-" yaml:"-"` L productTagL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProductTag is an object representing the database table.
func FindProductTag ¶
func FindProductTag(ctx context.Context, exec boil.ContextExecutor, tagID int64, productID int64, selectCols ...string) (*ProductTag, error)
FindProductTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ProductTag) Delete ¶
func (o *ProductTag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProductTag record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProductTag) Insert ¶
func (o *ProductTag) 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 (*ProductTag) Product ¶
func (o *ProductTag) Product(mods ...qm.QueryMod) productQuery
Product pointed to by the foreign key.
func (*ProductTag) Reload ¶
func (o *ProductTag) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProductTag) SetProduct ¶
func (o *ProductTag) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
SetProduct of the productTag to the related item. Sets o.R.Product to related. Adds o to related.R.ProductTags.
func (*ProductTag) SetTag ¶
func (o *ProductTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error
SetTag of the productTag to the related item. Sets o.R.Tag to related. Adds o to related.R.ProductTags.
func (*ProductTag) Tag ¶
func (o *ProductTag) Tag(mods ...qm.QueryMod) tagQuery
Tag pointed to by the foreign key.
func (*ProductTag) Update ¶
func (o *ProductTag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProductTag. 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 (*ProductTag) Upsert ¶
func (o *ProductTag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ProductTagHook ¶
type ProductTagHook func(context.Context, boil.ContextExecutor, *ProductTag) error
ProductTagHook is the signature for custom ProductTag hook methods
type ProductTagSlice ¶
type ProductTagSlice []*ProductTag
ProductTagSlice is an alias for a slice of pointers to ProductTag. This should almost always be used instead of []ProductTag.
func (ProductTagSlice) DeleteAll ¶
func (o ProductTagSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProductTagSlice) ReloadAll ¶
func (o *ProductTagSlice) 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 (ProductTagSlice) UpdateAll ¶
func (o ProductTagSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProductVariant ¶
type ProductVariant struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` ProductID int64 `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` InventoryItemID null.Int64 `boil:"inventory_item_id" json:"inventory_item_id,omitempty" toml:"inventory_item_id" yaml:"inventory_item_id,omitempty"` ImageID null.Int64 `boil:"image_id" json:"image_id,omitempty" toml:"image_id" yaml:"image_id,omitempty"` Barcode null.String `boil:"barcode" json:"barcode,omitempty" toml:"barcode" yaml:"barcode,omitempty"` CompareAtPrice types.NullDecimal `boil:"compare_at_price" json:"compare_at_price,omitempty" toml:"compare_at_price" yaml:"compare_at_price,omitempty"` FulfillmentService null.String `` /* 127-byte string literal not displayed */ Grams null.Float64 `boil:"grams" json:"grams,omitempty" toml:"grams" yaml:"grams,omitempty"` InventoryManagement string `boil:"inventory_management" json:"inventory_management" toml:"inventory_management" yaml:"inventory_management"` InventoryPolicy string `boil:"inventory_policy" json:"inventory_policy" toml:"inventory_policy" yaml:"inventory_policy"` InventoryQuantity int `boil:"inventory_quantity" json:"inventory_quantity" toml:"inventory_quantity" yaml:"inventory_quantity"` Position int16 `boil:"position" json:"position" toml:"position" yaml:"position"` Price types.Decimal `boil:"price" json:"price" toml:"price" yaml:"price"` Sku null.String `boil:"sku" json:"sku,omitempty" toml:"sku" yaml:"sku,omitempty"` Taxable bool `boil:"taxable" json:"taxable" toml:"taxable" yaml:"taxable"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` Weight null.Float64 `boil:"weight" json:"weight,omitempty" toml:"weight" yaml:"weight,omitempty"` WeightUnit string `boil:"weight_unit" json:"weight_unit" toml:"weight_unit" yaml:"weight_unit"` CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` Option1ValueID null.Int64 `boil:"option_1_value_id" json:"option_1_value_id,omitempty" toml:"option_1_value_id" yaml:"option_1_value_id,omitempty"` Option2ValueID null.Int64 `boil:"option_2_value_id" json:"option_2_value_id,omitempty" toml:"option_2_value_id" yaml:"option_2_value_id,omitempty"` Option3ValueID null.Int64 `boil:"option_3_value_id" json:"option_3_value_id,omitempty" toml:"option_3_value_id" yaml:"option_3_value_id,omitempty"` R *productVariantR `boil:"-" json:"-" toml:"-" yaml:"-"` L productVariantL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProductVariant is an object representing the database table.
func FindProductVariant ¶
func FindProductVariant(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*ProductVariant, error)
FindProductVariant retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ProductVariant) AddVariantOrderLines ¶
func (o *ProductVariant) AddVariantOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderLine) error
AddVariantOrderLines adds the given related objects to the existing relationships of the product_variant, optionally inserting them as new records. Appends related to o.R.VariantOrderLines. Sets related.R.Variant appropriately.
func (*ProductVariant) Delete ¶
func (o *ProductVariant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProductVariant record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProductVariant) Image ¶
func (o *ProductVariant) Image(mods ...qm.QueryMod) imageQuery
Image pointed to by the foreign key.
func (*ProductVariant) Insert ¶
func (o *ProductVariant) 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 (*ProductVariant) InventoryItem ¶
func (o *ProductVariant) InventoryItem(mods ...qm.QueryMod) imageQuery
InventoryItem pointed to by the foreign key.
func (*ProductVariant) Option1Value ¶
func (o *ProductVariant) Option1Value(mods ...qm.QueryMod) productOptionValueQuery
Option1Value pointed to by the foreign key.
func (*ProductVariant) Option2Value ¶
func (o *ProductVariant) Option2Value(mods ...qm.QueryMod) productOptionValueQuery
Option2Value pointed to by the foreign key.
func (*ProductVariant) Option3Value ¶
func (o *ProductVariant) Option3Value(mods ...qm.QueryMod) productOptionValueQuery
Option3Value pointed to by the foreign key.
func (*ProductVariant) Product ¶
func (o *ProductVariant) Product(mods ...qm.QueryMod) productQuery
Product pointed to by the foreign key.
func (*ProductVariant) Reload ¶
func (o *ProductVariant) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProductVariant) RemoveImage ¶
func (o *ProductVariant) RemoveImage(ctx context.Context, exec boil.ContextExecutor, related *Image) error
RemoveImage relationship. Sets o.R.Image to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*ProductVariant) RemoveInventoryItem ¶
func (o *ProductVariant) RemoveInventoryItem(ctx context.Context, exec boil.ContextExecutor, related *Image) error
RemoveInventoryItem relationship. Sets o.R.InventoryItem to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*ProductVariant) RemoveOption1Value ¶
func (o *ProductVariant) RemoveOption1Value(ctx context.Context, exec boil.ContextExecutor, related *ProductOptionValue) error
RemoveOption1Value relationship. Sets o.R.Option1Value to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*ProductVariant) RemoveOption2Value ¶
func (o *ProductVariant) RemoveOption2Value(ctx context.Context, exec boil.ContextExecutor, related *ProductOptionValue) error
RemoveOption2Value relationship. Sets o.R.Option2Value to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*ProductVariant) RemoveOption3Value ¶
func (o *ProductVariant) RemoveOption3Value(ctx context.Context, exec boil.ContextExecutor, related *ProductOptionValue) error
RemoveOption3Value relationship. Sets o.R.Option3Value to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*ProductVariant) RemoveVariantOrderLines ¶
func (o *ProductVariant) RemoveVariantOrderLines(ctx context.Context, exec boil.ContextExecutor, related ...*OrderLine) error
RemoveVariantOrderLines relationships from objects passed in. Removes related items from R.VariantOrderLines (uses pointer comparison, removal does not keep order) Sets related.R.Variant.
func (*ProductVariant) SetImage ¶
func (o *ProductVariant) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
SetImage of the productVariant to the related item. Sets o.R.Image to related. Adds o to related.R.ProductVariants.
func (*ProductVariant) SetInventoryItem ¶
func (o *ProductVariant) SetInventoryItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error
SetInventoryItem of the productVariant to the related item. Sets o.R.InventoryItem to related. Adds o to related.R.InventoryItemProductVariants.
func (*ProductVariant) SetOption1Value ¶
func (o *ProductVariant) SetOption1Value(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProductOptionValue) error
SetOption1Value of the productVariant to the related item. Sets o.R.Option1Value to related. Adds o to related.R.Option1ValueProductVariants.
func (*ProductVariant) SetOption2Value ¶
func (o *ProductVariant) SetOption2Value(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProductOptionValue) error
SetOption2Value of the productVariant to the related item. Sets o.R.Option2Value to related. Adds o to related.R.Option2ValueProductVariants.
func (*ProductVariant) SetOption3Value ¶
func (o *ProductVariant) SetOption3Value(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProductOptionValue) error
SetOption3Value of the productVariant to the related item. Sets o.R.Option3Value to related. Adds o to related.R.Option3ValueProductVariants.
func (*ProductVariant) SetProduct ¶
func (o *ProductVariant) SetProduct(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Product) error
SetProduct of the productVariant to the related item. Sets o.R.Product to related. Adds o to related.R.ProductVariants.
func (*ProductVariant) SetVariantOrderLines ¶
func (o *ProductVariant) SetVariantOrderLines(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderLine) error
SetVariantOrderLines removes all previously related items of the product_variant replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Variant's VariantOrderLines accordingly. Replaces o.R.VariantOrderLines with related. Sets related.R.Variant's VariantOrderLines accordingly.
func (*ProductVariant) Update ¶
func (o *ProductVariant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProductVariant. 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 (*ProductVariant) Upsert ¶
func (o *ProductVariant) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*ProductVariant) VariantOrderLines ¶
func (o *ProductVariant) VariantOrderLines(mods ...qm.QueryMod) orderLineQuery
VariantOrderLines retrieves all the order_line's OrderLines with an executor via variant_id column.
type ProductVariantHook ¶
type ProductVariantHook func(context.Context, boil.ContextExecutor, *ProductVariant) error
ProductVariantHook is the signature for custom ProductVariant hook methods
type ProductVariantSlice ¶
type ProductVariantSlice []*ProductVariant
ProductVariantSlice is an alias for a slice of pointers to ProductVariant. This should almost always be used instead of []ProductVariant.
func (ProductVariantSlice) DeleteAll ¶
func (o ProductVariantSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProductVariantSlice) ReloadAll ¶
func (o *ProductVariantSlice) 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 (ProductVariantSlice) UpdateAll ¶
func (o ProductVariantSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Tag ¶
type Tag struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Value null.String `boil:"value" json:"value,omitempty" toml:"value" yaml:"value,omitempty"` R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"` L tagL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Tag is an object representing the database table.
func FindTag ¶
func FindTag(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Tag, error)
FindTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Tag) AddProductTags ¶
func (o *Tag) AddProductTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProductTag) error
AddProductTags adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ProductTags. Sets related.R.Tag appropriately.
func (*Tag) Delete ¶
Delete deletes a single Tag record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Tag) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Tag) ProductTags ¶
ProductTags retrieves all the product_tag's ProductTags with an executor.
func (*Tag) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Tag) Update ¶
func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Tag. 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 (*Tag) Upsert ¶
func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type TagSlice ¶
type TagSlice []*Tag
TagSlice is an alias for a slice of pointers to Tag. This should almost always be used instead of []Tag.
Source Files ¶
- boil_queries.go
- boil_table_names.go
- boil_types.go
- collection.go
- customer.go
- customer_address.go
- customer_order.go
- gorp_migrations.go
- image.go
- inventory_item.go
- inventory_level.go
- location.go
- mysql_upsert.go
- order_line.go
- product.go
- product_image.go
- product_option.go
- product_option_value.go
- product_tag.go
- product_variant.go
- tag.go