Documentation ¶
Index ¶
- Variables
- func Categories(exec boil.Executor, mods ...qm.QueryMod) categoryQuery
- func CategoriesG(mods ...qm.QueryMod) categoryQuery
- func CategoryExists(exec boil.Executor, categoryID int) (bool, error)
- func CategoryExistsG(categoryID int) (bool, error)
- func CategoryExistsGP(categoryID int) bool
- func CategoryExistsP(exec boil.Executor, categoryID int) bool
- func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query
- func NewQueryG(mods ...qm.QueryMod) *queries.Query
- func ProductExists(exec boil.Executor, productID int) (bool, error)
- func ProductExistsG(productID int) (bool, error)
- func ProductExistsGP(productID int) bool
- func ProductExistsP(exec boil.Executor, productID int) bool
- func ProductVersionExists(exec boil.Executor, productVersionID int) (bool, error)
- func ProductVersionExistsG(productVersionID int) (bool, error)
- func ProductVersionExistsGP(productVersionID int) bool
- func ProductVersionExistsP(exec boil.Executor, productVersionID int) bool
- func ProductVersions(exec boil.Executor, mods ...qm.QueryMod) productVersionQuery
- func ProductVersionsG(mods ...qm.QueryMod) productVersionQuery
- func Products(exec boil.Executor, mods ...qm.QueryMod) productQuery
- func ProductsG(mods ...qm.QueryMod) productQuery
- func StockExists(exec boil.Executor, stockID int) (bool, error)
- func StockExistsG(stockID int) (bool, error)
- func StockExistsGP(stockID int) bool
- func StockExistsP(exec boil.Executor, stockID int) bool
- func Stocks(exec boil.Executor, mods ...qm.QueryMod) stockQuery
- func StocksG(mods ...qm.QueryMod) stockQuery
- func TransactionExists(exec boil.Executor, transactionID int) (bool, error)
- func TransactionExistsG(transactionID int) (bool, error)
- func TransactionExistsGP(transactionID int) bool
- func TransactionExistsP(exec boil.Executor, transactionID int) bool
- func Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery
- func TransactionsG(mods ...qm.QueryMod) transactionQuery
- func UserAuthExists(exec boil.Executor, userAuthID int) (bool, error)
- func UserAuthExistsG(userAuthID int) (bool, error)
- func UserAuthExistsGP(userAuthID int) bool
- func UserAuthExistsP(exec boil.Executor, userAuthID int) bool
- func UserAuths(exec boil.Executor, mods ...qm.QueryMod) userAuthQuery
- func UserAuthsG(mods ...qm.QueryMod) userAuthQuery
- func UserExists(exec boil.Executor, userID int) (bool, error)
- func UserExistsG(userID int) (bool, error)
- func UserExistsGP(userID int) bool
- func UserExistsP(exec boil.Executor, userID int) bool
- func Users(exec boil.Executor, mods ...qm.QueryMod) userQuery
- func UsersG(mods ...qm.QueryMod) userQuery
- type Category
- func FindCategory(exec boil.Executor, categoryID int, selectCols ...string) (*Category, error)
- func FindCategoryG(categoryID int, selectCols ...string) (*Category, error)
- func FindCategoryGP(categoryID int, selectCols ...string) *Category
- func FindCategoryP(exec boil.Executor, categoryID int, selectCols ...string) *Category
- func (o *Category) AddParentCategories(exec boil.Executor, insert bool, related ...*Category) error
- func (o *Category) AddParentCategoriesG(insert bool, related ...*Category) error
- func (o *Category) AddParentCategoriesGP(insert bool, related ...*Category)
- func (o *Category) AddParentCategoriesP(exec boil.Executor, insert bool, related ...*Category)
- func (o *Category) AddProducts(exec boil.Executor, insert bool, related ...*Product) error
- func (o *Category) AddProductsG(insert bool, related ...*Product) error
- func (o *Category) AddProductsGP(insert bool, related ...*Product)
- func (o *Category) AddProductsP(exec boil.Executor, insert bool, related ...*Product)
- func (o *Category) Delete(exec boil.Executor) error
- func (o *Category) DeleteG() error
- func (o *Category) DeleteGP()
- func (o *Category) DeleteP(exec boil.Executor)
- func (o *Category) Insert(exec boil.Executor, whitelist ...string) error
- func (o *Category) InsertG(whitelist ...string) error
- func (o *Category) InsertGP(whitelist ...string)
- func (o *Category) InsertP(exec boil.Executor, whitelist ...string)
- func (o *Category) Parent(exec boil.Executor, mods ...qm.QueryMod) categoryQuery
- func (o *Category) ParentCategories(exec boil.Executor, mods ...qm.QueryMod) categoryQuery
- func (o *Category) ParentCategoriesG(mods ...qm.QueryMod) categoryQuery
- func (o *Category) ParentG(mods ...qm.QueryMod) categoryQuery
- func (o *Category) Products(exec boil.Executor, mods ...qm.QueryMod) productQuery
- func (o *Category) ProductsG(mods ...qm.QueryMod) productQuery
- func (o *Category) Reload(exec boil.Executor) error
- func (o *Category) ReloadG() error
- func (o *Category) ReloadGP()
- func (o *Category) ReloadP(exec boil.Executor)
- func (o *Category) RemoveParent(exec boil.Executor, related *Category) error
- func (o *Category) RemoveParentCategories(exec boil.Executor, related ...*Category) error
- func (o *Category) RemoveParentCategoriesG(related ...*Category) error
- func (o *Category) RemoveParentCategoriesGP(related ...*Category)
- func (o *Category) RemoveParentCategoriesP(exec boil.Executor, related ...*Category)
- func (o *Category) RemoveParentG(related *Category) error
- func (o *Category) RemoveParentGP(related *Category)
- func (o *Category) RemoveParentP(exec boil.Executor, related *Category)
- func (o *Category) RemoveProducts(exec boil.Executor, related ...*Product) error
- func (o *Category) RemoveProductsG(related ...*Product) error
- func (o *Category) RemoveProductsGP(related ...*Product)
- func (o *Category) RemoveProductsP(exec boil.Executor, related ...*Product)
- func (o *Category) SetParent(exec boil.Executor, insert bool, related *Category) error
- func (o *Category) SetParentCategories(exec boil.Executor, insert bool, related ...*Category) error
- func (o *Category) SetParentCategoriesG(insert bool, related ...*Category) error
- func (o *Category) SetParentCategoriesGP(insert bool, related ...*Category)
- func (o *Category) SetParentCategoriesP(exec boil.Executor, insert bool, related ...*Category)
- func (o *Category) SetParentG(insert bool, related *Category) error
- func (o *Category) SetParentGP(insert bool, related *Category)
- func (o *Category) SetParentP(exec boil.Executor, insert bool, related *Category)
- func (o *Category) SetProducts(exec boil.Executor, insert bool, related ...*Product) error
- func (o *Category) SetProductsG(insert bool, related ...*Product) error
- func (o *Category) SetProductsGP(insert bool, related ...*Product)
- func (o *Category) SetProductsP(exec boil.Executor, insert bool, related ...*Product)
- func (o *Category) Update(exec boil.Executor, whitelist ...string) error
- func (o *Category) UpdateG(whitelist ...string) error
- func (o *Category) UpdateGP(whitelist ...string)
- func (o *Category) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *Category) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *Category) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *Category) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *Category) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- type CategorySlice
- func (o CategorySlice) DeleteAll(exec boil.Executor) error
- func (o CategorySlice) DeleteAllG() error
- func (o CategorySlice) DeleteAllGP()
- func (o CategorySlice) DeleteAllP(exec boil.Executor)
- func (o *CategorySlice) ReloadAll(exec boil.Executor) error
- func (o *CategorySlice) ReloadAllG() error
- func (o *CategorySlice) ReloadAllGP()
- func (o *CategorySlice) ReloadAllP(exec boil.Executor)
- func (o CategorySlice) UpdateAll(exec boil.Executor, cols M) error
- func (o CategorySlice) UpdateAllG(cols M) error
- func (o CategorySlice) UpdateAllGP(cols M)
- func (o CategorySlice) UpdateAllP(exec boil.Executor, cols M)
- type M
- type Product
- func FindProduct(exec boil.Executor, productID int, selectCols ...string) (*Product, error)
- func FindProductG(productID int, selectCols ...string) (*Product, error)
- func FindProductGP(productID int, selectCols ...string) *Product
- func FindProductP(exec boil.Executor, productID int, selectCols ...string) *Product
- func (o *Product) AddCategories(exec boil.Executor, insert bool, related ...*Category) error
- func (o *Product) AddCategoriesG(insert bool, related ...*Category) error
- func (o *Product) AddCategoriesGP(insert bool, related ...*Category)
- func (o *Product) AddCategoriesP(exec boil.Executor, insert bool, related ...*Category)
- func (o *Product) AddProductVersions(exec boil.Executor, insert bool, related ...*ProductVersion) error
- func (o *Product) AddProductVersionsG(insert bool, related ...*ProductVersion) error
- func (o *Product) AddProductVersionsGP(insert bool, related ...*ProductVersion)
- func (o *Product) AddProductVersionsP(exec boil.Executor, insert bool, related ...*ProductVersion)
- func (o *Product) AddStocks(exec boil.Executor, insert bool, related ...*Stock) error
- func (o *Product) AddStocksG(insert bool, related ...*Stock) error
- func (o *Product) AddStocksGP(insert bool, related ...*Stock)
- func (o *Product) AddStocksP(exec boil.Executor, insert bool, related ...*Stock)
- func (o *Product) AddTransactions(exec boil.Executor, insert bool, related ...*Transaction) error
- func (o *Product) AddTransactionsG(insert bool, related ...*Transaction) error
- func (o *Product) AddTransactionsGP(insert bool, related ...*Transaction)
- func (o *Product) AddTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
- func (o *Product) Categories(exec boil.Executor, mods ...qm.QueryMod) categoryQuery
- func (o *Product) CategoriesG(mods ...qm.QueryMod) categoryQuery
- func (o *Product) Delete(exec boil.Executor) error
- func (o *Product) DeleteG() error
- func (o *Product) DeleteGP()
- func (o *Product) DeleteP(exec boil.Executor)
- func (o *Product) Insert(exec boil.Executor, whitelist ...string) error
- func (o *Product) InsertG(whitelist ...string) error
- func (o *Product) InsertGP(whitelist ...string)
- func (o *Product) InsertP(exec boil.Executor, whitelist ...string)
- func (o *Product) ProductVersions(exec boil.Executor, mods ...qm.QueryMod) productVersionQuery
- func (o *Product) ProductVersionsG(mods ...qm.QueryMod) productVersionQuery
- func (o *Product) Reload(exec boil.Executor) error
- func (o *Product) ReloadG() error
- func (o *Product) ReloadGP()
- func (o *Product) ReloadP(exec boil.Executor)
- func (o *Product) RemoveCategories(exec boil.Executor, related ...*Category) error
- func (o *Product) RemoveCategoriesG(related ...*Category) error
- func (o *Product) RemoveCategoriesGP(related ...*Category)
- func (o *Product) RemoveCategoriesP(exec boil.Executor, related ...*Category)
- func (o *Product) RemoveTransactions(exec boil.Executor, related ...*Transaction) error
- func (o *Product) RemoveTransactionsG(related ...*Transaction) error
- func (o *Product) RemoveTransactionsGP(related ...*Transaction)
- func (o *Product) RemoveTransactionsP(exec boil.Executor, related ...*Transaction)
- func (o *Product) SetCategories(exec boil.Executor, insert bool, related ...*Category) error
- func (o *Product) SetCategoriesG(insert bool, related ...*Category) error
- func (o *Product) SetCategoriesGP(insert bool, related ...*Category)
- func (o *Product) SetCategoriesP(exec boil.Executor, insert bool, related ...*Category)
- func (o *Product) SetTransactions(exec boil.Executor, insert bool, related ...*Transaction) error
- func (o *Product) SetTransactionsG(insert bool, related ...*Transaction) error
- func (o *Product) SetTransactionsGP(insert bool, related ...*Transaction)
- func (o *Product) SetTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
- func (o *Product) Stocks(exec boil.Executor, mods ...qm.QueryMod) stockQuery
- func (o *Product) StocksG(mods ...qm.QueryMod) stockQuery
- func (o *Product) Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery
- func (o *Product) TransactionsG(mods ...qm.QueryMod) transactionQuery
- func (o *Product) Update(exec boil.Executor, whitelist ...string) error
- func (o *Product) UpdateG(whitelist ...string) error
- func (o *Product) UpdateGP(whitelist ...string)
- func (o *Product) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *Product) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *Product) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *Product) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *Product) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- type ProductSlice
- func (o ProductSlice) DeleteAll(exec boil.Executor) error
- func (o ProductSlice) DeleteAllG() error
- func (o ProductSlice) DeleteAllGP()
- func (o ProductSlice) DeleteAllP(exec boil.Executor)
- func (o *ProductSlice) ReloadAll(exec boil.Executor) error
- func (o *ProductSlice) ReloadAllG() error
- func (o *ProductSlice) ReloadAllGP()
- func (o *ProductSlice) ReloadAllP(exec boil.Executor)
- func (o ProductSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o ProductSlice) UpdateAllG(cols M) error
- func (o ProductSlice) UpdateAllGP(cols M)
- func (o ProductSlice) UpdateAllP(exec boil.Executor, cols M)
- type ProductVersion
- func FindProductVersion(exec boil.Executor, productVersionID int, selectCols ...string) (*ProductVersion, error)
- func FindProductVersionG(productVersionID int, selectCols ...string) (*ProductVersion, error)
- func FindProductVersionGP(productVersionID int, selectCols ...string) *ProductVersion
- func FindProductVersionP(exec boil.Executor, productVersionID int, selectCols ...string) *ProductVersion
- func (o *ProductVersion) Delete(exec boil.Executor) error
- func (o *ProductVersion) DeleteG() error
- func (o *ProductVersion) DeleteGP()
- func (o *ProductVersion) DeleteP(exec boil.Executor)
- func (o *ProductVersion) Insert(exec boil.Executor, whitelist ...string) error
- func (o *ProductVersion) InsertG(whitelist ...string) error
- func (o *ProductVersion) InsertGP(whitelist ...string)
- func (o *ProductVersion) InsertP(exec boil.Executor, whitelist ...string)
- func (o *ProductVersion) Product(exec boil.Executor, mods ...qm.QueryMod) productQuery
- func (o *ProductVersion) ProductG(mods ...qm.QueryMod) productQuery
- func (o *ProductVersion) Reload(exec boil.Executor) error
- func (o *ProductVersion) ReloadG() error
- func (o *ProductVersion) ReloadGP()
- func (o *ProductVersion) ReloadP(exec boil.Executor)
- func (o *ProductVersion) SetProduct(exec boil.Executor, insert bool, related *Product) error
- func (o *ProductVersion) SetProductG(insert bool, related *Product) error
- func (o *ProductVersion) SetProductGP(insert bool, related *Product)
- func (o *ProductVersion) SetProductP(exec boil.Executor, insert bool, related *Product)
- func (o *ProductVersion) Update(exec boil.Executor, whitelist ...string) error
- func (o *ProductVersion) UpdateG(whitelist ...string) error
- func (o *ProductVersion) UpdateGP(whitelist ...string)
- func (o *ProductVersion) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *ProductVersion) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *ProductVersion) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *ProductVersion) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *ProductVersion) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- type ProductVersionSlice
- func (o ProductVersionSlice) DeleteAll(exec boil.Executor) error
- func (o ProductVersionSlice) DeleteAllG() error
- func (o ProductVersionSlice) DeleteAllGP()
- func (o ProductVersionSlice) DeleteAllP(exec boil.Executor)
- func (o *ProductVersionSlice) ReloadAll(exec boil.Executor) error
- func (o *ProductVersionSlice) ReloadAllG() error
- func (o *ProductVersionSlice) ReloadAllGP()
- func (o *ProductVersionSlice) ReloadAllP(exec boil.Executor)
- func (o ProductVersionSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o ProductVersionSlice) UpdateAllG(cols M) error
- func (o ProductVersionSlice) UpdateAllGP(cols M)
- func (o ProductVersionSlice) UpdateAllP(exec boil.Executor, cols M)
- type Stock
- func (o *Stock) Delete(exec boil.Executor) error
- func (o *Stock) DeleteG() error
- func (o *Stock) DeleteGP()
- func (o *Stock) DeleteP(exec boil.Executor)
- func (o *Stock) Insert(exec boil.Executor, whitelist ...string) error
- func (o *Stock) InsertG(whitelist ...string) error
- func (o *Stock) InsertGP(whitelist ...string)
- func (o *Stock) InsertP(exec boil.Executor, whitelist ...string)
- func (o *Stock) Product(exec boil.Executor, mods ...qm.QueryMod) productQuery
- func (o *Stock) ProductG(mods ...qm.QueryMod) productQuery
- func (o *Stock) Reload(exec boil.Executor) error
- func (o *Stock) ReloadG() error
- func (o *Stock) ReloadGP()
- func (o *Stock) ReloadP(exec boil.Executor)
- func (o *Stock) RemoveUser(exec boil.Executor, related *User) error
- func (o *Stock) RemoveUserG(related *User) error
- func (o *Stock) RemoveUserGP(related *User)
- func (o *Stock) RemoveUserP(exec boil.Executor, related *User)
- func (o *Stock) SetProduct(exec boil.Executor, insert bool, related *Product) error
- func (o *Stock) SetProductG(insert bool, related *Product) error
- func (o *Stock) SetProductGP(insert bool, related *Product)
- func (o *Stock) SetProductP(exec boil.Executor, insert bool, related *Product)
- func (o *Stock) SetUser(exec boil.Executor, insert bool, related *User) error
- func (o *Stock) SetUserG(insert bool, related *User) error
- func (o *Stock) SetUserGP(insert bool, related *User)
- func (o *Stock) SetUserP(exec boil.Executor, insert bool, related *User)
- func (o *Stock) Update(exec boil.Executor, whitelist ...string) error
- func (o *Stock) UpdateG(whitelist ...string) error
- func (o *Stock) UpdateGP(whitelist ...string)
- func (o *Stock) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *Stock) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *Stock) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *Stock) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *Stock) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- func (o *Stock) User(exec boil.Executor, mods ...qm.QueryMod) userQuery
- func (o *Stock) UserG(mods ...qm.QueryMod) userQuery
- type StockSlice
- func (o StockSlice) DeleteAll(exec boil.Executor) error
- func (o StockSlice) DeleteAllG() error
- func (o StockSlice) DeleteAllGP()
- func (o StockSlice) DeleteAllP(exec boil.Executor)
- func (o *StockSlice) ReloadAll(exec boil.Executor) error
- func (o *StockSlice) ReloadAllG() error
- func (o *StockSlice) ReloadAllGP()
- func (o *StockSlice) ReloadAllP(exec boil.Executor)
- func (o StockSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o StockSlice) UpdateAllG(cols M) error
- func (o StockSlice) UpdateAllGP(cols M)
- func (o StockSlice) UpdateAllP(exec boil.Executor, cols M)
- type Transaction
- func FindTransaction(exec boil.Executor, transactionID int, selectCols ...string) (*Transaction, error)
- func FindTransactionG(transactionID int, selectCols ...string) (*Transaction, error)
- func FindTransactionGP(transactionID int, selectCols ...string) *Transaction
- func FindTransactionP(exec boil.Executor, transactionID int, selectCols ...string) *Transaction
- func (o *Transaction) Delete(exec boil.Executor) error
- func (o *Transaction) DeleteG() error
- func (o *Transaction) DeleteGP()
- func (o *Transaction) DeleteP(exec boil.Executor)
- func (o *Transaction) Insert(exec boil.Executor, whitelist ...string) error
- func (o *Transaction) InsertG(whitelist ...string) error
- func (o *Transaction) InsertGP(whitelist ...string)
- func (o *Transaction) InsertP(exec boil.Executor, whitelist ...string)
- func (o *Transaction) Product(exec boil.Executor, mods ...qm.QueryMod) productQuery
- func (o *Transaction) ProductG(mods ...qm.QueryMod) productQuery
- func (o *Transaction) Reload(exec boil.Executor) error
- func (o *Transaction) ReloadG() error
- func (o *Transaction) ReloadGP()
- func (o *Transaction) ReloadP(exec boil.Executor)
- func (o *Transaction) RemoveProduct(exec boil.Executor, related *Product) error
- func (o *Transaction) RemoveProductG(related *Product) error
- func (o *Transaction) RemoveProductGP(related *Product)
- func (o *Transaction) RemoveProductP(exec boil.Executor, related *Product)
- func (o *Transaction) RemoveUser(exec boil.Executor, related *User) error
- func (o *Transaction) RemoveUserG(related *User) error
- func (o *Transaction) RemoveUserGP(related *User)
- func (o *Transaction) RemoveUserP(exec boil.Executor, related *User)
- func (o *Transaction) SetProduct(exec boil.Executor, insert bool, related *Product) error
- func (o *Transaction) SetProductG(insert bool, related *Product) error
- func (o *Transaction) SetProductGP(insert bool, related *Product)
- func (o *Transaction) SetProductP(exec boil.Executor, insert bool, related *Product)
- func (o *Transaction) SetUser(exec boil.Executor, insert bool, related *User) error
- func (o *Transaction) SetUserG(insert bool, related *User) error
- func (o *Transaction) SetUserGP(insert bool, related *User)
- func (o *Transaction) SetUserP(exec boil.Executor, insert bool, related *User)
- func (o *Transaction) Update(exec boil.Executor, whitelist ...string) error
- func (o *Transaction) UpdateG(whitelist ...string) error
- func (o *Transaction) UpdateGP(whitelist ...string)
- func (o *Transaction) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *Transaction) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *Transaction) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *Transaction) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *Transaction) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- func (o *Transaction) User(exec boil.Executor, mods ...qm.QueryMod) userQuery
- func (o *Transaction) UserG(mods ...qm.QueryMod) userQuery
- type TransactionSlice
- func (o TransactionSlice) DeleteAll(exec boil.Executor) error
- func (o TransactionSlice) DeleteAllG() error
- func (o TransactionSlice) DeleteAllGP()
- func (o TransactionSlice) DeleteAllP(exec boil.Executor)
- func (o *TransactionSlice) ReloadAll(exec boil.Executor) error
- func (o *TransactionSlice) ReloadAllG() error
- func (o *TransactionSlice) ReloadAllGP()
- func (o *TransactionSlice) ReloadAllP(exec boil.Executor)
- func (o TransactionSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o TransactionSlice) UpdateAllG(cols M) error
- func (o TransactionSlice) UpdateAllGP(cols M)
- func (o TransactionSlice) UpdateAllP(exec boil.Executor, cols M)
- type User
- func (o *User) AddStocks(exec boil.Executor, insert bool, related ...*Stock) error
- func (o *User) AddStocksG(insert bool, related ...*Stock) error
- func (o *User) AddStocksGP(insert bool, related ...*Stock)
- func (o *User) AddStocksP(exec boil.Executor, insert bool, related ...*Stock)
- func (o *User) AddTransactions(exec boil.Executor, insert bool, related ...*Transaction) error
- func (o *User) AddTransactionsG(insert bool, related ...*Transaction) error
- func (o *User) AddTransactionsGP(insert bool, related ...*Transaction)
- func (o *User) AddTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
- func (o *User) AddUserAuths(exec boil.Executor, insert bool, related ...*UserAuth) error
- func (o *User) AddUserAuthsG(insert bool, related ...*UserAuth) error
- func (o *User) AddUserAuthsGP(insert bool, related ...*UserAuth)
- func (o *User) AddUserAuthsP(exec boil.Executor, insert bool, related ...*UserAuth)
- func (o *User) Delete(exec boil.Executor) error
- func (o *User) DeleteG() error
- func (o *User) DeleteGP()
- func (o *User) DeleteP(exec boil.Executor)
- func (o *User) Insert(exec boil.Executor, whitelist ...string) error
- func (o *User) InsertG(whitelist ...string) error
- func (o *User) InsertGP(whitelist ...string)
- func (o *User) InsertP(exec boil.Executor, whitelist ...string)
- func (o *User) Reload(exec boil.Executor) error
- func (o *User) ReloadG() error
- func (o *User) ReloadGP()
- func (o *User) ReloadP(exec boil.Executor)
- func (o *User) RemoveStocks(exec boil.Executor, related ...*Stock) error
- func (o *User) RemoveStocksG(related ...*Stock) error
- func (o *User) RemoveStocksGP(related ...*Stock)
- func (o *User) RemoveStocksP(exec boil.Executor, related ...*Stock)
- func (o *User) RemoveTransactions(exec boil.Executor, related ...*Transaction) error
- func (o *User) RemoveTransactionsG(related ...*Transaction) error
- func (o *User) RemoveTransactionsGP(related ...*Transaction)
- func (o *User) RemoveTransactionsP(exec boil.Executor, related ...*Transaction)
- func (o *User) SetStocks(exec boil.Executor, insert bool, related ...*Stock) error
- func (o *User) SetStocksG(insert bool, related ...*Stock) error
- func (o *User) SetStocksGP(insert bool, related ...*Stock)
- func (o *User) SetStocksP(exec boil.Executor, insert bool, related ...*Stock)
- func (o *User) SetTransactions(exec boil.Executor, insert bool, related ...*Transaction) error
- func (o *User) SetTransactionsG(insert bool, related ...*Transaction) error
- func (o *User) SetTransactionsGP(insert bool, related ...*Transaction)
- func (o *User) SetTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
- func (o *User) Stocks(exec boil.Executor, mods ...qm.QueryMod) stockQuery
- func (o *User) StocksG(mods ...qm.QueryMod) stockQuery
- func (o *User) Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery
- func (o *User) TransactionsG(mods ...qm.QueryMod) transactionQuery
- func (o *User) Update(exec boil.Executor, whitelist ...string) error
- func (o *User) UpdateG(whitelist ...string) error
- func (o *User) UpdateGP(whitelist ...string)
- func (o *User) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *User) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *User) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *User) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *User) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- func (o *User) UserAuths(exec boil.Executor, mods ...qm.QueryMod) userAuthQuery
- func (o *User) UserAuthsG(mods ...qm.QueryMod) userAuthQuery
- type UserAuth
- func FindUserAuth(exec boil.Executor, userAuthID int, selectCols ...string) (*UserAuth, error)
- func FindUserAuthG(userAuthID int, selectCols ...string) (*UserAuth, error)
- func FindUserAuthGP(userAuthID int, selectCols ...string) *UserAuth
- func FindUserAuthP(exec boil.Executor, userAuthID int, selectCols ...string) *UserAuth
- func (o *UserAuth) Delete(exec boil.Executor) error
- func (o *UserAuth) DeleteG() error
- func (o *UserAuth) DeleteGP()
- func (o *UserAuth) DeleteP(exec boil.Executor)
- func (o *UserAuth) Insert(exec boil.Executor, whitelist ...string) error
- func (o *UserAuth) InsertG(whitelist ...string) error
- func (o *UserAuth) InsertGP(whitelist ...string)
- func (o *UserAuth) InsertP(exec boil.Executor, whitelist ...string)
- func (o *UserAuth) Reload(exec boil.Executor) error
- func (o *UserAuth) ReloadG() error
- func (o *UserAuth) ReloadGP()
- func (o *UserAuth) ReloadP(exec boil.Executor)
- func (o *UserAuth) SetUser(exec boil.Executor, insert bool, related *User) error
- func (o *UserAuth) SetUserG(insert bool, related *User) error
- func (o *UserAuth) SetUserGP(insert bool, related *User)
- func (o *UserAuth) SetUserP(exec boil.Executor, insert bool, related *User)
- func (o *UserAuth) Update(exec boil.Executor, whitelist ...string) error
- func (o *UserAuth) UpdateG(whitelist ...string) error
- func (o *UserAuth) UpdateGP(whitelist ...string)
- func (o *UserAuth) UpdateP(exec boil.Executor, whitelist ...string)
- func (o *UserAuth) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
- func (o *UserAuth) UpsertG(updateColumns []string, whitelist ...string) error
- func (o *UserAuth) UpsertGP(updateColumns []string, whitelist ...string)
- func (o *UserAuth) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
- func (o *UserAuth) User(exec boil.Executor, mods ...qm.QueryMod) userQuery
- func (o *UserAuth) UserG(mods ...qm.QueryMod) userQuery
- type UserAuthSlice
- func (o UserAuthSlice) DeleteAll(exec boil.Executor) error
- func (o UserAuthSlice) DeleteAllG() error
- func (o UserAuthSlice) DeleteAllGP()
- func (o UserAuthSlice) DeleteAllP(exec boil.Executor)
- func (o *UserAuthSlice) ReloadAll(exec boil.Executor) error
- func (o *UserAuthSlice) ReloadAllG() error
- func (o *UserAuthSlice) ReloadAllGP()
- func (o *UserAuthSlice) ReloadAllP(exec boil.Executor)
- func (o UserAuthSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o UserAuthSlice) UpdateAllG(cols M) error
- func (o UserAuthSlice) UpdateAllGP(cols M)
- func (o UserAuthSlice) UpdateAllP(exec boil.Executor, cols M)
- type UserSlice
- func (o UserSlice) DeleteAll(exec boil.Executor) error
- func (o UserSlice) DeleteAllG() error
- func (o UserSlice) DeleteAllGP()
- func (o UserSlice) DeleteAllP(exec boil.Executor)
- func (o *UserSlice) ReloadAll(exec boil.Executor) error
- func (o *UserSlice) ReloadAllG() error
- func (o *UserSlice) ReloadAllGP()
- func (o *UserSlice) ReloadAllP(exec boil.Executor)
- func (o UserSlice) UpdateAll(exec boil.Executor, cols M) error
- func (o UserSlice) UpdateAllG(cols M) error
- func (o UserSlice) UpdateAllGP(cols M)
- func (o UserSlice) UpdateAllP(exec boil.Executor, cols M)
Constants ¶
This section is empty.
Variables ¶
var CategoryColumns = struct { CategoryID string Name string IsVisible string IsActive string ParentID string }{ CategoryID: "category_id", Name: "name", IsVisible: "is_visible", IsActive: "is_active", ParentID: "parent_id", }
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 ProductColumns = struct { ProductID string }{ ProductID: "product_id", }
var ProductVersionColumns = struct { ProductVersionID string ProductID string Name string GTIN string Price string AddedAt string DeletedAt string IsVisible string Quantity string QuantityUnit string }{ ProductVersionID: "product_version_id", ProductID: "product_id", Name: "name", GTIN: "GTIN", Price: "price", AddedAt: "added_at", DeletedAt: "deleted_at", IsVisible: "is_visible", Quantity: "quantity", QuantityUnit: "quantity_unit", }
var StockColumns = struct { StockID string ProductID string UserID string Quantity string AdddedAt string }{ StockID: "stock_id", ProductID: "product_id", UserID: "user_id", Quantity: "quantity", AdddedAt: "addded_at", }
var TableNames = struct { Categories string GorpMigrations string ProductCategoryMap string ProductVersions string Products string Stock string Transactions string UserAuths string Users string }{ Categories: "categories", GorpMigrations: "gorp_migrations", ProductCategoryMap: "product_category_map", ProductVersions: "product_versions", Products: "products", Stock: "stock", Transactions: "transactions", UserAuths: "user_auths", Users: "users", }
var TransactionColumns = struct { TransactionID string UserID string ProductID string Value string Tag string AddedAt string UpdatedAt string }{ TransactionID: "transaction_id", UserID: "user_id", ProductID: "product_id", Value: "value", Tag: "tag", AddedAt: "added_at", UpdatedAt: "updated_at", }
var UserAuthColumns = struct { UserAuthID string UserID string Method string Value string }{ UserAuthID: "user_auth_id", UserID: "user_id", Method: "method", Value: "value", }
Functions ¶
func Categories ¶
Categories retrieves all the records using an executor.
func CategoriesG ¶
CategoriesG retrieves all records.
func CategoryExists ¶
CategoryExists checks if the Category row exists.
func CategoryExistsG ¶
CategoryExistsG checks if the Category row exists.
func CategoryExistsGP ¶
CategoryExistsGP checks if the Category row exists. Panics on error.
func CategoryExistsP ¶
CategoryExistsP checks if the Category row exists. Panics on error.
func ProductExists ¶
ProductExists checks if the Product row exists.
func ProductExistsG ¶
ProductExistsG checks if the Product row exists.
func ProductExistsGP ¶
ProductExistsGP checks if the Product row exists. Panics on error.
func ProductExistsP ¶
ProductExistsP checks if the Product row exists. Panics on error.
func ProductVersionExists ¶
ProductVersionExists checks if the ProductVersion row exists.
func ProductVersionExistsG ¶
ProductVersionExistsG checks if the ProductVersion row exists.
func ProductVersionExistsGP ¶
ProductVersionExistsGP checks if the ProductVersion row exists. Panics on error.
func ProductVersionExistsP ¶
ProductVersionExistsP checks if the ProductVersion row exists. Panics on error.
func ProductVersions ¶
ProductVersions retrieves all the records using an executor.
func ProductVersionsG ¶
ProductVersionsG retrieves all records.
func StockExists ¶
StockExists checks if the Stock row exists.
func StockExistsG ¶
StockExistsG checks if the Stock row exists.
func StockExistsGP ¶
StockExistsGP checks if the Stock row exists. Panics on error.
func StockExistsP ¶
StockExistsP checks if the Stock row exists. Panics on error.
func TransactionExists ¶
TransactionExists checks if the Transaction row exists.
func TransactionExistsG ¶
TransactionExistsG checks if the Transaction row exists.
func TransactionExistsGP ¶
TransactionExistsGP checks if the Transaction row exists. Panics on error.
func TransactionExistsP ¶
TransactionExistsP checks if the Transaction row exists. Panics on error.
func Transactions ¶
Transactions retrieves all the records using an executor.
func TransactionsG ¶
TransactionsG retrieves all records.
func UserAuthExists ¶
UserAuthExists checks if the UserAuth row exists.
func UserAuthExistsG ¶
UserAuthExistsG checks if the UserAuth row exists.
func UserAuthExistsGP ¶
UserAuthExistsGP checks if the UserAuth row exists. Panics on error.
func UserAuthExistsP ¶
UserAuthExistsP checks if the UserAuth row exists. Panics on error.
func UserAuthsG ¶
UserAuthsG retrieves all records.
func UserExists ¶
UserExists checks if the User row exists.
func UserExistsG ¶
UserExistsG checks if the User row exists.
func UserExistsGP ¶
UserExistsGP checks if the User row exists. Panics on error.
func UserExistsP ¶
UserExistsP checks if the User row exists. Panics on error.
Types ¶
type Category ¶
type Category struct { CategoryID int `boil:"category_id" json:"category_id" toml:"category_id" yaml:"category_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` IsVisible string `boil:"is_visible" json:"is_visible" toml:"is_visible" yaml:"is_visible"` IsActive string `boil:"is_active" json:"is_active" toml:"is_active" yaml:"is_active"` ParentID null.Int `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"` R *categoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L categoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Category is an object representing the database table.
func FindCategory ¶
FindCategory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindCategoryG ¶
FindCategoryG retrieves a single record by ID.
func FindCategoryGP ¶
FindCategoryGP retrieves a single record by ID, and panics on error.
func FindCategoryP ¶
FindCategoryP retrieves a single record by ID with an executor, and panics on error.
func (*Category) AddParentCategories ¶
AddParentCategories adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.ParentCategories. Sets related.R.Parent appropriately.
func (*Category) AddParentCategoriesG ¶
AddParentCategoriesG adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.ParentCategories. Sets related.R.Parent appropriately. Uses the global database handle.
func (*Category) AddParentCategoriesGP ¶
AddParentCategoriesGP adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.ParentCategories. Sets related.R.Parent appropriately. Uses the global database handle and panics on error.
func (*Category) AddParentCategoriesP ¶
AddParentCategoriesP adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.ParentCategories. Sets related.R.Parent appropriately. Panics on error.
func (*Category) AddProducts ¶
AddProducts adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.Products. Sets related.R.Categories appropriately.
func (*Category) AddProductsG ¶
AddProductsG adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.Products. Sets related.R.Categories appropriately. Uses the global database handle.
func (*Category) AddProductsGP ¶
AddProductsGP adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.Products. Sets related.R.Categories appropriately. Uses the global database handle and panics on error.
func (*Category) AddProductsP ¶
AddProductsP adds the given related objects to the existing relationships of the category, optionally inserting them as new records. Appends related to o.R.Products. Sets related.R.Categories appropriately. Panics on error.
func (*Category) Delete ¶
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) DeleteG ¶
DeleteG deletes a single Category record. DeleteG will match against the primary key column to find the record to delete.
func (*Category) DeleteGP ¶
func (o *Category) DeleteGP()
DeleteGP deletes a single Category record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*Category) DeleteP ¶
DeleteP deletes a single Category record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*Category) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*Category) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*Category) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*Category) ParentCategories ¶
ParentCategories retrieves all the category's categories with an executor via parent_id column.
func (*Category) ParentCategoriesG ¶
ParentCategoriesG retrieves all the category's categories via parent_id column.
func (*Category) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Category) ReloadGP ¶
func (o *Category) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*Category) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*Category) RemoveParent ¶
RemoveParent relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Category) RemoveParentCategories ¶
RemoveParentCategories relationships from objects passed in. Removes related items from R.ParentCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent.
func (*Category) RemoveParentCategoriesG ¶
RemoveParentCategoriesG relationships from objects passed in. Removes related items from R.ParentCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle.
func (*Category) RemoveParentCategoriesGP ¶
RemoveParentCategoriesGP relationships from objects passed in. Removes related items from R.ParentCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle and panics on error.
func (*Category) RemoveParentCategoriesP ¶
RemoveParentCategoriesP relationships from objects passed in. Removes related items from R.ParentCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Panics on error.
func (*Category) RemoveParentG ¶
RemoveParentG relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*Category) RemoveParentGP ¶
RemoveParentGP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.
func (*Category) RemoveParentP ¶
RemoveParentP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.
func (*Category) RemoveProducts ¶
RemoveProducts relationships from objects passed in. Removes related items from R.Products (uses pointer comparison, removal does not keep order) Sets related.R.Categories.
func (*Category) RemoveProductsG ¶
RemoveProductsG relationships from objects passed in. Removes related items from R.Products (uses pointer comparison, removal does not keep order) Sets related.R.Categories. Uses the global database handle.
func (*Category) RemoveProductsGP ¶
RemoveProductsGP relationships from objects passed in. Removes related items from R.Products (uses pointer comparison, removal does not keep order) Sets related.R.Categories. Uses the global database handle and panics on error.
func (*Category) RemoveProductsP ¶
RemoveProductsP relationships from objects passed in. Removes related items from R.Products (uses pointer comparison, removal does not keep order) Sets related.R.Categories. Panics on error.
func (*Category) SetParent ¶
SetParent of the category to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentCategories.
func (*Category) SetParentCategories ¶
SetParentCategories 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.Parent's ParentCategories accordingly. Replaces o.R.ParentCategories with related. Sets related.R.Parent's ParentCategories accordingly.
func (*Category) SetParentCategoriesG ¶
SetParentCategoriesG 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.Parent's ParentCategories accordingly. Replaces o.R.ParentCategories with related. Sets related.R.Parent's ParentCategories accordingly. Uses the global database handle.
func (*Category) SetParentCategoriesGP ¶
SetParentCategoriesGP 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.Parent's ParentCategories accordingly. Replaces o.R.ParentCategories with related. Sets related.R.Parent's ParentCategories accordingly. Uses the global database handle and panics on error.
func (*Category) SetParentCategoriesP ¶
SetParentCategoriesP 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.Parent's ParentCategories accordingly. Replaces o.R.ParentCategories with related. Sets related.R.Parent's ParentCategories accordingly. Panics on error.
func (*Category) SetParentG ¶
SetParentG of the category to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentCategories. Uses the global database handle.
func (*Category) SetParentGP ¶
SetParentGP of the category to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentCategories. Uses the global database handle and panics on error.
func (*Category) SetParentP ¶
SetParentP of the category to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentCategories. Panics on error.
func (*Category) SetProducts ¶
SetProducts 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 Products accordingly. Replaces o.R.Products with related. Sets related.R.Categories's Products accordingly.
func (*Category) SetProductsG ¶
SetProductsG 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 Products accordingly. Replaces o.R.Products with related. Sets related.R.Categories's Products accordingly. Uses the global database handle.
func (*Category) SetProductsGP ¶
SetProductsGP 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 Products accordingly. Replaces o.R.Products with related. Sets related.R.Categories's Products accordingly. Uses the global database handle and panics on error.
func (*Category) SetProductsP ¶
SetProductsP 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 Products accordingly. Replaces o.R.Products with related. Sets related.R.Categories's Products accordingly. Panics on error.
func (*Category) Update ¶
Update uses an executor to update the Category. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Category) UpdateG ¶
UpdateG a single Category record. See Update for whitelist behavior description.
func (*Category) UpdateGP ¶
UpdateGP a single Category record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*Category) UpdateP ¶
UpdateP uses an executor to update the Category, and panics on error. See Update for whitelist behavior description.
func (*Category) Upsert ¶
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
type CategorySlice ¶
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 ¶
func (o CategorySlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (CategorySlice) DeleteAllG ¶
func (o CategorySlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (CategorySlice) DeleteAllGP ¶
func (o CategorySlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (CategorySlice) DeleteAllP ¶
func (o CategorySlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*CategorySlice) ReloadAll ¶
func (o *CategorySlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*CategorySlice) ReloadAllG ¶
func (o *CategorySlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*CategorySlice) ReloadAllGP ¶
func (o *CategorySlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*CategorySlice) ReloadAllP ¶
func (o *CategorySlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (CategorySlice) UpdateAll ¶
func (o CategorySlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (CategorySlice) UpdateAllG ¶
func (o CategorySlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (CategorySlice) UpdateAllGP ¶
func (o CategorySlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (CategorySlice) UpdateAllP ¶
func (o CategorySlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Product ¶
type Product struct { ProductID int `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` R *productR `boil:"-" json:"-" toml:"-" yaml:"-"` L productL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Product is an object representing the database table.
func FindProduct ¶
FindProduct retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindProductG ¶
FindProductG retrieves a single record by ID.
func FindProductGP ¶
FindProductGP retrieves a single record by ID, and panics on error.
func FindProductP ¶
FindProductP retrieves a single record by ID with an executor, and panics on error.
func (*Product) AddCategories ¶
AddCategories adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Categories. Sets related.R.Products appropriately.
func (*Product) AddCategoriesG ¶
AddCategoriesG adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Categories. Sets related.R.Products appropriately. Uses the global database handle.
func (*Product) AddCategoriesGP ¶
AddCategoriesGP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Categories. Sets related.R.Products appropriately. Uses the global database handle and panics on error.
func (*Product) AddCategoriesP ¶
AddCategoriesP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Categories. Sets related.R.Products appropriately. Panics on error.
func (*Product) AddProductVersions ¶
func (o *Product) AddProductVersions(exec boil.Executor, insert bool, related ...*ProductVersion) error
AddProductVersions adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductVersions. Sets related.R.Product appropriately.
func (*Product) AddProductVersionsG ¶
func (o *Product) AddProductVersionsG(insert bool, related ...*ProductVersion) error
AddProductVersionsG adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductVersions. Sets related.R.Product appropriately. Uses the global database handle.
func (*Product) AddProductVersionsGP ¶
func (o *Product) AddProductVersionsGP(insert bool, related ...*ProductVersion)
AddProductVersionsGP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductVersions. Sets related.R.Product appropriately. Uses the global database handle and panics on error.
func (*Product) AddProductVersionsP ¶
func (o *Product) AddProductVersionsP(exec boil.Executor, insert bool, related ...*ProductVersion)
AddProductVersionsP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.ProductVersions. Sets related.R.Product appropriately. Panics on error.
func (*Product) AddStocks ¶
AddStocks adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Product appropriately.
func (*Product) AddStocksG ¶
AddStocksG adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Product appropriately. Uses the global database handle.
func (*Product) AddStocksGP ¶
AddStocksGP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Product appropriately. Uses the global database handle and panics on error.
func (*Product) AddStocksP ¶
AddStocksP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.Product appropriately. Panics on error.
func (*Product) AddTransactions ¶
AddTransactions adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.Product appropriately.
func (*Product) AddTransactionsG ¶
func (o *Product) AddTransactionsG(insert bool, related ...*Transaction) error
AddTransactionsG adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.Product appropriately. Uses the global database handle.
func (*Product) AddTransactionsGP ¶
func (o *Product) AddTransactionsGP(insert bool, related ...*Transaction)
AddTransactionsGP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.Product appropriately. Uses the global database handle and panics on error.
func (*Product) AddTransactionsP ¶
func (o *Product) AddTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
AddTransactionsP adds the given related objects to the existing relationships of the product, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.Product appropriately. Panics on error.
func (*Product) Categories ¶
Categories retrieves all the category's categories with an executor.
func (*Product) CategoriesG ¶
CategoriesG retrieves all the category's categories.
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) DeleteG ¶
DeleteG deletes a single Product record. DeleteG will match against the primary key column to find the record to delete.
func (*Product) DeleteGP ¶
func (o *Product) DeleteGP()
DeleteGP deletes a single Product record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*Product) DeleteP ¶
DeleteP deletes a single Product record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*Product) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*Product) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*Product) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*Product) ProductVersions ¶
ProductVersions retrieves all the product_version's product versions with an executor.
func (*Product) ProductVersionsG ¶
ProductVersionsG retrieves all the product_version's product versions.
func (*Product) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Product) ReloadGP ¶
func (o *Product) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*Product) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*Product) RemoveCategories ¶
RemoveCategories relationships from objects passed in. Removes related items from R.Categories (uses pointer comparison, removal does not keep order) Sets related.R.Products.
func (*Product) RemoveCategoriesG ¶
RemoveCategoriesG relationships from objects passed in. Removes related items from R.Categories (uses pointer comparison, removal does not keep order) Sets related.R.Products. Uses the global database handle.
func (*Product) RemoveCategoriesGP ¶
RemoveCategoriesGP relationships from objects passed in. Removes related items from R.Categories (uses pointer comparison, removal does not keep order) Sets related.R.Products. Uses the global database handle and panics on error.
func (*Product) RemoveCategoriesP ¶
RemoveCategoriesP relationships from objects passed in. Removes related items from R.Categories (uses pointer comparison, removal does not keep order) Sets related.R.Products. Panics on error.
func (*Product) RemoveTransactions ¶
func (o *Product) RemoveTransactions(exec boil.Executor, related ...*Transaction) error
RemoveTransactions relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.Product.
func (*Product) RemoveTransactionsG ¶
func (o *Product) RemoveTransactionsG(related ...*Transaction) error
RemoveTransactionsG relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.Product. Uses the global database handle.
func (*Product) RemoveTransactionsGP ¶
func (o *Product) RemoveTransactionsGP(related ...*Transaction)
RemoveTransactionsGP relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.Product. Uses the global database handle and panics on error.
func (*Product) RemoveTransactionsP ¶
func (o *Product) RemoveTransactionsP(exec boil.Executor, related ...*Transaction)
RemoveTransactionsP relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.Product. Panics on error.
func (*Product) SetCategories ¶
SetCategories 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 Categories accordingly. Replaces o.R.Categories with related. Sets related.R.Products's Categories accordingly.
func (*Product) SetCategoriesG ¶
SetCategoriesG 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 Categories accordingly. Replaces o.R.Categories with related. Sets related.R.Products's Categories accordingly. Uses the global database handle.
func (*Product) SetCategoriesGP ¶
SetCategoriesGP 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 Categories accordingly. Replaces o.R.Categories with related. Sets related.R.Products's Categories accordingly. Uses the global database handle and panics on error.
func (*Product) SetCategoriesP ¶
SetCategoriesP 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 Categories accordingly. Replaces o.R.Categories with related. Sets related.R.Products's Categories accordingly. Panics on error.
func (*Product) SetTransactions ¶
SetTransactions 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 Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.Product's Transactions accordingly.
func (*Product) SetTransactionsG ¶
func (o *Product) SetTransactionsG(insert bool, related ...*Transaction) error
SetTransactionsG 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 Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.Product's Transactions accordingly. Uses the global database handle.
func (*Product) SetTransactionsGP ¶
func (o *Product) SetTransactionsGP(insert bool, related ...*Transaction)
SetTransactionsGP 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 Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.Product's Transactions accordingly. Uses the global database handle and panics on error.
func (*Product) SetTransactionsP ¶
func (o *Product) SetTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
SetTransactionsP 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 Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.Product's Transactions accordingly. Panics on error.
func (*Product) Transactions ¶
Transactions retrieves all the transaction's transactions with an executor.
func (*Product) TransactionsG ¶
TransactionsG retrieves all the transaction's transactions.
func (*Product) Update ¶
Update uses an executor to update the Product. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Product) UpdateG ¶
UpdateG a single Product record. See Update for whitelist behavior description.
func (*Product) UpdateGP ¶
UpdateGP a single Product record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*Product) UpdateP ¶
UpdateP uses an executor to update the Product, and panics on error. See Update for whitelist behavior description.
func (*Product) Upsert ¶
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
type ProductSlice ¶
type ProductSlice []*Product
ProductSlice is an alias for a slice of pointers to Product. This should generally be used opposed to []Product.
func (ProductSlice) DeleteAll ¶
func (o ProductSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (ProductSlice) DeleteAllG ¶
func (o ProductSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (ProductSlice) DeleteAllGP ¶
func (o ProductSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (ProductSlice) DeleteAllP ¶
func (o ProductSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*ProductSlice) ReloadAll ¶
func (o *ProductSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ProductSlice) ReloadAllG ¶
func (o *ProductSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ProductSlice) ReloadAllGP ¶
func (o *ProductSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*ProductSlice) ReloadAllP ¶
func (o *ProductSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (ProductSlice) UpdateAll ¶
func (o ProductSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (ProductSlice) UpdateAllG ¶
func (o ProductSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (ProductSlice) UpdateAllGP ¶
func (o ProductSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (ProductSlice) UpdateAllP ¶
func (o ProductSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type ProductVersion ¶
type ProductVersion struct { ProductVersionID int `boil:"product_version_id" json:"product_version_id" toml:"product_version_id" yaml:"product_version_id"` ProductID int `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` GTIN null.String `boil:"GTIN" json:"GTIN,omitempty" toml:"GTIN" yaml:"GTIN,omitempty"` Price string `boil:"price" json:"price" toml:"price" yaml:"price"` AddedAt time.Time `boil:"added_at" json:"added_at" toml:"added_at" yaml:"added_at"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` IsVisible string `boil:"is_visible" json:"is_visible" toml:"is_visible" yaml:"is_visible"` Quantity null.String `boil:"quantity" json:"quantity,omitempty" toml:"quantity" yaml:"quantity,omitempty"` QuantityUnit null.String `boil:"quantity_unit" json:"quantity_unit,omitempty" toml:"quantity_unit" yaml:"quantity_unit,omitempty"` R *productVersionR `boil:"-" json:"-" toml:"-" yaml:"-"` L productVersionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProductVersion is an object representing the database table.
func FindProductVersion ¶
func FindProductVersion(exec boil.Executor, productVersionID int, selectCols ...string) (*ProductVersion, error)
FindProductVersion retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindProductVersionG ¶
func FindProductVersionG(productVersionID int, selectCols ...string) (*ProductVersion, error)
FindProductVersionG retrieves a single record by ID.
func FindProductVersionGP ¶
func FindProductVersionGP(productVersionID int, selectCols ...string) *ProductVersion
FindProductVersionGP retrieves a single record by ID, and panics on error.
func FindProductVersionP ¶
func FindProductVersionP(exec boil.Executor, productVersionID int, selectCols ...string) *ProductVersion
FindProductVersionP retrieves a single record by ID with an executor, and panics on error.
func (*ProductVersion) Delete ¶
func (o *ProductVersion) Delete(exec boil.Executor) error
Delete deletes a single ProductVersion record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProductVersion) DeleteG ¶
func (o *ProductVersion) DeleteG() error
DeleteG deletes a single ProductVersion record. DeleteG will match against the primary key column to find the record to delete.
func (*ProductVersion) DeleteGP ¶
func (o *ProductVersion) DeleteGP()
DeleteGP deletes a single ProductVersion record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*ProductVersion) DeleteP ¶
func (o *ProductVersion) DeleteP(exec boil.Executor)
DeleteP deletes a single ProductVersion record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*ProductVersion) Insert ¶
func (o *ProductVersion) Insert(exec boil.Executor, whitelist ...string) error
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*ProductVersion) InsertG ¶
func (o *ProductVersion) InsertG(whitelist ...string) error
InsertG a single record. See Insert for whitelist behavior description.
func (*ProductVersion) InsertGP ¶
func (o *ProductVersion) InsertGP(whitelist ...string)
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*ProductVersion) InsertP ¶
func (o *ProductVersion) InsertP(exec boil.Executor, whitelist ...string)
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*ProductVersion) Product ¶
func (o *ProductVersion) Product(exec boil.Executor, mods ...qm.QueryMod) productQuery
Product pointed to by the foreign key.
func (*ProductVersion) ProductG ¶
func (o *ProductVersion) ProductG(mods ...qm.QueryMod) productQuery
ProductG pointed to by the foreign key.
func (*ProductVersion) Reload ¶
func (o *ProductVersion) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProductVersion) ReloadG ¶
func (o *ProductVersion) ReloadG() error
ReloadG refetches the object from the database using the primary keys.
func (*ProductVersion) ReloadGP ¶
func (o *ProductVersion) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*ProductVersion) ReloadP ¶
func (o *ProductVersion) ReloadP(exec boil.Executor)
ReloadP refetches the object from the database with an executor. Panics on error.
func (*ProductVersion) SetProduct ¶
SetProduct of the product_version to the related item. Sets o.R.Product to related. Adds o to related.R.ProductVersions.
func (*ProductVersion) SetProductG ¶
func (o *ProductVersion) SetProductG(insert bool, related *Product) error
SetProductG of the product_version to the related item. Sets o.R.Product to related. Adds o to related.R.ProductVersions. Uses the global database handle.
func (*ProductVersion) SetProductGP ¶
func (o *ProductVersion) SetProductGP(insert bool, related *Product)
SetProductGP of the product_version to the related item. Sets o.R.Product to related. Adds o to related.R.ProductVersions. Uses the global database handle and panics on error.
func (*ProductVersion) SetProductP ¶
func (o *ProductVersion) SetProductP(exec boil.Executor, insert bool, related *Product)
SetProductP of the product_version to the related item. Sets o.R.Product to related. Adds o to related.R.ProductVersions. Panics on error.
func (*ProductVersion) Update ¶
func (o *ProductVersion) Update(exec boil.Executor, whitelist ...string) error
Update uses an executor to update the ProductVersion. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*ProductVersion) UpdateG ¶
func (o *ProductVersion) UpdateG(whitelist ...string) error
UpdateG a single ProductVersion record. See Update for whitelist behavior description.
func (*ProductVersion) UpdateGP ¶
func (o *ProductVersion) UpdateGP(whitelist ...string)
UpdateGP a single ProductVersion record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*ProductVersion) UpdateP ¶
func (o *ProductVersion) UpdateP(exec boil.Executor, whitelist ...string)
UpdateP uses an executor to update the ProductVersion, and panics on error. See Update for whitelist behavior description.
func (*ProductVersion) Upsert ¶
func (o *ProductVersion) Upsert(exec boil.Executor, updateColumns []string, whitelist ...string) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*ProductVersion) UpsertG ¶
func (o *ProductVersion) UpsertG(updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
func (*ProductVersion) UpsertGP ¶
func (o *ProductVersion) UpsertGP(updateColumns []string, whitelist ...string)
UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.
type ProductVersionSlice ¶
type ProductVersionSlice []*ProductVersion
ProductVersionSlice is an alias for a slice of pointers to ProductVersion. This should generally be used opposed to []ProductVersion.
func (ProductVersionSlice) DeleteAll ¶
func (o ProductVersionSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (ProductVersionSlice) DeleteAllG ¶
func (o ProductVersionSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (ProductVersionSlice) DeleteAllGP ¶
func (o ProductVersionSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (ProductVersionSlice) DeleteAllP ¶
func (o ProductVersionSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*ProductVersionSlice) ReloadAll ¶
func (o *ProductVersionSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ProductVersionSlice) ReloadAllG ¶
func (o *ProductVersionSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*ProductVersionSlice) ReloadAllGP ¶
func (o *ProductVersionSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*ProductVersionSlice) ReloadAllP ¶
func (o *ProductVersionSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (ProductVersionSlice) UpdateAll ¶
func (o ProductVersionSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (ProductVersionSlice) UpdateAllG ¶
func (o ProductVersionSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (ProductVersionSlice) UpdateAllGP ¶
func (o ProductVersionSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (ProductVersionSlice) UpdateAllP ¶
func (o ProductVersionSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type Stock ¶
type Stock struct { StockID int `boil:"stock_id" json:"stock_id" toml:"stock_id" yaml:"stock_id"` ProductID int `boil:"product_id" json:"product_id" toml:"product_id" yaml:"product_id"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` Quantity int `boil:"quantity" json:"quantity" toml:"quantity" yaml:"quantity"` AdddedAt time.Time `boil:"addded_at" json:"addded_at" toml:"addded_at" yaml:"addded_at"` R *stockR `boil:"-" json:"-" toml:"-" yaml:"-"` L stockL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Stock is an object representing the database table.
func FindStock ¶
FindStock retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindStockG ¶
FindStockG retrieves a single record by ID.
func FindStockGP ¶
FindStockGP retrieves a single record by ID, and panics on error.
func FindStockP ¶
FindStockP retrieves a single record by ID with an executor, and panics on error.
func (*Stock) Delete ¶
Delete deletes a single Stock record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Stock) DeleteG ¶
DeleteG deletes a single Stock record. DeleteG will match against the primary key column to find the record to delete.
func (*Stock) DeleteGP ¶
func (o *Stock) DeleteGP()
DeleteGP deletes a single Stock record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*Stock) DeleteP ¶
DeleteP deletes a single Stock record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*Stock) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*Stock) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*Stock) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*Stock) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Stock) ReloadGP ¶
func (o *Stock) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*Stock) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*Stock) RemoveUser ¶
RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Stock) RemoveUserG ¶
RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*Stock) RemoveUserGP ¶
RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.
func (*Stock) RemoveUserP ¶
RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.
func (*Stock) SetProduct ¶
SetProduct of the stock to the related item. Sets o.R.Product to related. Adds o to related.R.Stocks.
func (*Stock) SetProductG ¶
SetProductG of the stock to the related item. Sets o.R.Product to related. Adds o to related.R.Stocks. Uses the global database handle.
func (*Stock) SetProductGP ¶
SetProductGP of the stock to the related item. Sets o.R.Product to related. Adds o to related.R.Stocks. Uses the global database handle and panics on error.
func (*Stock) SetProductP ¶
SetProductP of the stock to the related item. Sets o.R.Product to related. Adds o to related.R.Stocks. Panics on error.
func (*Stock) SetUser ¶
SetUser of the stock to the related item. Sets o.R.User to related. Adds o to related.R.Stocks.
func (*Stock) SetUserG ¶
SetUserG of the stock to the related item. Sets o.R.User to related. Adds o to related.R.Stocks. Uses the global database handle.
func (*Stock) SetUserGP ¶
SetUserGP of the stock to the related item. Sets o.R.User to related. Adds o to related.R.Stocks. Uses the global database handle and panics on error.
func (*Stock) SetUserP ¶
SetUserP of the stock to the related item. Sets o.R.User to related. Adds o to related.R.Stocks. Panics on error.
func (*Stock) Update ¶
Update uses an executor to update the Stock. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Stock) UpdateG ¶
UpdateG a single Stock record. See Update for whitelist behavior description.
func (*Stock) UpdateGP ¶
UpdateGP a single Stock record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*Stock) UpdateP ¶
UpdateP uses an executor to update the Stock, and panics on error. See Update for whitelist behavior description.
func (*Stock) Upsert ¶
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*Stock) UpsertGP ¶
UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.
func (*Stock) UpsertP ¶
UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.
type StockSlice ¶
type StockSlice []*Stock
StockSlice is an alias for a slice of pointers to Stock. This should generally be used opposed to []Stock.
func (StockSlice) DeleteAll ¶
func (o StockSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (StockSlice) DeleteAllG ¶
func (o StockSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (StockSlice) DeleteAllGP ¶
func (o StockSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (StockSlice) DeleteAllP ¶
func (o StockSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*StockSlice) ReloadAll ¶
func (o *StockSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*StockSlice) ReloadAllG ¶
func (o *StockSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*StockSlice) ReloadAllGP ¶
func (o *StockSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*StockSlice) ReloadAllP ¶
func (o *StockSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (StockSlice) UpdateAll ¶
func (o StockSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (StockSlice) UpdateAllG ¶
func (o StockSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (StockSlice) UpdateAllGP ¶
func (o StockSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (StockSlice) UpdateAllP ¶
func (o StockSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type Transaction ¶
type Transaction struct { TransactionID int `boil:"transaction_id" json:"transaction_id" toml:"transaction_id" yaml:"transaction_id"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` ProductID null.Int `boil:"product_id" json:"product_id,omitempty" toml:"product_id" yaml:"product_id,omitempty"` Value string `boil:"value" json:"value" toml:"value" yaml:"value"` Tag null.String `boil:"tag" json:"tag,omitempty" toml:"tag" yaml:"tag,omitempty"` AddedAt time.Time `boil:"added_at" json:"added_at" toml:"added_at" yaml:"added_at"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` R *transactionR `boil:"-" json:"-" toml:"-" yaml:"-"` L transactionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Transaction is an object representing the database table.
func FindTransaction ¶
func FindTransaction(exec boil.Executor, transactionID int, selectCols ...string) (*Transaction, error)
FindTransaction retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindTransactionG ¶
func FindTransactionG(transactionID int, selectCols ...string) (*Transaction, error)
FindTransactionG retrieves a single record by ID.
func FindTransactionGP ¶
func FindTransactionGP(transactionID int, selectCols ...string) *Transaction
FindTransactionGP retrieves a single record by ID, and panics on error.
func FindTransactionP ¶
func FindTransactionP(exec boil.Executor, transactionID int, selectCols ...string) *Transaction
FindTransactionP retrieves a single record by ID with an executor, and panics on error.
func (*Transaction) Delete ¶
func (o *Transaction) Delete(exec boil.Executor) error
Delete deletes a single Transaction record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Transaction) DeleteG ¶
func (o *Transaction) DeleteG() error
DeleteG deletes a single Transaction record. DeleteG will match against the primary key column to find the record to delete.
func (*Transaction) DeleteGP ¶
func (o *Transaction) DeleteGP()
DeleteGP deletes a single Transaction record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*Transaction) DeleteP ¶
func (o *Transaction) DeleteP(exec boil.Executor)
DeleteP deletes a single Transaction record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*Transaction) Insert ¶
func (o *Transaction) Insert(exec boil.Executor, whitelist ...string) error
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*Transaction) InsertG ¶
func (o *Transaction) InsertG(whitelist ...string) error
InsertG a single record. See Insert for whitelist behavior description.
func (*Transaction) InsertGP ¶
func (o *Transaction) InsertGP(whitelist ...string)
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*Transaction) InsertP ¶
func (o *Transaction) InsertP(exec boil.Executor, whitelist ...string)
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*Transaction) Product ¶
func (o *Transaction) Product(exec boil.Executor, mods ...qm.QueryMod) productQuery
Product pointed to by the foreign key.
func (*Transaction) ProductG ¶
func (o *Transaction) ProductG(mods ...qm.QueryMod) productQuery
ProductG pointed to by the foreign key.
func (*Transaction) Reload ¶
func (o *Transaction) Reload(exec boil.Executor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Transaction) ReloadG ¶
func (o *Transaction) ReloadG() error
ReloadG refetches the object from the database using the primary keys.
func (*Transaction) ReloadGP ¶
func (o *Transaction) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*Transaction) ReloadP ¶
func (o *Transaction) ReloadP(exec boil.Executor)
ReloadP refetches the object from the database with an executor. Panics on error.
func (*Transaction) RemoveProduct ¶
func (o *Transaction) RemoveProduct(exec boil.Executor, related *Product) error
RemoveProduct relationship. Sets o.R.Product to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Transaction) RemoveProductG ¶
func (o *Transaction) RemoveProductG(related *Product) error
RemoveProductG relationship. Sets o.R.Product to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*Transaction) RemoveProductGP ¶
func (o *Transaction) RemoveProductGP(related *Product)
RemoveProductGP relationship. Sets o.R.Product to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.
func (*Transaction) RemoveProductP ¶
func (o *Transaction) RemoveProductP(exec boil.Executor, related *Product)
RemoveProductP relationship. Sets o.R.Product to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.
func (*Transaction) RemoveUser ¶
func (o *Transaction) RemoveUser(exec boil.Executor, related *User) error
RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).
func (*Transaction) RemoveUserG ¶
func (o *Transaction) RemoveUserG(related *User) error
RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.
func (*Transaction) RemoveUserGP ¶
func (o *Transaction) RemoveUserGP(related *User)
RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.
func (*Transaction) RemoveUserP ¶
func (o *Transaction) RemoveUserP(exec boil.Executor, related *User)
RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.
func (*Transaction) SetProduct ¶
SetProduct of the transaction to the related item. Sets o.R.Product to related. Adds o to related.R.Transactions.
func (*Transaction) SetProductG ¶
func (o *Transaction) SetProductG(insert bool, related *Product) error
SetProductG of the transaction to the related item. Sets o.R.Product to related. Adds o to related.R.Transactions. Uses the global database handle.
func (*Transaction) SetProductGP ¶
func (o *Transaction) SetProductGP(insert bool, related *Product)
SetProductGP of the transaction to the related item. Sets o.R.Product to related. Adds o to related.R.Transactions. Uses the global database handle and panics on error.
func (*Transaction) SetProductP ¶
func (o *Transaction) SetProductP(exec boil.Executor, insert bool, related *Product)
SetProductP of the transaction to the related item. Sets o.R.Product to related. Adds o to related.R.Transactions. Panics on error.
func (*Transaction) SetUser ¶
SetUser of the transaction to the related item. Sets o.R.User to related. Adds o to related.R.Transactions.
func (*Transaction) SetUserG ¶
func (o *Transaction) SetUserG(insert bool, related *User) error
SetUserG of the transaction to the related item. Sets o.R.User to related. Adds o to related.R.Transactions. Uses the global database handle.
func (*Transaction) SetUserGP ¶
func (o *Transaction) SetUserGP(insert bool, related *User)
SetUserGP of the transaction to the related item. Sets o.R.User to related. Adds o to related.R.Transactions. Uses the global database handle and panics on error.
func (*Transaction) SetUserP ¶
func (o *Transaction) SetUserP(exec boil.Executor, insert bool, related *User)
SetUserP of the transaction to the related item. Sets o.R.User to related. Adds o to related.R.Transactions. Panics on error.
func (*Transaction) Update ¶
func (o *Transaction) Update(exec boil.Executor, whitelist ...string) error
Update uses an executor to update the Transaction. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Transaction) UpdateG ¶
func (o *Transaction) UpdateG(whitelist ...string) error
UpdateG a single Transaction record. See Update for whitelist behavior description.
func (*Transaction) UpdateGP ¶
func (o *Transaction) UpdateGP(whitelist ...string)
UpdateGP a single Transaction record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*Transaction) UpdateP ¶
func (o *Transaction) UpdateP(exec boil.Executor, whitelist ...string)
UpdateP uses an executor to update the Transaction, and panics on error. See Update for whitelist behavior description.
func (*Transaction) Upsert ¶
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*Transaction) UpsertG ¶
func (o *Transaction) UpsertG(updateColumns []string, whitelist ...string) error
UpsertG attempts an insert, and does an update or ignore on conflict.
func (*Transaction) UpsertGP ¶
func (o *Transaction) UpsertGP(updateColumns []string, whitelist ...string)
UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.
func (*Transaction) UpsertP ¶
func (o *Transaction) UpsertP(exec boil.Executor, updateColumns []string, whitelist ...string)
UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.
func (*Transaction) User ¶
func (o *Transaction) User(exec boil.Executor, mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
func (*Transaction) UserG ¶
func (o *Transaction) UserG(mods ...qm.QueryMod) userQuery
UserG pointed to by the foreign key.
type TransactionSlice ¶
type TransactionSlice []*Transaction
TransactionSlice is an alias for a slice of pointers to Transaction. This should generally be used opposed to []Transaction.
func (TransactionSlice) DeleteAll ¶
func (o TransactionSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (TransactionSlice) DeleteAllG ¶
func (o TransactionSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (TransactionSlice) DeleteAllGP ¶
func (o TransactionSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (TransactionSlice) DeleteAllP ¶
func (o TransactionSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*TransactionSlice) ReloadAll ¶
func (o *TransactionSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*TransactionSlice) ReloadAllG ¶
func (o *TransactionSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*TransactionSlice) ReloadAllGP ¶
func (o *TransactionSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*TransactionSlice) ReloadAllP ¶
func (o *TransactionSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (TransactionSlice) UpdateAll ¶
func (o TransactionSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (TransactionSlice) UpdateAllG ¶
func (o TransactionSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (TransactionSlice) UpdateAllGP ¶
func (o TransactionSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (TransactionSlice) UpdateAllP ¶
func (o TransactionSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type User ¶
type User struct { UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Email null.String `boil:"email" json:"email,omitempty" toml:"email" yaml:"email,omitempty"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt null.Time `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"` IsBlocked string `boil:"is_blocked" json:"is_blocked" toml:"is_blocked" yaml:"is_blocked"` IsAdmin string `boil:"is_admin" json:"is_admin" toml:"is_admin" yaml:"is_admin"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindUserGP ¶
FindUserGP retrieves a single record by ID, and panics on error.
func (*User) AddStocks ¶
AddStocks adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.User appropriately.
func (*User) AddStocksG ¶
AddStocksG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.User appropriately. Uses the global database handle.
func (*User) AddStocksGP ¶
AddStocksGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.User appropriately. Uses the global database handle and panics on error.
func (*User) AddStocksP ¶
AddStocksP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Stocks. Sets related.R.User appropriately. Panics on error.
func (*User) AddTransactions ¶
AddTransactions adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.User appropriately.
func (*User) AddTransactionsG ¶
func (o *User) AddTransactionsG(insert bool, related ...*Transaction) error
AddTransactionsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.User appropriately. Uses the global database handle.
func (*User) AddTransactionsGP ¶
func (o *User) AddTransactionsGP(insert bool, related ...*Transaction)
AddTransactionsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.User appropriately. Uses the global database handle and panics on error.
func (*User) AddTransactionsP ¶
func (o *User) AddTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
AddTransactionsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Transactions. Sets related.R.User appropriately. Panics on error.
func (*User) AddUserAuths ¶
AddUserAuths adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserAuths. Sets related.R.User appropriately.
func (*User) AddUserAuthsG ¶
AddUserAuthsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserAuths. Sets related.R.User appropriately. Uses the global database handle.
func (*User) AddUserAuthsGP ¶
AddUserAuthsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserAuths. Sets related.R.User appropriately. Uses the global database handle and panics on error.
func (*User) AddUserAuthsP ¶
AddUserAuthsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserAuths. Sets related.R.User appropriately. Panics on error.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) DeleteG ¶
DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.
func (*User) DeleteGP ¶
func (o *User) DeleteGP()
DeleteGP deletes a single User record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*User) DeleteP ¶
DeleteP deletes a single User record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*User) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*User) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*User) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) ReloadGP ¶
func (o *User) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*User) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*User) RemoveStocks ¶
RemoveStocks relationships from objects passed in. Removes related items from R.Stocks (uses pointer comparison, removal does not keep order) Sets related.R.User.
func (*User) RemoveStocksG ¶
RemoveStocksG relationships from objects passed in. Removes related items from R.Stocks (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.
func (*User) RemoveStocksGP ¶
RemoveStocksGP relationships from objects passed in. Removes related items from R.Stocks (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.
func (*User) RemoveStocksP ¶
RemoveStocksP relationships from objects passed in. Removes related items from R.Stocks (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.
func (*User) RemoveTransactions ¶
func (o *User) RemoveTransactions(exec boil.Executor, related ...*Transaction) error
RemoveTransactions relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.User.
func (*User) RemoveTransactionsG ¶
func (o *User) RemoveTransactionsG(related ...*Transaction) error
RemoveTransactionsG relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.
func (*User) RemoveTransactionsGP ¶
func (o *User) RemoveTransactionsGP(related ...*Transaction)
RemoveTransactionsGP relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.
func (*User) RemoveTransactionsP ¶
func (o *User) RemoveTransactionsP(exec boil.Executor, related ...*Transaction)
RemoveTransactionsP relationships from objects passed in. Removes related items from R.Transactions (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.
func (*User) SetStocks ¶
SetStocks removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Stocks accordingly. Replaces o.R.Stocks with related. Sets related.R.User's Stocks accordingly.
func (*User) SetStocksG ¶
SetStocksG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Stocks accordingly. Replaces o.R.Stocks with related. Sets related.R.User's Stocks accordingly. Uses the global database handle.
func (*User) SetStocksGP ¶
SetStocksGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Stocks accordingly. Replaces o.R.Stocks with related. Sets related.R.User's Stocks accordingly. Uses the global database handle and panics on error.
func (*User) SetStocksP ¶
SetStocksP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Stocks accordingly. Replaces o.R.Stocks with related. Sets related.R.User's Stocks accordingly. Panics on error.
func (*User) SetTransactions ¶
SetTransactions removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.User's Transactions accordingly.
func (*User) SetTransactionsG ¶
func (o *User) SetTransactionsG(insert bool, related ...*Transaction) error
SetTransactionsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.User's Transactions accordingly. Uses the global database handle.
func (*User) SetTransactionsGP ¶
func (o *User) SetTransactionsGP(insert bool, related ...*Transaction)
SetTransactionsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.User's Transactions accordingly. Uses the global database handle and panics on error.
func (*User) SetTransactionsP ¶
func (o *User) SetTransactionsP(exec boil.Executor, insert bool, related ...*Transaction)
SetTransactionsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Transactions accordingly. Replaces o.R.Transactions with related. Sets related.R.User's Transactions accordingly. Panics on error.
func (*User) Transactions ¶
Transactions retrieves all the transaction's transactions with an executor.
func (*User) TransactionsG ¶
TransactionsG retrieves all the transaction's transactions.
func (*User) Update ¶
Update uses an executor to update the User. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) UpdateGP ¶
UpdateGP a single User record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*User) UpdateP ¶
UpdateP uses an executor to update the User, and panics on error. See Update for whitelist behavior description.
func (*User) Upsert ¶
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*User) UpsertGP ¶
UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.
func (*User) UpsertP ¶
UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.
func (*User) UserAuthsG ¶
UserAuthsG retrieves all the user_auth's user auths.
type UserAuth ¶
type UserAuth struct { UserAuthID int `boil:"user_auth_id" json:"user_auth_id" toml:"user_auth_id" yaml:"user_auth_id"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Method string `boil:"method" json:"method" toml:"method" yaml:"method"` Value null.Bytes `boil:"value" json:"value,omitempty" toml:"value" yaml:"value,omitempty"` R *userAuthR `boil:"-" json:"-" toml:"-" yaml:"-"` L userAuthL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserAuth is an object representing the database table.
func FindUserAuth ¶
FindUserAuth retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindUserAuthG ¶
FindUserAuthG retrieves a single record by ID.
func FindUserAuthGP ¶
FindUserAuthGP retrieves a single record by ID, and panics on error.
func FindUserAuthP ¶
FindUserAuthP retrieves a single record by ID with an executor, and panics on error.
func (*UserAuth) Delete ¶
Delete deletes a single UserAuth record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserAuth) DeleteG ¶
DeleteG deletes a single UserAuth record. DeleteG will match against the primary key column to find the record to delete.
func (*UserAuth) DeleteGP ¶
func (o *UserAuth) DeleteGP()
DeleteGP deletes a single UserAuth record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.
func (*UserAuth) DeleteP ¶
DeleteP deletes a single UserAuth record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.
func (*UserAuth) Insert ¶
Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)
func (*UserAuth) InsertGP ¶
InsertGP a single record, and panics on error. See Insert for whitelist behavior description.
func (*UserAuth) InsertP ¶
InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.
func (*UserAuth) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*UserAuth) ReloadGP ¶
func (o *UserAuth) ReloadGP()
ReloadGP refetches the object from the database and panics on error.
func (*UserAuth) ReloadP ¶
ReloadP refetches the object from the database with an executor. Panics on error.
func (*UserAuth) SetUser ¶
SetUser of the user_auth to the related item. Sets o.R.User to related. Adds o to related.R.UserAuths.
func (*UserAuth) SetUserG ¶
SetUserG of the user_auth to the related item. Sets o.R.User to related. Adds o to related.R.UserAuths. Uses the global database handle.
func (*UserAuth) SetUserGP ¶
SetUserGP of the user_auth to the related item. Sets o.R.User to related. Adds o to related.R.UserAuths. Uses the global database handle and panics on error.
func (*UserAuth) SetUserP ¶
SetUserP of the user_auth to the related item. Sets o.R.User to related. Adds o to related.R.UserAuths. Panics on error.
func (*UserAuth) Update ¶
Update uses an executor to update the UserAuth. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*UserAuth) UpdateG ¶
UpdateG a single UserAuth record. See Update for whitelist behavior description.
func (*UserAuth) UpdateGP ¶
UpdateGP a single UserAuth record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.
func (*UserAuth) UpdateP ¶
UpdateP uses an executor to update the UserAuth, and panics on error. See Update for whitelist behavior description.
func (*UserAuth) Upsert ¶
Upsert attempts an insert using an executor, and does an update or ignore on conflict.
func (*UserAuth) UpsertGP ¶
UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.
func (*UserAuth) UpsertP ¶
UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.
type UserAuthSlice ¶
type UserAuthSlice []*UserAuth
UserAuthSlice is an alias for a slice of pointers to UserAuth. This should generally be used opposed to []UserAuth.
func (UserAuthSlice) DeleteAll ¶
func (o UserAuthSlice) DeleteAll(exec boil.Executor) error
DeleteAll deletes all rows in the slice, using an executor.
func (UserAuthSlice) DeleteAllG ¶
func (o UserAuthSlice) DeleteAllG() error
DeleteAllG deletes all rows in the slice.
func (UserAuthSlice) DeleteAllGP ¶
func (o UserAuthSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (UserAuthSlice) DeleteAllP ¶
func (o UserAuthSlice) DeleteAllP(exec boil.Executor)
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*UserAuthSlice) ReloadAll ¶
func (o *UserAuthSlice) ReloadAll(exec boil.Executor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserAuthSlice) ReloadAllG ¶
func (o *UserAuthSlice) ReloadAllG() error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserAuthSlice) ReloadAllGP ¶
func (o *UserAuthSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*UserAuthSlice) ReloadAllP ¶
func (o *UserAuthSlice) ReloadAllP(exec boil.Executor)
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (UserAuthSlice) UpdateAll ¶
func (o UserAuthSlice) UpdateAll(exec boil.Executor, cols M) error
UpdateAll updates all rows with the specified column values, using an executor.
func (UserAuthSlice) UpdateAllG ¶
func (o UserAuthSlice) UpdateAllG(cols M) error
UpdateAllG updates all rows with the specified column values.
func (UserAuthSlice) UpdateAllGP ¶
func (o UserAuthSlice) UpdateAllGP(cols M)
UpdateAllGP updates all rows with the specified column values, and panics on error.
func (UserAuthSlice) UpdateAllP ¶
func (o UserAuthSlice) UpdateAllP(exec boil.Executor, cols M)
UpdateAllP updates all rows with the specified column values, and panics on error.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.
func (UserSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (UserSlice) DeleteAllGP ¶
func (o UserSlice) DeleteAllGP()
DeleteAllGP deletes all rows in the slice, and panics on error.
func (UserSlice) DeleteAllP ¶
DeleteAllP deletes all rows in the slice, using an executor, and panics on error.
func (*UserSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllGP ¶
func (o *UserSlice) ReloadAllGP()
ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (*UserSlice) ReloadAllP ¶
ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.
func (UserSlice) UpdateAll ¶
UpdateAll updates all rows with the specified column values, using an executor.
func (UserSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
func (UserSlice) UpdateAllGP ¶
UpdateAllGP updates all rows with the specified column values, and panics on error.