Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Warehouse) predicate.Warehouse
- func Enabled(v bool) predicate.Warehouse
- func EnabledEQ(v bool) predicate.Warehouse
- func EnabledNEQ(v bool) predicate.Warehouse
- func FiltersIsNil() predicate.Warehouse
- func FiltersNotNil() predicate.Warehouse
- func HasProducts() predicate.Warehouse
- func HasProductsWith(preds ...predicate.Product) predicate.Warehouse
- func HasVendor() predicate.Warehouse
- func HasVendorWith(preds ...predicate.Vendor) predicate.Warehouse
- func ID(id uuid.UUID) predicate.Warehouse
- func IDEQ(id uuid.UUID) predicate.Warehouse
- func IDGT(id uuid.UUID) predicate.Warehouse
- func IDGTE(id uuid.UUID) predicate.Warehouse
- func IDIn(ids ...uuid.UUID) predicate.Warehouse
- func IDLT(id uuid.UUID) predicate.Warehouse
- func IDLTE(id uuid.UUID) predicate.Warehouse
- func IDNEQ(id uuid.UUID) predicate.Warehouse
- func IDNotIn(ids ...uuid.UUID) predicate.Warehouse
- func LastUpdate(v time.Time) predicate.Warehouse
- func LastUpdateEQ(v time.Time) predicate.Warehouse
- func LastUpdateGT(v time.Time) predicate.Warehouse
- func LastUpdateGTE(v time.Time) predicate.Warehouse
- func LastUpdateIn(vs ...time.Time) predicate.Warehouse
- func LastUpdateIsNil() predicate.Warehouse
- func LastUpdateLT(v time.Time) predicate.Warehouse
- func LastUpdateLTE(v time.Time) predicate.Warehouse
- func LastUpdateNEQ(v time.Time) predicate.Warehouse
- func LastUpdateNotIn(vs ...time.Time) predicate.Warehouse
- func LastUpdateNotNil() predicate.Warehouse
- func Name(v string) predicate.Warehouse
- func NameContains(v string) predicate.Warehouse
- func NameContainsFold(v string) predicate.Warehouse
- func NameEQ(v string) predicate.Warehouse
- func NameEqualFold(v string) predicate.Warehouse
- func NameGT(v string) predicate.Warehouse
- func NameGTE(v string) predicate.Warehouse
- func NameHasPrefix(v string) predicate.Warehouse
- func NameHasSuffix(v string) predicate.Warehouse
- func NameIn(vs ...string) predicate.Warehouse
- func NameLT(v string) predicate.Warehouse
- func NameLTE(v string) predicate.Warehouse
- func NameNEQ(v string) predicate.Warehouse
- func NameNotIn(vs ...string) predicate.Warehouse
- func Not(p predicate.Warehouse) predicate.Warehouse
- func Or(predicates ...predicate.Warehouse) predicate.Warehouse
- func OriginalData(v string) predicate.Warehouse
- func OriginalDataContains(v string) predicate.Warehouse
- func OriginalDataContainsFold(v string) predicate.Warehouse
- func OriginalDataEQ(v string) predicate.Warehouse
- func OriginalDataEqualFold(v string) predicate.Warehouse
- func OriginalDataGT(v string) predicate.Warehouse
- func OriginalDataGTE(v string) predicate.Warehouse
- func OriginalDataHasPrefix(v string) predicate.Warehouse
- func OriginalDataHasSuffix(v string) predicate.Warehouse
- func OriginalDataIn(vs ...string) predicate.Warehouse
- func OriginalDataIsNil() predicate.Warehouse
- func OriginalDataLT(v string) predicate.Warehouse
- func OriginalDataLTE(v string) predicate.Warehouse
- func OriginalDataNEQ(v string) predicate.Warehouse
- func OriginalDataNotIn(vs ...string) predicate.Warehouse
- func OriginalDataNotNil() predicate.Warehouse
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the warehouse type in the database. Label = "warehouse" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldLastUpdate holds the string denoting the last_update field in the database. FieldLastUpdate = "last_update" // FieldOriginalData holds the string denoting the original_data field in the database. FieldOriginalData = "original_data" // FieldEnabled holds the string denoting the enabled field in the database. FieldEnabled = "enabled" // FieldFilters holds the string denoting the filters field in the database. FieldFilters = "filters" // EdgeProducts holds the string denoting the products edge name in mutations. EdgeProducts = "products" // EdgeVendor holds the string denoting the vendor edge name in mutations. EdgeVendor = "vendor" // Table holds the table name of the warehouse in the database. Table = "warehouses" // ProductsTable is the table that holds the products relation/edge. ProductsTable = "products" // ProductsInverseTable is the table name for the Product entity. // It exists in this package in order to avoid circular dependency with the "product" package. ProductsInverseTable = "products" // ProductsColumn is the table column denoting the products relation/edge. ProductsColumn = "warehouse_products" // VendorTable is the table that holds the vendor relation/edge. VendorTable = "warehouses" // VendorInverseTable is the table name for the Vendor entity. // It exists in this package in order to avoid circular dependency with the "vendor" package. VendorInverseTable = "vendors" // VendorColumn is the table column denoting the vendor relation/edge. VendorColumn = "vendor_warehouses" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldLastUpdate, FieldOriginalData, FieldEnabled, FieldFilters, }
Columns holds all SQL columns for warehouse fields.
var ForeignKeys = []string{
"vendor_warehouses",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "warehouses" table and are not defined as standalone fields in the schema.
Functions ¶
func Enabled ¶
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledNEQ ¶
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func FiltersIsNil ¶
FiltersIsNil applies the IsNil predicate on the "filters" field.
func FiltersNotNil ¶
FiltersNotNil applies the NotNil predicate on the "filters" field.
func HasProducts ¶
HasProducts applies the HasEdge predicate on the "products" edge.
func HasProductsWith ¶
HasProductsWith applies the HasEdge predicate on the "products" edge with a given conditions (other predicates).
func HasVendorWith ¶
HasVendorWith applies the HasEdge predicate on the "vendor" edge with a given conditions (other predicates).
func LastUpdate ¶
LastUpdate applies equality check predicate on the "last_update" field. It's identical to LastUpdateEQ.
func LastUpdateEQ ¶
LastUpdateEQ applies the EQ predicate on the "last_update" field.
func LastUpdateGT ¶
LastUpdateGT applies the GT predicate on the "last_update" field.
func LastUpdateGTE ¶
LastUpdateGTE applies the GTE predicate on the "last_update" field.
func LastUpdateIn ¶
LastUpdateIn applies the In predicate on the "last_update" field.
func LastUpdateIsNil ¶
LastUpdateIsNil applies the IsNil predicate on the "last_update" field.
func LastUpdateLT ¶
LastUpdateLT applies the LT predicate on the "last_update" field.
func LastUpdateLTE ¶
LastUpdateLTE applies the LTE predicate on the "last_update" field.
func LastUpdateNEQ ¶
LastUpdateNEQ applies the NEQ predicate on the "last_update" field.
func LastUpdateNotIn ¶
LastUpdateNotIn applies the NotIn predicate on the "last_update" field.
func LastUpdateNotNil ¶
LastUpdateNotNil applies the NotNil predicate on the "last_update" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OriginalData ¶
OriginalData applies equality check predicate on the "original_data" field. It's identical to OriginalDataEQ.
func OriginalDataContains ¶
OriginalDataContains applies the Contains predicate on the "original_data" field.
func OriginalDataContainsFold ¶
OriginalDataContainsFold applies the ContainsFold predicate on the "original_data" field.
func OriginalDataEQ ¶
OriginalDataEQ applies the EQ predicate on the "original_data" field.
func OriginalDataEqualFold ¶
OriginalDataEqualFold applies the EqualFold predicate on the "original_data" field.
func OriginalDataGT ¶
OriginalDataGT applies the GT predicate on the "original_data" field.
func OriginalDataGTE ¶
OriginalDataGTE applies the GTE predicate on the "original_data" field.
func OriginalDataHasPrefix ¶
OriginalDataHasPrefix applies the HasPrefix predicate on the "original_data" field.
func OriginalDataHasSuffix ¶
OriginalDataHasSuffix applies the HasSuffix predicate on the "original_data" field.
func OriginalDataIn ¶
OriginalDataIn applies the In predicate on the "original_data" field.
func OriginalDataIsNil ¶
OriginalDataIsNil applies the IsNil predicate on the "original_data" field.
func OriginalDataLT ¶
OriginalDataLT applies the LT predicate on the "original_data" field.
func OriginalDataLTE ¶
OriginalDataLTE applies the LTE predicate on the "original_data" field.
func OriginalDataNEQ ¶
OriginalDataNEQ applies the NEQ predicate on the "original_data" field.
func OriginalDataNotIn ¶
OriginalDataNotIn applies the NotIn predicate on the "original_data" field.
func OriginalDataNotNil ¶
OriginalDataNotNil applies the NotNil predicate on the "original_data" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.