models

package
v0.0.0-...-2039734 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var ProductColumns = struct {
	ProductID string
}{
	ProductID: "product_id",
}
View Source
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",
}
View Source
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",
}
View Source
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",
}
View Source
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",
}
View Source
var UserAuthColumns = struct {
	UserAuthID string
	UserID     string
	Method     string
	Value      string
}{
	UserAuthID: "user_auth_id",
	UserID:     "user_id",
	Method:     "method",
	Value:      "value",
}
View Source
var UserColumns = struct {
	UserID    string
	Name      string
	Email     string
	CreatedAt string
	UpdatedAt string
	IsBlocked string
	IsAdmin   string
}{
	UserID:    "user_id",
	Name:      "name",
	Email:     "email",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	IsBlocked: "is_blocked",
	IsAdmin:   "is_admin",
}

Functions

func Categories

func Categories(exec boil.Executor, mods ...qm.QueryMod) categoryQuery

Categories retrieves all the records using an executor.

func CategoriesG

func CategoriesG(mods ...qm.QueryMod) categoryQuery

CategoriesG retrieves all records.

func CategoryExists

func CategoryExists(exec boil.Executor, categoryID int) (bool, error)

CategoryExists checks if the Category row exists.

func CategoryExistsG

func CategoryExistsG(categoryID int) (bool, error)

CategoryExistsG checks if the Category row exists.

func CategoryExistsGP

func CategoryExistsGP(categoryID int) bool

CategoryExistsGP checks if the Category row exists. Panics on error.

func CategoryExistsP

func CategoryExistsP(exec boil.Executor, categoryID int) bool

CategoryExistsP checks if the Category row exists. Panics on error.

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

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

NewQueryG initializes a new Query using the passed in QueryMods

func ProductExists

func ProductExists(exec boil.Executor, productID int) (bool, error)

ProductExists checks if the Product row exists.

func ProductExistsG

func ProductExistsG(productID int) (bool, error)

ProductExistsG checks if the Product row exists.

func ProductExistsGP

func ProductExistsGP(productID int) bool

ProductExistsGP checks if the Product row exists. Panics on error.

func ProductExistsP

func ProductExistsP(exec boil.Executor, productID int) bool

ProductExistsP checks if the Product row exists. Panics on error.

func ProductVersionExists

func ProductVersionExists(exec boil.Executor, productVersionID int) (bool, error)

ProductVersionExists checks if the ProductVersion row exists.

func ProductVersionExistsG

func ProductVersionExistsG(productVersionID int) (bool, error)

ProductVersionExistsG checks if the ProductVersion row exists.

func ProductVersionExistsGP

func ProductVersionExistsGP(productVersionID int) bool

ProductVersionExistsGP checks if the ProductVersion row exists. Panics on error.

func ProductVersionExistsP

func ProductVersionExistsP(exec boil.Executor, productVersionID int) bool

ProductVersionExistsP checks if the ProductVersion row exists. Panics on error.

func ProductVersions

func ProductVersions(exec boil.Executor, mods ...qm.QueryMod) productVersionQuery

ProductVersions retrieves all the records using an executor.

func ProductVersionsG

func ProductVersionsG(mods ...qm.QueryMod) productVersionQuery

ProductVersionsG retrieves all records.

func Products

func Products(exec boil.Executor, mods ...qm.QueryMod) productQuery

Products retrieves all the records using an executor.

func ProductsG

func ProductsG(mods ...qm.QueryMod) productQuery

ProductsG retrieves all records.

func StockExists

func StockExists(exec boil.Executor, stockID int) (bool, error)

StockExists checks if the Stock row exists.

func StockExistsG

func StockExistsG(stockID int) (bool, error)

StockExistsG checks if the Stock row exists.

func StockExistsGP

func StockExistsGP(stockID int) bool

StockExistsGP checks if the Stock row exists. Panics on error.

func StockExistsP

func StockExistsP(exec boil.Executor, stockID int) bool

StockExistsP checks if the Stock row exists. Panics on error.

func Stocks

func Stocks(exec boil.Executor, mods ...qm.QueryMod) stockQuery

Stocks retrieves all the records using an executor.

func StocksG

func StocksG(mods ...qm.QueryMod) stockQuery

StocksG retrieves all records.

func TransactionExists

func TransactionExists(exec boil.Executor, transactionID int) (bool, error)

TransactionExists checks if the Transaction row exists.

func TransactionExistsG

func TransactionExistsG(transactionID int) (bool, error)

TransactionExistsG checks if the Transaction row exists.

func TransactionExistsGP

func TransactionExistsGP(transactionID int) bool

TransactionExistsGP checks if the Transaction row exists. Panics on error.

func TransactionExistsP

func TransactionExistsP(exec boil.Executor, transactionID int) bool

TransactionExistsP checks if the Transaction row exists. Panics on error.

func Transactions

func Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transactions retrieves all the records using an executor.

func TransactionsG

func TransactionsG(mods ...qm.QueryMod) transactionQuery

TransactionsG retrieves all records.

func UserAuthExists

func UserAuthExists(exec boil.Executor, userAuthID int) (bool, error)

UserAuthExists checks if the UserAuth row exists.

func UserAuthExistsG

func UserAuthExistsG(userAuthID int) (bool, error)

UserAuthExistsG checks if the UserAuth row exists.

func UserAuthExistsGP

func UserAuthExistsGP(userAuthID int) bool

UserAuthExistsGP checks if the UserAuth row exists. Panics on error.

func UserAuthExistsP

func UserAuthExistsP(exec boil.Executor, userAuthID int) bool

UserAuthExistsP checks if the UserAuth row exists. Panics on error.

func UserAuths

func UserAuths(exec boil.Executor, mods ...qm.QueryMod) userAuthQuery

UserAuths retrieves all the records using an executor.

func UserAuthsG

func UserAuthsG(mods ...qm.QueryMod) userAuthQuery

UserAuthsG retrieves all records.

func UserExists

func UserExists(exec boil.Executor, userID int) (bool, error)

UserExists checks if the User row exists.

func UserExistsG

func UserExistsG(userID int) (bool, error)

UserExistsG checks if the User row exists.

func UserExistsGP

func UserExistsGP(userID int) bool

UserExistsGP checks if the User row exists. Panics on error.

func UserExistsP

func UserExistsP(exec boil.Executor, userID int) bool

UserExistsP checks if the User row exists. Panics on error.

func Users

func Users(exec boil.Executor, mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

func UsersG

func UsersG(mods ...qm.QueryMod) userQuery

UsersG retrieves all records.

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

func FindCategory(exec boil.Executor, categoryID int, selectCols ...string) (*Category, error)

FindCategory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindCategoryG

func FindCategoryG(categoryID int, selectCols ...string) (*Category, error)

FindCategoryG retrieves a single record by ID.

func FindCategoryGP

func FindCategoryGP(categoryID int, selectCols ...string) *Category

FindCategoryGP retrieves a single record by ID, and panics on error.

func FindCategoryP

func FindCategoryP(exec boil.Executor, categoryID int, selectCols ...string) *Category

FindCategoryP retrieves a single record by ID with an executor, and panics on error.

func (*Category) AddParentCategories

func (o *Category) AddParentCategories(exec boil.Executor, insert bool, related ...*Category) error

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

func (o *Category) AddParentCategoriesG(insert bool, related ...*Category) error

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

func (o *Category) AddParentCategoriesGP(insert bool, related ...*Category)

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

func (o *Category) AddParentCategoriesP(exec boil.Executor, insert bool, related ...*Category)

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

func (o *Category) AddProducts(exec boil.Executor, insert bool, related ...*Product) error

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

func (o *Category) AddProductsG(insert bool, related ...*Product) error

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

func (o *Category) AddProductsGP(insert bool, related ...*Product)

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

func (o *Category) AddProductsP(exec boil.Executor, insert bool, related ...*Product)

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

func (o *Category) Delete(exec boil.Executor) error

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

func (o *Category) DeleteG() error

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

func (o *Category) DeleteP(exec boil.Executor)

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

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

func (o *Category) InsertG(whitelist ...string) error

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

func (*Category) InsertGP

func (o *Category) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Category) InsertP

func (o *Category) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Category) Parent

func (o *Category) Parent(exec boil.Executor, mods ...qm.QueryMod) categoryQuery

Parent pointed to by the foreign key.

func (*Category) ParentCategories

func (o *Category) ParentCategories(exec boil.Executor, mods ...qm.QueryMod) categoryQuery

ParentCategories retrieves all the category's categories with an executor via parent_id column.

func (*Category) ParentCategoriesG

func (o *Category) ParentCategoriesG(mods ...qm.QueryMod) categoryQuery

ParentCategoriesG retrieves all the category's categories via parent_id column.

func (*Category) ParentG

func (o *Category) ParentG(mods ...qm.QueryMod) categoryQuery

ParentG pointed to by the foreign key.

func (*Category) Products

func (o *Category) Products(exec boil.Executor, mods ...qm.QueryMod) productQuery

Products retrieves all the product's products with an executor.

func (*Category) ProductsG

func (o *Category) ProductsG(mods ...qm.QueryMod) productQuery

ProductsG retrieves all the product's products.

func (*Category) Reload

func (o *Category) Reload(exec boil.Executor) error

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

func (*Category) ReloadG

func (o *Category) ReloadG() error

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

func (*Category) ReloadGP

func (o *Category) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Category) ReloadP

func (o *Category) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Category) RemoveParent

func (o *Category) RemoveParent(exec boil.Executor, related *Category) error

RemoveParent relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Category) RemoveParentCategories

func (o *Category) RemoveParentCategories(exec boil.Executor, related ...*Category) error

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

func (o *Category) RemoveParentCategoriesG(related ...*Category) error

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

func (o *Category) RemoveParentCategoriesGP(related ...*Category)

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

func (o *Category) RemoveParentCategoriesP(exec boil.Executor, related ...*Category)

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

func (o *Category) RemoveParentG(related *Category) error

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

func (o *Category) RemoveParentGP(related *Category)

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

func (o *Category) RemoveParentP(exec boil.Executor, related *Category)

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

func (o *Category) RemoveProducts(exec boil.Executor, related ...*Product) error

RemoveProducts relationships from objects passed in. Removes related items from R.Products (uses pointer comparison, removal does not keep order) Sets related.R.Categories.

func (*Category) RemoveProductsG

func (o *Category) RemoveProductsG(related ...*Product) error

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

func (o *Category) RemoveProductsGP(related ...*Product)

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

func (o *Category) RemoveProductsP(exec boil.Executor, related ...*Product)

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

func (o *Category) SetParent(exec boil.Executor, insert bool, related *Category) error

SetParent of the category to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentCategories.

func (*Category) SetParentCategories

func (o *Category) SetParentCategories(exec boil.Executor, insert bool, related ...*Category) error

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

func (o *Category) SetParentCategoriesG(insert bool, related ...*Category) error

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

func (o *Category) SetParentCategoriesGP(insert bool, related ...*Category)

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

func (o *Category) SetParentCategoriesP(exec boil.Executor, insert bool, related ...*Category)

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

func (o *Category) SetParentG(insert bool, related *Category) error

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

func (o *Category) SetParentGP(insert bool, related *Category)

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

func (o *Category) SetParentP(exec boil.Executor, insert bool, related *Category)

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

func (o *Category) SetProducts(exec boil.Executor, insert bool, related ...*Product) error

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

func (o *Category) SetProductsG(insert bool, related ...*Product) error

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

func (o *Category) SetProductsGP(insert bool, related ...*Product)

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

func (o *Category) SetProductsP(exec boil.Executor, insert bool, related ...*Product)

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

func (o *Category) Update(exec boil.Executor, whitelist ...string) error

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

func (o *Category) UpdateG(whitelist ...string) error

UpdateG a single Category record. See Update for whitelist behavior description.

func (*Category) UpdateGP

func (o *Category) UpdateGP(whitelist ...string)

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

func (o *Category) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Category, and panics on error. See Update for whitelist behavior description.

func (*Category) Upsert

func (o *Category) 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 (*Category) UpsertG

func (o *Category) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Category) UpsertGP

func (o *Category) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Category) UpsertP

func (o *Category) 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.

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

func FindProduct(exec boil.Executor, productID int, selectCols ...string) (*Product, error)

FindProduct retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindProductG

func FindProductG(productID int, selectCols ...string) (*Product, error)

FindProductG retrieves a single record by ID.

func FindProductGP

func FindProductGP(productID int, selectCols ...string) *Product

FindProductGP retrieves a single record by ID, and panics on error.

func FindProductP

func FindProductP(exec boil.Executor, productID int, selectCols ...string) *Product

FindProductP retrieves a single record by ID with an executor, and panics on error.

func (*Product) AddCategories

func (o *Product) AddCategories(exec boil.Executor, insert bool, related ...*Category) error

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

func (o *Product) AddCategoriesG(insert bool, related ...*Category) error

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

func (o *Product) AddCategoriesGP(insert bool, related ...*Category)

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

func (o *Product) AddCategoriesP(exec boil.Executor, insert bool, related ...*Category)

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

func (o *Product) AddStocks(exec boil.Executor, insert bool, related ...*Stock) error

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

func (o *Product) AddStocksG(insert bool, related ...*Stock) error

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

func (o *Product) AddStocksGP(insert bool, related ...*Stock)

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

func (o *Product) AddStocksP(exec boil.Executor, insert bool, related ...*Stock)

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

func (o *Product) AddTransactions(exec boil.Executor, insert bool, related ...*Transaction) error

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

func (o *Product) Categories(exec boil.Executor, mods ...qm.QueryMod) categoryQuery

Categories retrieves all the category's categories with an executor.

func (*Product) CategoriesG

func (o *Product) CategoriesG(mods ...qm.QueryMod) categoryQuery

CategoriesG retrieves all the category's categories.

func (*Product) Delete

func (o *Product) Delete(exec boil.Executor) error

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

func (o *Product) DeleteG() error

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

func (o *Product) DeleteP(exec boil.Executor)

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

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

func (o *Product) InsertG(whitelist ...string) error

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

func (*Product) InsertGP

func (o *Product) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Product) InsertP

func (o *Product) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Product) ProductVersions

func (o *Product) ProductVersions(exec boil.Executor, mods ...qm.QueryMod) productVersionQuery

ProductVersions retrieves all the product_version's product versions with an executor.

func (*Product) ProductVersionsG

func (o *Product) ProductVersionsG(mods ...qm.QueryMod) productVersionQuery

ProductVersionsG retrieves all the product_version's product versions.

func (*Product) Reload

func (o *Product) Reload(exec boil.Executor) error

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

func (*Product) ReloadG

func (o *Product) ReloadG() error

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

func (*Product) ReloadGP

func (o *Product) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Product) ReloadP

func (o *Product) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Product) RemoveCategories

func (o *Product) RemoveCategories(exec boil.Executor, related ...*Category) error

RemoveCategories relationships from objects passed in. Removes related items from R.Categories (uses pointer comparison, removal does not keep order) Sets related.R.Products.

func (*Product) RemoveCategoriesG

func (o *Product) RemoveCategoriesG(related ...*Category) error

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

func (o *Product) RemoveCategoriesGP(related ...*Category)

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

func (o *Product) RemoveCategoriesP(exec boil.Executor, related ...*Category)

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

func (o *Product) SetCategories(exec boil.Executor, insert bool, related ...*Category) error

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

func (o *Product) SetCategoriesG(insert bool, related ...*Category) error

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

func (o *Product) SetCategoriesGP(insert bool, related ...*Category)

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

func (o *Product) SetCategoriesP(exec boil.Executor, insert bool, related ...*Category)

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

func (o *Product) SetTransactions(exec boil.Executor, insert bool, related ...*Transaction) error

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

func (o *Product) Stocks(exec boil.Executor, mods ...qm.QueryMod) stockQuery

Stocks retrieves all the stock's stock with an executor.

func (*Product) StocksG

func (o *Product) StocksG(mods ...qm.QueryMod) stockQuery

StocksG retrieves all the stock's stock.

func (*Product) Transactions

func (o *Product) Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transactions retrieves all the transaction's transactions with an executor.

func (*Product) TransactionsG

func (o *Product) TransactionsG(mods ...qm.QueryMod) transactionQuery

TransactionsG retrieves all the transaction's transactions.

func (*Product) Update

func (o *Product) Update(exec boil.Executor, whitelist ...string) error

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

func (o *Product) UpdateG(whitelist ...string) error

UpdateG a single Product record. See Update for whitelist behavior description.

func (*Product) UpdateGP

func (o *Product) UpdateGP(whitelist ...string)

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

func (o *Product) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Product, and panics on error. See Update for whitelist behavior description.

func (*Product) Upsert

func (o *Product) 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 (*Product) UpsertG

func (o *Product) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Product) UpsertGP

func (o *Product) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Product) UpsertP

func (o *Product) 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.

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

func (o *ProductVersion) SetProduct(exec boil.Executor, insert bool, related *Product) error

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.

func (*ProductVersion) UpsertP

func (o *ProductVersion) 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.

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

func FindStock(exec boil.Executor, stockID int, selectCols ...string) (*Stock, error)

FindStock retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindStockG

func FindStockG(stockID int, selectCols ...string) (*Stock, error)

FindStockG retrieves a single record by ID.

func FindStockGP

func FindStockGP(stockID int, selectCols ...string) *Stock

FindStockGP retrieves a single record by ID, and panics on error.

func FindStockP

func FindStockP(exec boil.Executor, stockID int, selectCols ...string) *Stock

FindStockP retrieves a single record by ID with an executor, and panics on error.

func (*Stock) Delete

func (o *Stock) Delete(exec boil.Executor) error

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

func (o *Stock) DeleteG() error

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

func (o *Stock) DeleteP(exec boil.Executor)

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

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

func (o *Stock) InsertG(whitelist ...string) error

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

func (*Stock) InsertGP

func (o *Stock) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Stock) InsertP

func (o *Stock) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Stock) Product

func (o *Stock) Product(exec boil.Executor, mods ...qm.QueryMod) productQuery

Product pointed to by the foreign key.

func (*Stock) ProductG

func (o *Stock) ProductG(mods ...qm.QueryMod) productQuery

ProductG pointed to by the foreign key.

func (*Stock) Reload

func (o *Stock) Reload(exec boil.Executor) error

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

func (*Stock) ReloadG

func (o *Stock) ReloadG() error

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

func (*Stock) ReloadGP

func (o *Stock) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Stock) ReloadP

func (o *Stock) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Stock) RemoveUser

func (o *Stock) 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 (*Stock) RemoveUserG

func (o *Stock) 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 (*Stock) RemoveUserGP

func (o *Stock) 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 (*Stock) RemoveUserP

func (o *Stock) 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 (*Stock) SetProduct

func (o *Stock) SetProduct(exec boil.Executor, insert bool, related *Product) error

SetProduct of the stock to the related item. Sets o.R.Product to related. Adds o to related.R.Stocks.

func (*Stock) SetProductG

func (o *Stock) SetProductG(insert bool, related *Product) error

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

func (o *Stock) SetProductGP(insert bool, related *Product)

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

func (o *Stock) SetProductP(exec boil.Executor, insert bool, related *Product)

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

func (o *Stock) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the stock to the related item. Sets o.R.User to related. Adds o to related.R.Stocks.

func (*Stock) SetUserG

func (o *Stock) SetUserG(insert bool, related *User) error

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

func (o *Stock) SetUserGP(insert bool, related *User)

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

func (o *Stock) SetUserP(exec boil.Executor, insert bool, related *User)

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

func (o *Stock) Update(exec boil.Executor, whitelist ...string) error

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

func (o *Stock) UpdateG(whitelist ...string) error

UpdateG a single Stock record. See Update for whitelist behavior description.

func (*Stock) UpdateGP

func (o *Stock) UpdateGP(whitelist ...string)

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

func (o *Stock) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Stock, and panics on error. See Update for whitelist behavior description.

func (*Stock) Upsert

func (o *Stock) 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 (*Stock) UpsertG

func (o *Stock) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Stock) UpsertGP

func (o *Stock) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Stock) UpsertP

func (o *Stock) 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 (*Stock) User

func (o *Stock) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*Stock) UserG

func (o *Stock) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

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

func (o *Transaction) SetProduct(exec boil.Executor, insert bool, related *Product) error

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

func (o *Transaction) SetUser(exec boil.Executor, insert bool, related *User) error

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

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

func FindUser(exec boil.Executor, userID int, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindUserG

func FindUserG(userID int, selectCols ...string) (*User, error)

FindUserG retrieves a single record by ID.

func FindUserGP

func FindUserGP(userID int, selectCols ...string) *User

FindUserGP retrieves a single record by ID, and panics on error.

func FindUserP

func FindUserP(exec boil.Executor, userID int, selectCols ...string) *User

FindUserP retrieves a single record by ID with an executor, and panics on error.

func (*User) AddStocks

func (o *User) AddStocks(exec boil.Executor, insert bool, related ...*Stock) error

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

func (o *User) AddStocksG(insert bool, related ...*Stock) error

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

func (o *User) AddStocksGP(insert bool, related ...*Stock)

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

func (o *User) AddStocksP(exec boil.Executor, insert bool, related ...*Stock)

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

func (o *User) AddTransactions(exec boil.Executor, insert bool, related ...*Transaction) error

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

func (o *User) AddUserAuths(exec boil.Executor, insert bool, related ...*UserAuth) error

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

func (o *User) AddUserAuthsG(insert bool, related ...*UserAuth) error

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

func (o *User) AddUserAuthsGP(insert bool, related ...*UserAuth)

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

func (o *User) AddUserAuthsP(exec boil.Executor, insert bool, related ...*UserAuth)

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

func (o *User) Delete(exec boil.Executor) error

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

func (o *User) DeleteG() error

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

func (o *User) DeleteP(exec boil.Executor)

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

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

func (o *User) InsertG(whitelist ...string) error

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

func (*User) InsertGP

func (o *User) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*User) InsertP

func (o *User) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*User) Reload

func (o *User) Reload(exec boil.Executor) error

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

func (*User) ReloadG

func (o *User) ReloadG() error

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

func (*User) ReloadGP

func (o *User) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*User) ReloadP

func (o *User) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*User) RemoveStocks

func (o *User) RemoveStocks(exec boil.Executor, related ...*Stock) error

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

func (o *User) RemoveStocksG(related ...*Stock) error

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

func (o *User) RemoveStocksGP(related ...*Stock)

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

func (o *User) RemoveStocksP(exec boil.Executor, related ...*Stock)

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

func (o *User) SetStocks(exec boil.Executor, insert bool, related ...*Stock) error

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

func (o *User) SetStocksG(insert bool, related ...*Stock) error

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

func (o *User) SetStocksGP(insert bool, related ...*Stock)

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

func (o *User) SetStocksP(exec boil.Executor, insert bool, related ...*Stock)

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

func (o *User) SetTransactions(exec boil.Executor, insert bool, related ...*Transaction) error

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

func (o *User) Stocks(exec boil.Executor, mods ...qm.QueryMod) stockQuery

Stocks retrieves all the stock's stock with an executor.

func (*User) StocksG

func (o *User) StocksG(mods ...qm.QueryMod) stockQuery

StocksG retrieves all the stock's stock.

func (*User) Transactions

func (o *User) Transactions(exec boil.Executor, mods ...qm.QueryMod) transactionQuery

Transactions retrieves all the transaction's transactions with an executor.

func (*User) TransactionsG

func (o *User) TransactionsG(mods ...qm.QueryMod) transactionQuery

TransactionsG retrieves all the transaction's transactions.

func (*User) Update

func (o *User) Update(exec boil.Executor, whitelist ...string) error

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

func (o *User) UpdateG(whitelist ...string) error

UpdateG a single User record. See Update for whitelist behavior description.

func (*User) UpdateGP

func (o *User) UpdateGP(whitelist ...string)

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

func (o *User) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the User, and panics on error. See Update for whitelist behavior description.

func (*User) Upsert

func (o *User) 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 (*User) UpsertG

func (o *User) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*User) UpsertGP

func (o *User) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*User) UpsertP

func (o *User) 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 (*User) UserAuths

func (o *User) UserAuths(exec boil.Executor, mods ...qm.QueryMod) userAuthQuery

UserAuths retrieves all the user_auth's user auths with an executor.

func (*User) UserAuthsG

func (o *User) UserAuthsG(mods ...qm.QueryMod) userAuthQuery

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

func FindUserAuth(exec boil.Executor, userAuthID int, selectCols ...string) (*UserAuth, error)

FindUserAuth retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindUserAuthG

func FindUserAuthG(userAuthID int, selectCols ...string) (*UserAuth, error)

FindUserAuthG retrieves a single record by ID.

func FindUserAuthGP

func FindUserAuthGP(userAuthID int, selectCols ...string) *UserAuth

FindUserAuthGP retrieves a single record by ID, and panics on error.

func FindUserAuthP

func FindUserAuthP(exec boil.Executor, userAuthID int, selectCols ...string) *UserAuth

FindUserAuthP retrieves a single record by ID with an executor, and panics on error.

func (*UserAuth) Delete

func (o *UserAuth) Delete(exec boil.Executor) error

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

func (o *UserAuth) DeleteG() error

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

func (o *UserAuth) DeleteP(exec boil.Executor)

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

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

func (o *UserAuth) InsertG(whitelist ...string) error

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

func (*UserAuth) InsertGP

func (o *UserAuth) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*UserAuth) InsertP

func (o *UserAuth) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*UserAuth) Reload

func (o *UserAuth) Reload(exec boil.Executor) error

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

func (*UserAuth) ReloadG

func (o *UserAuth) ReloadG() error

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

func (*UserAuth) ReloadGP

func (o *UserAuth) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*UserAuth) ReloadP

func (o *UserAuth) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*UserAuth) SetUser

func (o *UserAuth) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the user_auth to the related item. Sets o.R.User to related. Adds o to related.R.UserAuths.

func (*UserAuth) SetUserG

func (o *UserAuth) SetUserG(insert bool, related *User) error

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

func (o *UserAuth) SetUserGP(insert bool, related *User)

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

func (o *UserAuth) SetUserP(exec boil.Executor, insert bool, related *User)

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

func (o *UserAuth) Update(exec boil.Executor, whitelist ...string) error

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

func (o *UserAuth) UpdateG(whitelist ...string) error

UpdateG a single UserAuth record. See Update for whitelist behavior description.

func (*UserAuth) UpdateGP

func (o *UserAuth) UpdateGP(whitelist ...string)

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

func (o *UserAuth) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the UserAuth, and panics on error. See Update for whitelist behavior description.

func (*UserAuth) Upsert

func (o *UserAuth) 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 (*UserAuth) UpsertG

func (o *UserAuth) UpsertG(updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*UserAuth) UpsertGP

func (o *UserAuth) UpsertGP(updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*UserAuth) UpsertP

func (o *UserAuth) 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 (*UserAuth) User

func (o *UserAuth) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*UserAuth) UserG

func (o *UserAuth) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

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

func (o UserSlice) DeleteAll(exec boil.Executor) error

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

func (UserSlice) DeleteAllG

func (o UserSlice) DeleteAllG() error

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

func (o UserSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*UserSlice) ReloadAll

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

func (o *UserSlice) ReloadAllG() error

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

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

func (o UserSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (UserSlice) UpdateAllG

func (o UserSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (UserSlice) UpdateAllGP

func (o UserSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (UserSlice) UpdateAllP

func (o UserSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

Jump to

Keyboard shortcuts

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