Documentation
¶
Index ¶
- Constants
- Variables
- func AddArticleHook(hookPoint boil.HookPoint, articleHook ArticleHook)
- func AddBasePriceHook(hookPoint boil.HookPoint, basePriceHook BasePriceHook)
- func AddCategoryHook(hookPoint boil.HookPoint, categoryHook CategoryHook)
- func AddImageHook(hookPoint boil.HookPoint, imageHook ImageHook)
- func AddMessageHook(hookPoint boil.HookPoint, messageHook MessageHook)
- func AddOrderArticleHook(hookPoint boil.HookPoint, orderArticleHook OrderArticleHook)
- func AddOrderHook(hookPoint boil.HookPoint, orderHook OrderHook)
- func AddPaymentStatusHook(hookPoint boil.HookPoint, paymentStatusHook PaymentStatusHook)
- func AddVariantHook(hookPoint boil.HookPoint, variantHook VariantHook)
- func AddVideoHook(hookPoint boil.HookPoint, videoHook VideoHook)
- func ArticleExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Articles(mods ...qm.QueryMod) articleQuery
- func BasePriceExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func BasePrices(mods ...qm.QueryMod) basePriceQuery
- func Categories(mods ...qm.QueryMod) categoryQuery
- func CategoryExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ImageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Images(mods ...qm.QueryMod) imageQuery
- func MessageExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Messages(mods ...qm.QueryMod) messageQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func OrderArticleExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func OrderArticles(mods ...qm.QueryMod) orderArticleQuery
- func OrderExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Orders(mods ...qm.QueryMod) orderQuery
- func PaymentStatusExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func PaymentStatuses(mods ...qm.QueryMod) paymentStatusQuery
- func VariantExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Variants(mods ...qm.QueryMod) variantQuery
- func VideoExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Videos(mods ...qm.QueryMod) videoQuery
- type Article
- func (o *Article) AddBasePrices(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Article) AddCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Article) AddImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Image) error
- func (o *Article) AddVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Article) AddVideos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Video) error
- func (o *Article) BasePrices(mods ...qm.QueryMod) basePriceQuery
- func (o *Article) Categories(mods ...qm.QueryMod) categoryQuery
- func (o *Article) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Article) Images(mods ...qm.QueryMod) imageQuery
- func (o *Article) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Article) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Article) RemoveBasePrices(ctx context.Context, exec boil.ContextExecutor, related ...*BasePrice) error
- func (o *Article) RemoveCategories(ctx context.Context, exec boil.ContextExecutor, related ...*Category) error
- func (o *Article) SetBasePrices(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Article) SetCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Article) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Article) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Article) Variants(mods ...qm.QueryMod) variantQuery
- func (o *Article) Videos(mods ...qm.QueryMod) videoQuery
- type ArticleHook
- type ArticleSlice
- type BasePrice
- func (o *BasePrice) AddArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *BasePrice) Articles(mods ...qm.QueryMod) articleQuery
- func (o *BasePrice) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *BasePrice) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *BasePrice) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *BasePrice) RemoveArticles(ctx context.Context, exec boil.ContextExecutor, related ...*Article) error
- func (o *BasePrice) SetArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *BasePrice) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *BasePrice) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type BasePriceHook
- type BasePriceSlice
- type Category
- func (o *Category) AddArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Category) Articles(mods ...qm.QueryMod) articleQuery
- func (o *Category) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Category) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Category) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Category) RemoveArticles(ctx context.Context, exec boil.ContextExecutor, related ...*Article) error
- func (o *Category) SetArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Category) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Category) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CategoryHook
- type CategorySlice
- type Image
- func (o *Image) Article(mods ...qm.QueryMod) articleQuery
- 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) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Image) SetArticle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Article) 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, updateOnConflict bool, ...) error
- type ImageHook
- type ImageSlice
- type M
- type Message
- func (o *Message) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Message) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Message) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Message) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type MessageHook
- type MessageSlice
- type Order
- func (o *Order) AddOrderArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Order) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Order) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Order) OrderArticles(mods ...qm.QueryMod) orderArticleQuery
- func (o *Order) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Order) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Order) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type OrderArticle
- func (o *OrderArticle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OrderArticle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OrderArticle) Order(mods ...qm.QueryMod) orderQuery
- func (o *OrderArticle) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OrderArticle) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Order) error
- func (o *OrderArticle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OrderArticle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type OrderArticleHook
- type OrderArticleSlice
- type OrderHook
- type OrderSlice
- type PaymentStatus
- func (o *PaymentStatus) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PaymentStatus) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PaymentStatus) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PaymentStatus) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PaymentStatus) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PaymentStatusHook
- type PaymentStatusSlice
- func (o PaymentStatusSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PaymentStatusSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o PaymentStatusSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Variant
- func (o *Variant) Article(mods ...qm.QueryMod) articleQuery
- func (o *Variant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Variant) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Variant) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Variant) SetArticle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Article) error
- func (o *Variant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Variant) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type VariantHook
- type VariantSlice
- type Video
- func (o *Video) Article(mods ...qm.QueryMod) articleQuery
- func (o *Video) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Video) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Video) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Video) SetArticle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Article) error
- func (o *Video) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Video) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type VideoHook
- type VideoSlice
Constants ¶
const ( PaymentCASH_ON_DELIVERY = "CASH_ON_DELIVERY" PaymentBANK_TRANSFER = "BANK_TRANSFER" PaymentONLINE = "ONLINE" )
Enum values for payment
const ( StatusUNDEFINED = "UNDEFINED" StatusOPEN = "OPEN" StatusSENT = "SENT" StatusCOMPLETED = "COMPLETED" )
Enum values for status
Variables ¶
var ArticleColumns = struct { ID string CreatedAt string UpdatedAt string Published string Title string Description string Price string Promoted string SearchIndex string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Published: "published", Title: "title", Description: "description", Price: "price", Promoted: "promoted", SearchIndex: "search_index", }
var ArticleRels = struct { BasePrices string Categories string Images string Variants string Videos string }{ BasePrices: "BasePrices", Categories: "Categories", Images: "Images", Variants: "Variants", Videos: "Videos", }
ArticleRels is where relationship names are stored.
var ArticleWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time Published whereHelperbool Title whereHelperstring Description whereHelperstring Price whereHelpertypes_Decimal Promoted whereHelperbool SearchIndex whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Published: whereHelperbool{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Description: whereHelperstring{/* contains filtered or unexported fields */}, Price: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, Promoted: whereHelperbool{/* contains filtered or unexported fields */}, SearchIndex: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var BasePriceColumns = struct { ID string CreatedAt string UpdatedAt string Label string Price string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Label: "label", Price: "price", }
var BasePriceRels = struct { Articles string }{ Articles: "Articles", }
BasePriceRels is where relationship names are stored.
var BasePriceWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time Label whereHelperstring Price whereHelpertypes_Decimal }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Label: whereHelperstring{/* contains filtered or unexported fields */}, Price: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, }
var CategoryColumns = struct { ID string CreatedAt string UpdatedAt string Label string Position string SearchIndex string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Label: "label", Position: "position", SearchIndex: "search_index", }
var CategoryRels = struct { Articles string }{ Articles: "Articles", }
CategoryRels is where relationship names are stored.
var CategoryWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time Label whereHelperstring Position whereHelperint SearchIndex whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Label: whereHelperstring{/* contains filtered or unexported fields */}, Position: whereHelperint{/* contains filtered or unexported fields */}, SearchIndex: whereHelpernull_String{/* 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 ImageColumns = struct { ID string CreatedAt string UpdatedAt string ArticleID string Position string Label string URL string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", ArticleID: "article_id", Position: "position", Label: "label", URL: "url", }
var ImageRels = struct { Article string }{ Article: "Article", }
ImageRels is where relationship names are stored.
var ImageWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time ArticleID whereHelperint Position whereHelperint Label whereHelperstring URL whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ArticleID: whereHelperint{/* contains filtered or unexported fields */}, Position: whereHelperint{/* contains filtered or unexported fields */}, Label: whereHelperstring{/* contains filtered or unexported fields */}, URL: whereHelperstring{/* contains filtered or unexported fields */}, }
var MessageColumns = struct { ID string CreatedAt string UpdatedAt string Name string Email string Phone string Subject string Message string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Name: "name", Email: "email", Phone: "phone", Subject: "subject", Message: "message", }
var MessageRels = struct {
}{}
MessageRels is where relationship names are stored.
var MessageWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time Name whereHelperstring Email whereHelperstring Phone whereHelperstring Subject whereHelperstring Message whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, Phone: whereHelperstring{/* contains filtered or unexported fields */}, Subject: whereHelperstring{/* contains filtered or unexported fields */}, Message: whereHelperstring{/* contains filtered or unexported fields */}, }
var OrderArticleColumns = struct { OrderID string ArticleID string Amount string ID string Title string Price string Details string }{ OrderID: "order_id", ArticleID: "article_id", Amount: "amount", ID: "id", Title: "title", Price: "price", Details: "details", }
var OrderArticleRels = struct { Order string }{ Order: "Order", }
OrderArticleRels is where relationship names are stored.
var OrderArticleWhere = struct { OrderID whereHelperint ArticleID whereHelperint Amount whereHelperint ID whereHelperint Title whereHelperstring Price whereHelpertypes_Decimal Details whereHelpernull_JSON }{ OrderID: whereHelperint{/* contains filtered or unexported fields */}, ArticleID: whereHelperint{/* contains filtered or unexported fields */}, Amount: whereHelperint{/* contains filtered or unexported fields */}, ID: whereHelperint{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Price: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, Details: whereHelpernull_JSON{/* contains filtered or unexported fields */}, }
var OrderColumns = struct { ID string CreatedAt string UpdatedAt string FullName string Email string Phone string FullAddress string Message string PaymentMethod string Status string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", FullName: "full_name", Email: "email", Phone: "phone", FullAddress: "full_address", Message: "message", PaymentMethod: "payment_method", Status: "status", }
var OrderRels = struct { OrderArticles string }{ OrderArticles: "OrderArticles", }
OrderRels is where relationship names are stored.
var OrderWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time FullName whereHelperstring Email whereHelperstring Phone whereHelperstring FullAddress whereHelperstring Message whereHelperstring PaymentMethod whereHelperstring Status whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, FullName: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, Phone: whereHelperstring{/* contains filtered or unexported fields */}, FullAddress: whereHelperstring{/* contains filtered or unexported fields */}, Message: whereHelperstring{/* contains filtered or unexported fields */}, PaymentMethod: whereHelperstring{/* contains filtered or unexported fields */}, Status: whereHelperstring{/* contains filtered or unexported fields */}, }
var PaymentStatusColumns = struct { ID string OrderID string ConfirmationXML string Status string CreatedAt string }{ ID: "id", OrderID: "order_id", ConfirmationXML: "confirmation_xml", Status: "status", CreatedAt: "created_at", }
var PaymentStatusRels = struct {
}{}
PaymentStatusRels is where relationship names are stored.
var PaymentStatusWhere = struct { ID whereHelperint OrderID whereHelperint ConfirmationXML whereHelperstring Status whereHelperstring CreatedAt whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, OrderID: whereHelperint{/* contains filtered or unexported fields */}, ConfirmationXML: whereHelperstring{/* contains filtered or unexported fields */}, Status: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { ArticleBasePrices string Articles string BasePrices string Categories string CategoryArticles string Images string Messages string OrderArticles string Orders string PaymentStatus string Variants string Videos string }{ ArticleBasePrices: "article_base_prices", Articles: "articles", BasePrices: "base_prices", Categories: "categories", CategoryArticles: "category_articles", Images: "images", Messages: "messages", OrderArticles: "order_articles", Orders: "orders", PaymentStatus: "payment_status", Variants: "variants", Videos: "videos", }
var VariantColumns = struct { ID string CreatedAt string UpdatedAt string ArticleID string Labels string Multiplier string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", ArticleID: "article_id", Labels: "labels", Multiplier: "multiplier", }
var VariantRels = struct { Article string }{ Article: "Article", }
VariantRels is where relationship names are stored.
var VariantWhere = struct { ID whereHelperint64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time ArticleID whereHelperint Labels whereHelpertypes_StringArray Multiplier whereHelpertypes_Decimal }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ArticleID: whereHelperint{/* contains filtered or unexported fields */}, Labels: whereHelpertypes_StringArray{/* contains filtered or unexported fields */}, Multiplier: whereHelpertypes_Decimal{/* contains filtered or unexported fields */}, }
var VideoColumns = struct { ID string CreatedAt string UpdatedAt string ArticleID string Position string Label string URL string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", ArticleID: "article_id", Position: "position", Label: "label", URL: "url", }
var VideoRels = struct { Article string }{ Article: "Article", }
VideoRels is where relationship names are stored.
var VideoWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time ArticleID whereHelperint Position whereHelperint Label whereHelperstring URL whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ArticleID: whereHelperint{/* contains filtered or unexported fields */}, Position: whereHelperint{/* contains filtered or unexported fields */}, Label: whereHelperstring{/* contains filtered or unexported fields */}, URL: whereHelperstring{/* contains filtered or unexported fields */}, }
Functions ¶
func AddArticleHook ¶
func AddArticleHook(hookPoint boil.HookPoint, articleHook ArticleHook)
AddArticleHook registers your hook function for all future operations.
func AddBasePriceHook ¶ added in v0.2.0
func AddBasePriceHook(hookPoint boil.HookPoint, basePriceHook BasePriceHook)
AddBasePriceHook registers your hook function for all future operations.
func AddCategoryHook ¶ added in v0.1.1
func AddCategoryHook(hookPoint boil.HookPoint, categoryHook CategoryHook)
AddCategoryHook registers your hook function for all future operations.
func AddImageHook ¶
AddImageHook registers your hook function for all future operations.
func AddMessageHook ¶ added in v0.4.1
func AddMessageHook(hookPoint boil.HookPoint, messageHook MessageHook)
AddMessageHook registers your hook function for all future operations.
func AddOrderArticleHook ¶
func AddOrderArticleHook(hookPoint boil.HookPoint, orderArticleHook OrderArticleHook)
AddOrderArticleHook registers your hook function for all future operations.
func AddOrderHook ¶
AddOrderHook registers your hook function for all future operations.
func AddPaymentStatusHook ¶ added in v0.2.0
func AddPaymentStatusHook(hookPoint boil.HookPoint, paymentStatusHook PaymentStatusHook)
AddPaymentStatusHook registers your hook function for all future operations.
func AddVariantHook ¶ added in v0.2.0
func AddVariantHook(hookPoint boil.HookPoint, variantHook VariantHook)
AddVariantHook registers your hook function for all future operations.
func AddVideoHook ¶
AddVideoHook registers your hook function for all future operations.
func ArticleExists ¶
ArticleExists checks if the Article row exists.
func BasePriceExists ¶ added in v0.2.0
BasePriceExists checks if the BasePrice row exists.
func BasePrices ¶ added in v0.2.0
BasePrices retrieves all the records using an executor.
func Categories ¶ added in v0.1.1
Categories retrieves all the records using an executor.
func CategoryExists ¶ added in v0.1.1
CategoryExists checks if the Category row exists.
func ImageExists ¶
ImageExists checks if the Image row exists.
func MessageExists ¶ added in v0.4.1
MessageExists checks if the Message row exists.
func OrderArticleExists ¶
OrderArticleExists checks if the OrderArticle row exists.
func OrderArticles ¶
OrderArticles retrieves all the records using an executor.
func OrderExists ¶
OrderExists checks if the Order row exists.
func PaymentStatusExists ¶ added in v0.2.0
PaymentStatusExists checks if the PaymentStatus row exists.
func PaymentStatuses ¶ added in v0.2.0
PaymentStatuses retrieves all the records using an executor.
func VariantExists ¶ added in v0.2.0
VariantExists checks if the Variant row exists.
func VideoExists ¶
VideoExists checks if the Video row exists.
Types ¶
type Article ¶
type Article struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
Published bool `boil:"published" json:"published" toml:"published" yaml:"published"`
Title string `boil:"title" json:"title" toml:"title" yaml:"title"`
Description string `boil:"description" json:"description" toml:"description" yaml:"description"`
Price types.Decimal `boil:"price" json:"price" toml:"price" yaml:"price"`
Promoted bool `boil:"promoted" json:"promoted" toml:"promoted" yaml:"promoted"`
SearchIndex null.String `boil:"search_index" json:"search_index,omitempty" toml:"search_index" yaml:"search_index,omitempty"`
R *articleR `boil:"-" json:"-" toml:"-" yaml:"-"`
L articleL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Article is an object representing the database table.
func FindArticle ¶
func FindArticle(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Article, error)
FindArticle retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Article) AddBasePrices ¶ added in v0.2.0
func (o *Article) AddBasePrices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*BasePrice) error
AddBasePrices adds the given related objects to the existing relationships of the article, optionally inserting them as new records. Appends related to o.R.BasePrices. Sets related.R.Articles appropriately.
func (*Article) AddCategories ¶ added in v0.1.1
func (o *Article) AddCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Category) error
AddCategories adds the given related objects to the existing relationships of the article, optionally inserting them as new records. Appends related to o.R.Categories. Sets related.R.Articles appropriately.
func (*Article) AddImages ¶
func (o *Article) AddImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Image) error
AddImages adds the given related objects to the existing relationships of the article, optionally inserting them as new records. Appends related to o.R.Images. Sets related.R.Article appropriately.
func (*Article) AddVariants ¶ added in v0.2.0
func (o *Article) AddVariants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Variant) error
AddVariants adds the given related objects to the existing relationships of the article, optionally inserting them as new records. Appends related to o.R.Variants. Sets related.R.Article appropriately.
func (*Article) AddVideos ¶
func (o *Article) AddVideos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Video) error
AddVideos adds the given related objects to the existing relationships of the article, optionally inserting them as new records. Appends related to o.R.Videos. Sets related.R.Article appropriately.
func (*Article) BasePrices ¶ added in v0.2.0
BasePrices retrieves all the base_price's BasePrices with an executor.
func (*Article) Categories ¶ added in v0.1.1
Categories retrieves all the category's Categories with an executor.
func (*Article) Delete ¶
Delete deletes a single Article record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Article) Insert ¶
func (o *Article) 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 (*Article) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Article) RemoveBasePrices ¶ added in v0.2.0
func (o *Article) RemoveBasePrices(ctx context.Context, exec boil.ContextExecutor, related ...*BasePrice) error
RemoveBasePrices relationships from objects passed in. Removes related items from R.BasePrices (uses pointer comparison, removal does not keep order) Sets related.R.Articles.
func (*Article) RemoveCategories ¶ added in v0.1.1
func (o *Article) RemoveCategories(ctx context.Context, exec boil.ContextExecutor, related ...*Category) error
RemoveCategories relationships from objects passed in. Removes related items from R.Categories (uses pointer comparison, removal does not keep order) Sets related.R.Articles.
func (*Article) SetBasePrices ¶ added in v0.2.0
func (o *Article) SetBasePrices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*BasePrice) error
SetBasePrices removes all previously related items of the article replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Articles's BasePrices accordingly. Replaces o.R.BasePrices with related. Sets related.R.Articles's BasePrices accordingly.
func (*Article) SetCategories ¶ added in v0.1.1
func (o *Article) SetCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Category) error
SetCategories removes all previously related items of the article replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Articles's Categories accordingly. Replaces o.R.Categories with related. Sets related.R.Articles's Categories accordingly.
func (*Article) Update ¶
func (o *Article) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Article. 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 (*Article) Upsert ¶
func (o *Article) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 ArticleHook ¶
ArticleHook is the signature for custom Article hook methods
type ArticleSlice ¶
type ArticleSlice []*Article
ArticleSlice is an alias for a slice of pointers to Article. This should generally be used opposed to []Article.
func (ArticleSlice) DeleteAll ¶
func (o ArticleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ArticleSlice) ReloadAll ¶
func (o *ArticleSlice) 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 (ArticleSlice) UpdateAll ¶
func (o ArticleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type BasePrice ¶ added in v0.2.0
type BasePrice struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
Label string `boil:"label" json:"label" toml:"label" yaml:"label"`
Price types.Decimal `boil:"price" json:"price" toml:"price" yaml:"price"`
R *basePriceR `boil:"-" json:"-" toml:"-" yaml:"-"`
L basePriceL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
BasePrice is an object representing the database table.
func FindBasePrice ¶ added in v0.2.0
func FindBasePrice(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*BasePrice, error)
FindBasePrice retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*BasePrice) AddArticles ¶ added in v0.2.0
func (o *BasePrice) AddArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Article) error
AddArticles adds the given related objects to the existing relationships of the base_price, optionally inserting them as new records. Appends related to o.R.Articles. Sets related.R.BasePrices appropriately.
func (*BasePrice) Articles ¶ added in v0.2.0
Articles retrieves all the article's Articles with an executor.
func (*BasePrice) Delete ¶ added in v0.2.0
Delete deletes a single BasePrice record with an executor. Delete will match against the primary key column to find the record to delete.
func (*BasePrice) Insert ¶ added in v0.2.0
func (o *BasePrice) 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 (*BasePrice) Reload ¶ added in v0.2.0
Reload refetches the object from the database using the primary keys with an executor.
func (*BasePrice) RemoveArticles ¶ added in v0.2.0
func (o *BasePrice) RemoveArticles(ctx context.Context, exec boil.ContextExecutor, related ...*Article) error
RemoveArticles relationships from objects passed in. Removes related items from R.Articles (uses pointer comparison, removal does not keep order) Sets related.R.BasePrices.
func (*BasePrice) SetArticles ¶ added in v0.2.0
func (o *BasePrice) SetArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Article) error
SetArticles removes all previously related items of the base_price replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.BasePrices's Articles accordingly. Replaces o.R.Articles with related. Sets related.R.BasePrices's Articles accordingly.
func (*BasePrice) Update ¶ added in v0.2.0
func (o *BasePrice) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the BasePrice. 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 (*BasePrice) Upsert ¶ added in v0.2.0
func (o *BasePrice) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 BasePriceHook ¶ added in v0.2.0
BasePriceHook is the signature for custom BasePrice hook methods
type BasePriceSlice ¶ added in v0.2.0
type BasePriceSlice []*BasePrice
BasePriceSlice is an alias for a slice of pointers to BasePrice. This should generally be used opposed to []BasePrice.
func (BasePriceSlice) DeleteAll ¶ added in v0.2.0
func (o BasePriceSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BasePriceSlice) ReloadAll ¶ added in v0.2.0
func (o *BasePriceSlice) 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 (BasePriceSlice) UpdateAll ¶ added in v0.2.0
func (o BasePriceSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Category ¶ added in v0.1.1
type Category struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
Label string `boil:"label" json:"label" toml:"label" yaml:"label"`
Position int `boil:"position" json:"position" toml:"position" yaml:"position"`
SearchIndex null.String `boil:"search_index" json:"search_index,omitempty" toml:"search_index" yaml:"search_index,omitempty"`
R *categoryR `boil:"-" json:"-" toml:"-" yaml:"-"`
L categoryL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Category is an object representing the database table.
func FindCategory ¶ added in v0.1.1
func FindCategory(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Category, error)
FindCategory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Category) AddArticles ¶ added in v0.1.1
func (o *Category) AddArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Article) error
AddArticles adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.Articles. Sets related.R.Categories appropriately.
func (*Category) Articles ¶ added in v0.1.1
Articles retrieves all the article's Articles with an executor.
func (*Category) Delete ¶ added in v0.1.1
Delete deletes a single Category record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Category) Insert ¶ added in v0.1.1
func (o *Category) 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 (*Category) Reload ¶ added in v0.1.1
Reload refetches the object from the database using the primary keys with an executor.
func (*Category) RemoveArticles ¶ added in v0.1.1
func (o *Category) RemoveArticles(ctx context.Context, exec boil.ContextExecutor, related ...*Article) error
RemoveArticles relationships from objects passed in. Removes related items from R.Articles (uses pointer comparison, removal does not keep order) Sets related.R.Categories.
func (*Category) SetArticles ¶ added in v0.1.1
func (o *Category) SetArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Article) error
SetArticles removes all previously related items of the category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Categories's Articles accordingly. Replaces o.R.Articles with related. Sets related.R.Categories's Articles accordingly.
func (*Category) Update ¶ added in v0.1.1
func (o *Category) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Category. 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 (*Category) Upsert ¶ added in v0.1.1
func (o *Category) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 CategoryHook ¶ added in v0.1.1
CategoryHook is the signature for custom Category hook methods
type CategorySlice ¶ added in v0.1.1
type CategorySlice []*Category
CategorySlice is an alias for a slice of pointers to Category. This should generally be used opposed to []Category.
func (CategorySlice) DeleteAll ¶ added in v0.1.1
func (o CategorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CategorySlice) ReloadAll ¶ added in v0.1.1
func (o *CategorySlice) 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 (CategorySlice) UpdateAll ¶ added in v0.1.1
func (o CategorySlice) 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 int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
ArticleID int `boil:"article_id" json:"article_id" toml:"article_id" yaml:"article_id"`
Position int `boil:"position" json:"position" toml:"position" yaml:"position"`
Label string `boil:"label" json:"label" toml:"label" yaml:"label"`
URL string `boil:"url" json:"url" toml:"url" yaml:"url"`
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 int, 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) 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) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Image) SetArticle ¶
func (o *Image) SetArticle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Article) error
SetArticle of the image to the related item. Sets o.R.Article to related. Adds o to related.R.Images.
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, updateOnConflict bool, conflictColumns []string, 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 generally be used opposed to []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 M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Message ¶ added in v0.4.1
type Message struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Email string `boil:"email" json:"email" toml:"email" yaml:"email"`
Phone string `boil:"phone" json:"phone" toml:"phone" yaml:"phone"`
Subject string `boil:"subject" json:"subject" toml:"subject" yaml:"subject"`
Message string `boil:"message" json:"message" toml:"message" yaml:"message"`
R *messageR `boil:"-" json:"-" toml:"-" yaml:"-"`
L messageL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Message is an object representing the database table.
func FindMessage ¶ added in v0.4.1
func FindMessage(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Message, error)
FindMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Message) Delete ¶ added in v0.4.1
Delete deletes a single Message record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Message) Insert ¶ added in v0.4.1
func (o *Message) 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 (*Message) Reload ¶ added in v0.4.1
Reload refetches the object from the database using the primary keys with an executor.
func (*Message) Update ¶ added in v0.4.1
func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Message. 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 (*Message) Upsert ¶ added in v0.4.1
func (o *Message) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 MessageHook ¶ added in v0.4.1
MessageHook is the signature for custom Message hook methods
type MessageSlice ¶ added in v0.4.1
type MessageSlice []*Message
MessageSlice is an alias for a slice of pointers to Message. This should generally be used opposed to []Message.
func (MessageSlice) DeleteAll ¶ added in v0.4.1
func (o MessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MessageSlice) ReloadAll ¶ added in v0.4.1
func (o *MessageSlice) 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 (MessageSlice) UpdateAll ¶ added in v0.4.1
func (o MessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Order ¶
type Order struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
FullName string `boil:"full_name" json:"full_name" toml:"full_name" yaml:"full_name"`
Email string `boil:"email" json:"email" toml:"email" yaml:"email"`
Phone string `boil:"phone" json:"phone" toml:"phone" yaml:"phone"`
FullAddress string `boil:"full_address" json:"full_address" toml:"full_address" yaml:"full_address"`
Message string `boil:"message" json:"message" toml:"message" yaml:"message"`
PaymentMethod string `boil:"payment_method" json:"payment_method" toml:"payment_method" yaml:"payment_method"`
Status string `boil:"status" json:"status" toml:"status" yaml:"status"`
R *orderR `boil:"-" json:"-" toml:"-" yaml:"-"`
L orderL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Order is an object representing the database table.
func FindOrder ¶
func FindOrder(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Order, error)
FindOrder retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Order) AddOrderArticles ¶
func (o *Order) AddOrderArticles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OrderArticle) error
AddOrderArticles adds the given related objects to the existing relationships of the order, optionally inserting them as new records. Appends related to o.R.OrderArticles. Sets related.R.Order appropriately.
func (*Order) Delete ¶
Delete deletes a single Order record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Order) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Order) OrderArticles ¶
OrderArticles retrieves all the order_article's OrderArticles with an executor.
func (*Order) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Order) Update ¶
func (o *Order) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Order. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Order) Upsert ¶
func (o *Order) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 OrderArticle ¶
type OrderArticle struct {
OrderID int `boil:"order_id" json:"order_id" toml:"order_id" yaml:"order_id"`
ArticleID int `boil:"article_id" json:"article_id" toml:"article_id" yaml:"article_id"`
Amount int `boil:"amount" json:"amount" toml:"amount" yaml:"amount"`
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
Title string `boil:"title" json:"title" toml:"title" yaml:"title"`
Price types.Decimal `boil:"price" json:"price" toml:"price" yaml:"price"`
Details null.JSON `boil:"details" json:"details,omitempty" toml:"details" yaml:"details,omitempty"`
R *orderArticleR `boil:"-" json:"-" toml:"-" yaml:"-"`
L orderArticleL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
OrderArticle is an object representing the database table.
func FindOrderArticle ¶
func FindOrderArticle(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*OrderArticle, error)
FindOrderArticle retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*OrderArticle) Delete ¶
func (o *OrderArticle) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OrderArticle record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OrderArticle) Insert ¶
func (o *OrderArticle) 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 (*OrderArticle) Order ¶
func (o *OrderArticle) Order(mods ...qm.QueryMod) orderQuery
Order pointed to by the foreign key.
func (*OrderArticle) Reload ¶
func (o *OrderArticle) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OrderArticle) SetOrder ¶
func (o *OrderArticle) SetOrder(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Order) error
SetOrder of the orderArticle to the related item. Sets o.R.Order to related. Adds o to related.R.OrderArticles.
func (*OrderArticle) Update ¶
func (o *OrderArticle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OrderArticle. 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 (*OrderArticle) Upsert ¶
func (o *OrderArticle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 OrderArticleHook ¶
type OrderArticleHook func(context.Context, boil.ContextExecutor, *OrderArticle) error
OrderArticleHook is the signature for custom OrderArticle hook methods
type OrderArticleSlice ¶
type OrderArticleSlice []*OrderArticle
OrderArticleSlice is an alias for a slice of pointers to OrderArticle. This should generally be used opposed to []OrderArticle.
func (OrderArticleSlice) DeleteAll ¶
func (o OrderArticleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OrderArticleSlice) ReloadAll ¶
func (o *OrderArticleSlice) 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 (OrderArticleSlice) UpdateAll ¶
func (o OrderArticleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type OrderSlice ¶
type OrderSlice []*Order
OrderSlice is an alias for a slice of pointers to Order. This should generally be used opposed to []Order.
func (OrderSlice) DeleteAll ¶
func (o OrderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OrderSlice) ReloadAll ¶
func (o *OrderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OrderSlice) UpdateAll ¶
func (o OrderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type PaymentStatus ¶ added in v0.2.0
type PaymentStatus struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
OrderID int `boil:"order_id" json:"order_id" toml:"order_id" yaml:"order_id"`
ConfirmationXML string `boil:"confirmation_xml" json:"confirmation_xml" toml:"confirmation_xml" yaml:"confirmation_xml"`
Status string `boil:"status" json:"status" toml:"status" yaml:"status"`
CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
R *paymentStatusR `boil:"-" json:"-" toml:"-" yaml:"-"`
L paymentStatusL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
PaymentStatus is an object representing the database table.
func FindPaymentStatus ¶ added in v0.2.0
func FindPaymentStatus(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*PaymentStatus, error)
FindPaymentStatus retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*PaymentStatus) Delete ¶ added in v0.2.0
func (o *PaymentStatus) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PaymentStatus record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PaymentStatus) Insert ¶ added in v0.2.0
func (o *PaymentStatus) 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 (*PaymentStatus) Reload ¶ added in v0.2.0
func (o *PaymentStatus) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PaymentStatus) Update ¶ added in v0.2.0
func (o *PaymentStatus) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PaymentStatus. 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 (*PaymentStatus) Upsert ¶ added in v0.2.0
func (o *PaymentStatus) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 PaymentStatusHook ¶ added in v0.2.0
type PaymentStatusHook func(context.Context, boil.ContextExecutor, *PaymentStatus) error
PaymentStatusHook is the signature for custom PaymentStatus hook methods
type PaymentStatusSlice ¶ added in v0.2.0
type PaymentStatusSlice []*PaymentStatus
PaymentStatusSlice is an alias for a slice of pointers to PaymentStatus. This should generally be used opposed to []PaymentStatus.
func (PaymentStatusSlice) DeleteAll ¶ added in v0.2.0
func (o PaymentStatusSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PaymentStatusSlice) ReloadAll ¶ added in v0.2.0
func (o *PaymentStatusSlice) 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 (PaymentStatusSlice) UpdateAll ¶ added in v0.2.0
func (o PaymentStatusSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Variant ¶ added in v0.2.0
type Variant struct {
ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
ArticleID int `boil:"article_id" json:"article_id" toml:"article_id" yaml:"article_id"`
Labels types.StringArray `boil:"labels" json:"labels" toml:"labels" yaml:"labels"`
Multiplier types.Decimal `boil:"multiplier" json:"multiplier" toml:"multiplier" yaml:"multiplier"`
R *variantR `boil:"-" json:"-" toml:"-" yaml:"-"`
L variantL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Variant is an object representing the database table.
func FindVariant ¶ added in v0.2.0
func FindVariant(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Variant, error)
FindVariant retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Variant) Delete ¶ added in v0.2.0
Delete deletes a single Variant record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Variant) Insert ¶ added in v0.2.0
func (o *Variant) 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 (*Variant) Reload ¶ added in v0.2.0
Reload refetches the object from the database using the primary keys with an executor.
func (*Variant) SetArticle ¶ added in v0.2.0
func (o *Variant) SetArticle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Article) error
SetArticle of the variant to the related item. Sets o.R.Article to related. Adds o to related.R.Variants.
func (*Variant) Update ¶ added in v0.2.0
func (o *Variant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Variant. 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 (*Variant) Upsert ¶ added in v0.2.0
func (o *Variant) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 VariantHook ¶ added in v0.2.0
VariantHook is the signature for custom Variant hook methods
type VariantSlice ¶ added in v0.2.0
type VariantSlice []*Variant
VariantSlice is an alias for a slice of pointers to Variant. This should generally be used opposed to []Variant.
func (VariantSlice) DeleteAll ¶ added in v0.2.0
func (o VariantSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*VariantSlice) ReloadAll ¶ added in v0.2.0
func (o *VariantSlice) 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 (VariantSlice) UpdateAll ¶ added in v0.2.0
func (o VariantSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Video ¶
type Video struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
ArticleID int `boil:"article_id" json:"article_id" toml:"article_id" yaml:"article_id"`
Position int `boil:"position" json:"position" toml:"position" yaml:"position"`
Label string `boil:"label" json:"label" toml:"label" yaml:"label"`
URL string `boil:"url" json:"url" toml:"url" yaml:"url"`
R *videoR `boil:"-" json:"-" toml:"-" yaml:"-"`
L videoL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Video is an object representing the database table.
func FindVideo ¶
func FindVideo(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Video, error)
FindVideo retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Video) Delete ¶
Delete deletes a single Video record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Video) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Video) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Video) SetArticle ¶
func (o *Video) SetArticle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Article) error
SetArticle of the video to the related item. Sets o.R.Article to related. Adds o to related.R.Videos.
func (*Video) Update ¶
func (o *Video) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Video. 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 (*Video) Upsert ¶
func (o *Video) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 VideoSlice ¶
type VideoSlice []*Video
VideoSlice is an alias for a slice of pointers to Video. This should generally be used opposed to []Video.
func (VideoSlice) DeleteAll ¶
func (o VideoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*VideoSlice) ReloadAll ¶
func (o *VideoSlice) 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 (VideoSlice) UpdateAll ¶
func (o VideoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.