Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Feat) predicate.Feat
- func DescIsNil() predicate.Feat
- func DescNotNil() predicate.Feat
- func ID(id int) predicate.Feat
- func IDEQ(id int) predicate.Feat
- func IDGT(id int) predicate.Feat
- func IDGTE(id int) predicate.Feat
- func IDIn(ids ...int) predicate.Feat
- func IDLT(id int) predicate.Feat
- func IDLTE(id int) predicate.Feat
- func IDNEQ(id int) predicate.Feat
- func IDNotIn(ids ...int) predicate.Feat
- func Indx(v string) predicate.Feat
- func IndxContains(v string) predicate.Feat
- func IndxContainsFold(v string) predicate.Feat
- func IndxEQ(v string) predicate.Feat
- func IndxEqualFold(v string) predicate.Feat
- func IndxGT(v string) predicate.Feat
- func IndxGTE(v string) predicate.Feat
- func IndxHasPrefix(v string) predicate.Feat
- func IndxHasSuffix(v string) predicate.Feat
- func IndxIn(vs ...string) predicate.Feat
- func IndxLT(v string) predicate.Feat
- func IndxLTE(v string) predicate.Feat
- func IndxNEQ(v string) predicate.Feat
- func IndxNotIn(vs ...string) predicate.Feat
- func Name(v string) predicate.Feat
- func NameContains(v string) predicate.Feat
- func NameContainsFold(v string) predicate.Feat
- func NameEQ(v string) predicate.Feat
- func NameEqualFold(v string) predicate.Feat
- func NameGT(v string) predicate.Feat
- func NameGTE(v string) predicate.Feat
- func NameHasPrefix(v string) predicate.Feat
- func NameHasSuffix(v string) predicate.Feat
- func NameIn(vs ...string) predicate.Feat
- func NameLT(v string) predicate.Feat
- func NameLTE(v string) predicate.Feat
- func NameNEQ(v string) predicate.Feat
- func NameNotIn(vs ...string) predicate.Feat
- func Not(p predicate.Feat) predicate.Feat
- func Or(predicates ...predicate.Feat) predicate.Feat
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the feat type in the database. Label = "feat" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndx holds the string denoting the indx field in the database. FieldIndx = "indx" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // Table holds the table name of the feat in the database. Table = "feats" )
Variables ¶
var ( // IndxValidator is a validator for the "indx" field. It is called by the builders before save. IndxValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Columns holds all SQL columns for feat fields.
Functions ¶
func DescNotNil ¶
DescNotNil applies the NotNil predicate on the "desc" field.
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Feat queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndx ¶
func ByIndx(opts ...sql.OrderTermOption) OrderOption
ByIndx orders the results by the indx field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.