Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.KeycapModel) predicate.KeycapModel
- func ID(id int64) predicate.KeycapModel
- func IDEQ(id int64) predicate.KeycapModel
- func IDGT(id int64) predicate.KeycapModel
- func IDGTE(id int64) predicate.KeycapModel
- func IDIn(ids ...int64) predicate.KeycapModel
- func IDLT(id int64) predicate.KeycapModel
- func IDLTE(id int64) predicate.KeycapModel
- func IDNEQ(id int64) predicate.KeycapModel
- func IDNotIn(ids ...int64) predicate.KeycapModel
- func MaterialEQ(v Material) predicate.KeycapModel
- func MaterialIn(vs ...Material) predicate.KeycapModel
- func MaterialNEQ(v Material) predicate.KeycapModel
- func MaterialNotIn(vs ...Material) predicate.KeycapModel
- func MaterialValidator(m Material) error
- func Name(v string) predicate.KeycapModel
- func NameContains(v string) predicate.KeycapModel
- func NameContainsFold(v string) predicate.KeycapModel
- func NameEQ(v string) predicate.KeycapModel
- func NameEqualFold(v string) predicate.KeycapModel
- func NameGT(v string) predicate.KeycapModel
- func NameGTE(v string) predicate.KeycapModel
- func NameHasPrefix(v string) predicate.KeycapModel
- func NameHasSuffix(v string) predicate.KeycapModel
- func NameIn(vs ...string) predicate.KeycapModel
- func NameLT(v string) predicate.KeycapModel
- func NameLTE(v string) predicate.KeycapModel
- func NameNEQ(v string) predicate.KeycapModel
- func NameNotIn(vs ...string) predicate.KeycapModel
- func Not(p predicate.KeycapModel) predicate.KeycapModel
- func Or(predicates ...predicate.KeycapModel) predicate.KeycapModel
- func Profile(v string) predicate.KeycapModel
- func ProfileContains(v string) predicate.KeycapModel
- func ProfileContainsFold(v string) predicate.KeycapModel
- func ProfileEQ(v string) predicate.KeycapModel
- func ProfileEqualFold(v string) predicate.KeycapModel
- func ProfileGT(v string) predicate.KeycapModel
- func ProfileGTE(v string) predicate.KeycapModel
- func ProfileHasPrefix(v string) predicate.KeycapModel
- func ProfileHasSuffix(v string) predicate.KeycapModel
- func ProfileIn(vs ...string) predicate.KeycapModel
- func ProfileLT(v string) predicate.KeycapModel
- func ProfileLTE(v string) predicate.KeycapModel
- func ProfileNEQ(v string) predicate.KeycapModel
- func ProfileNotIn(vs ...string) predicate.KeycapModel
- func ValidColumn(column string) bool
- type Material
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the keycapmodel type in the database. Label = "keycap_model" // 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" // FieldProfile holds the string denoting the profile field in the database. FieldProfile = "profile" // FieldMaterial holds the string denoting the material field in the database. FieldMaterial = "material" // Table holds the table name of the keycapmodel in the database. Table = "keycap_models" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldProfile, FieldMaterial, }
Columns holds all SQL columns for keycapmodel fields.
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Functions ¶
func And ¶
func And(predicates ...predicate.KeycapModel) predicate.KeycapModel
And groups predicates with the AND operator between them.
func IDEQ ¶
func IDEQ(id int64) predicate.KeycapModel
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.KeycapModel
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.KeycapModel
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.KeycapModel
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.KeycapModel
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.KeycapModel
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.KeycapModel
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.KeycapModel
IDNotIn applies the NotIn predicate on the ID field.
func MaterialEQ ¶
func MaterialEQ(v Material) predicate.KeycapModel
MaterialEQ applies the EQ predicate on the "material" field.
func MaterialIn ¶
func MaterialIn(vs ...Material) predicate.KeycapModel
MaterialIn applies the In predicate on the "material" field.
func MaterialNEQ ¶
func MaterialNEQ(v Material) predicate.KeycapModel
MaterialNEQ applies the NEQ predicate on the "material" field.
func MaterialNotIn ¶
func MaterialNotIn(vs ...Material) predicate.KeycapModel
MaterialNotIn applies the NotIn predicate on the "material" field.
func MaterialValidator ¶
MaterialValidator is a validator for the "material" field enum values. It is called by the builders before save.
func Name ¶
func Name(v string) predicate.KeycapModel
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.KeycapModel
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.KeycapModel
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.KeycapModel
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.KeycapModel
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.KeycapModel
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.KeycapModel
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.KeycapModel
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.KeycapModel
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.KeycapModel
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.KeycapModel
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.KeycapModel
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.KeycapModel
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.KeycapModel
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.KeycapModel) predicate.KeycapModel
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.KeycapModel) predicate.KeycapModel
Or groups predicates with the OR operator between them.
func Profile ¶
func Profile(v string) predicate.KeycapModel
Profile applies equality check predicate on the "profile" field. It's identical to ProfileEQ.
func ProfileContains ¶
func ProfileContains(v string) predicate.KeycapModel
ProfileContains applies the Contains predicate on the "profile" field.
func ProfileContainsFold ¶
func ProfileContainsFold(v string) predicate.KeycapModel
ProfileContainsFold applies the ContainsFold predicate on the "profile" field.
func ProfileEQ ¶
func ProfileEQ(v string) predicate.KeycapModel
ProfileEQ applies the EQ predicate on the "profile" field.
func ProfileEqualFold ¶
func ProfileEqualFold(v string) predicate.KeycapModel
ProfileEqualFold applies the EqualFold predicate on the "profile" field.
func ProfileGT ¶
func ProfileGT(v string) predicate.KeycapModel
ProfileGT applies the GT predicate on the "profile" field.
func ProfileGTE ¶
func ProfileGTE(v string) predicate.KeycapModel
ProfileGTE applies the GTE predicate on the "profile" field.
func ProfileHasPrefix ¶
func ProfileHasPrefix(v string) predicate.KeycapModel
ProfileHasPrefix applies the HasPrefix predicate on the "profile" field.
func ProfileHasSuffix ¶
func ProfileHasSuffix(v string) predicate.KeycapModel
ProfileHasSuffix applies the HasSuffix predicate on the "profile" field.
func ProfileIn ¶
func ProfileIn(vs ...string) predicate.KeycapModel
ProfileIn applies the In predicate on the "profile" field.
func ProfileLT ¶
func ProfileLT(v string) predicate.KeycapModel
ProfileLT applies the LT predicate on the "profile" field.
func ProfileLTE ¶
func ProfileLTE(v string) predicate.KeycapModel
ProfileLTE applies the LTE predicate on the "profile" field.
func ProfileNEQ ¶
func ProfileNEQ(v string) predicate.KeycapModel
ProfileNEQ applies the NEQ predicate on the "profile" field.
func ProfileNotIn ¶
func ProfileNotIn(vs ...string) predicate.KeycapModel
ProfileNotIn applies the NotIn predicate on the "profile" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the KeycapModel queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMaterial ¶
func ByMaterial(opts ...sql.OrderTermOption) OrderOption
ByMaterial orders the results by the material field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProfile ¶
func ByProfile(opts ...sql.OrderTermOption) OrderOption
ByProfile orders the results by the profile field.