Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Product) predicate.Product
- func ID(id int) predicate.Product
- func IDEQ(id int) predicate.Product
- func IDGT(id int) predicate.Product
- func IDGTE(id int) predicate.Product
- func IDIn(ids ...int) predicate.Product
- func IDLT(id int) predicate.Product
- func IDLTE(id int) predicate.Product
- func IDNEQ(id int) predicate.Product
- func IDNotIn(ids ...int) predicate.Product
- func Name(v string) predicate.Product
- func NameContains(v string) predicate.Product
- func NameContainsFold(v string) predicate.Product
- func NameEQ(v string) predicate.Product
- func NameEqualFold(v string) predicate.Product
- func NameGT(v string) predicate.Product
- func NameGTE(v string) predicate.Product
- func NameHasPrefix(v string) predicate.Product
- func NameHasSuffix(v string) predicate.Product
- func NameIn(vs ...string) predicate.Product
- func NameLT(v string) predicate.Product
- func NameLTE(v string) predicate.Product
- func NameNEQ(v string) predicate.Product
- func NameNotIn(vs ...string) predicate.Product
- func Not(p predicate.Product) predicate.Product
- func Or(predicates ...predicate.Product) predicate.Product
- func SubType(v string) predicate.Product
- func SubTypeContains(v string) predicate.Product
- func SubTypeContainsFold(v string) predicate.Product
- func SubTypeEQ(v string) predicate.Product
- func SubTypeEqualFold(v string) predicate.Product
- func SubTypeGT(v string) predicate.Product
- func SubTypeGTE(v string) predicate.Product
- func SubTypeHasPrefix(v string) predicate.Product
- func SubTypeHasSuffix(v string) predicate.Product
- func SubTypeIn(vs ...string) predicate.Product
- func SubTypeLT(v string) predicate.Product
- func SubTypeLTE(v string) predicate.Product
- func SubTypeNEQ(v string) predicate.Product
- func SubTypeName(v string) predicate.Product
- func SubTypeNameContains(v string) predicate.Product
- func SubTypeNameContainsFold(v string) predicate.Product
- func SubTypeNameEQ(v string) predicate.Product
- func SubTypeNameEqualFold(v string) predicate.Product
- func SubTypeNameGT(v string) predicate.Product
- func SubTypeNameGTE(v string) predicate.Product
- func SubTypeNameHasPrefix(v string) predicate.Product
- func SubTypeNameHasSuffix(v string) predicate.Product
- func SubTypeNameIn(vs ...string) predicate.Product
- func SubTypeNameLT(v string) predicate.Product
- func SubTypeNameLTE(v string) predicate.Product
- func SubTypeNameNEQ(v string) predicate.Product
- func SubTypeNameNotIn(vs ...string) predicate.Product
- func SubTypeNotIn(vs ...string) predicate.Product
- func TypeEQ(v Type) predicate.Product
- func TypeIn(vs ...Type) predicate.Product
- func TypeNEQ(v Type) predicate.Product
- func TypeName(v string) predicate.Product
- func TypeNameContains(v string) predicate.Product
- func TypeNameContainsFold(v string) predicate.Product
- func TypeNameEQ(v string) predicate.Product
- func TypeNameEqualFold(v string) predicate.Product
- func TypeNameGT(v string) predicate.Product
- func TypeNameGTE(v string) predicate.Product
- func TypeNameHasPrefix(v string) predicate.Product
- func TypeNameHasSuffix(v string) predicate.Product
- func TypeNameIn(vs ...string) predicate.Product
- func TypeNameLT(v string) predicate.Product
- func TypeNameLTE(v string) predicate.Product
- func TypeNameNEQ(v string) predicate.Product
- func TypeNameNotIn(vs ...string) predicate.Product
- func TypeNotIn(vs ...Type) predicate.Product
- func TypeValidator(_type Type) error
- func URL(v string) predicate.Product
- func URLContains(v string) predicate.Product
- func URLContainsFold(v string) predicate.Product
- func URLEQ(v string) predicate.Product
- func URLEqualFold(v string) predicate.Product
- func URLGT(v string) predicate.Product
- func URLGTE(v string) predicate.Product
- func URLHasPrefix(v string) predicate.Product
- func URLHasSuffix(v string) predicate.Product
- func URLIn(vs ...string) predicate.Product
- func URLLT(v string) predicate.Product
- func URLLTE(v string) predicate.Product
- func URLNEQ(v string) predicate.Product
- func URLNotIn(vs ...string) predicate.Product
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the product type in the database. Label = "product" // 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" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldTypeName holds the string denoting the typename field in the database. FieldTypeName = "type_name" // FieldSubType holds the string denoting the subtype field in the database. FieldSubType = "sub_type" // FieldSubTypeName holds the string denoting the subtypename field in the database. FieldSubTypeName = "sub_type_name" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // Table holds the table name of the product in the database. Table = "products" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldType, FieldTypeName, FieldSubType, FieldSubTypeName, FieldURL, }
Columns holds all SQL columns for product fields.
Functions ¶
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 SubType ¶
SubType applies equality check predicate on the "subType" field. It's identical to SubTypeEQ.
func SubTypeContains ¶
SubTypeContains applies the Contains predicate on the "subType" field.
func SubTypeContainsFold ¶
SubTypeContainsFold applies the ContainsFold predicate on the "subType" field.
func SubTypeEqualFold ¶
SubTypeEqualFold applies the EqualFold predicate on the "subType" field.
func SubTypeGTE ¶
SubTypeGTE applies the GTE predicate on the "subType" field.
func SubTypeHasPrefix ¶
SubTypeHasPrefix applies the HasPrefix predicate on the "subType" field.
func SubTypeHasSuffix ¶
SubTypeHasSuffix applies the HasSuffix predicate on the "subType" field.
func SubTypeLTE ¶
SubTypeLTE applies the LTE predicate on the "subType" field.
func SubTypeNEQ ¶
SubTypeNEQ applies the NEQ predicate on the "subType" field.
func SubTypeName ¶
SubTypeName applies equality check predicate on the "subTypeName" field. It's identical to SubTypeNameEQ.
func SubTypeNameContains ¶
SubTypeNameContains applies the Contains predicate on the "subTypeName" field.
func SubTypeNameContainsFold ¶
SubTypeNameContainsFold applies the ContainsFold predicate on the "subTypeName" field.
func SubTypeNameEQ ¶
SubTypeNameEQ applies the EQ predicate on the "subTypeName" field.
func SubTypeNameEqualFold ¶
SubTypeNameEqualFold applies the EqualFold predicate on the "subTypeName" field.
func SubTypeNameGT ¶
SubTypeNameGT applies the GT predicate on the "subTypeName" field.
func SubTypeNameGTE ¶
SubTypeNameGTE applies the GTE predicate on the "subTypeName" field.
func SubTypeNameHasPrefix ¶
SubTypeNameHasPrefix applies the HasPrefix predicate on the "subTypeName" field.
func SubTypeNameHasSuffix ¶
SubTypeNameHasSuffix applies the HasSuffix predicate on the "subTypeName" field.
func SubTypeNameIn ¶
SubTypeNameIn applies the In predicate on the "subTypeName" field.
func SubTypeNameLT ¶
SubTypeNameLT applies the LT predicate on the "subTypeName" field.
func SubTypeNameLTE ¶
SubTypeNameLTE applies the LTE predicate on the "subTypeName" field.
func SubTypeNameNEQ ¶
SubTypeNameNEQ applies the NEQ predicate on the "subTypeName" field.
func SubTypeNameNotIn ¶
SubTypeNameNotIn applies the NotIn predicate on the "subTypeName" field.
func SubTypeNotIn ¶
SubTypeNotIn applies the NotIn predicate on the "subType" field.
func TypeName ¶
TypeName applies equality check predicate on the "typeName" field. It's identical to TypeNameEQ.
func TypeNameContains ¶
TypeNameContains applies the Contains predicate on the "typeName" field.
func TypeNameContainsFold ¶
TypeNameContainsFold applies the ContainsFold predicate on the "typeName" field.
func TypeNameEQ ¶
TypeNameEQ applies the EQ predicate on the "typeName" field.
func TypeNameEqualFold ¶
TypeNameEqualFold applies the EqualFold predicate on the "typeName" field.
func TypeNameGT ¶
TypeNameGT applies the GT predicate on the "typeName" field.
func TypeNameGTE ¶
TypeNameGTE applies the GTE predicate on the "typeName" field.
func TypeNameHasPrefix ¶
TypeNameHasPrefix applies the HasPrefix predicate on the "typeName" field.
func TypeNameHasSuffix ¶
TypeNameHasSuffix applies the HasSuffix predicate on the "typeName" field.
func TypeNameIn ¶
TypeNameIn applies the In predicate on the "typeName" field.
func TypeNameLT ¶
TypeNameLT applies the LT predicate on the "typeName" field.
func TypeNameLTE ¶
TypeNameLTE applies the LTE predicate on the "typeName" field.
func TypeNameNEQ ¶
TypeNameNEQ applies the NEQ predicate on the "typeName" field.
func TypeNameNotIn ¶
TypeNameNotIn applies the NotIn predicate on the "typeName" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).