Documentation ¶
Index ¶
- Constants
- Variables
- func AfterID(v float64) predicate.Car
- func AfterIDEQ(v float64) predicate.Car
- func AfterIDGT(v float64) predicate.Car
- func AfterIDGTE(v float64) predicate.Car
- func AfterIDIn(vs ...float64) predicate.Car
- func AfterIDIsNil() predicate.Car
- func AfterIDLT(v float64) predicate.Car
- func AfterIDLTE(v float64) predicate.Car
- func AfterIDNEQ(v float64) predicate.Car
- func AfterIDNotIn(vs ...float64) predicate.Car
- func AfterIDNotNil() predicate.Car
- func And(predicates ...predicate.Car) predicate.Car
- func BeforeID(v float64) predicate.Car
- func BeforeIDEQ(v float64) predicate.Car
- func BeforeIDGT(v float64) predicate.Car
- func BeforeIDGTE(v float64) predicate.Car
- func BeforeIDIn(vs ...float64) predicate.Car
- func BeforeIDIsNil() predicate.Car
- func BeforeIDLT(v float64) predicate.Car
- func BeforeIDLTE(v float64) predicate.Car
- func BeforeIDNEQ(v float64) predicate.Car
- func BeforeIDNotIn(vs ...float64) predicate.Car
- func BeforeIDNotNil() predicate.Car
- func HasOwner() predicate.Car
- func HasOwnerWith(preds ...predicate.Pet) predicate.Car
- func ID(id int) predicate.Car
- func IDEQ(id int) predicate.Car
- func IDGT(id int) predicate.Car
- func IDGTE(id int) predicate.Car
- func IDIn(ids ...int) predicate.Car
- func IDLT(id int) predicate.Car
- func IDLTE(id int) predicate.Car
- func IDNEQ(id int) predicate.Car
- func IDNotIn(ids ...int) predicate.Car
- func Model(v string) predicate.Car
- func ModelContains(v string) predicate.Car
- func ModelContainsFold(v string) predicate.Car
- func ModelEQ(v string) predicate.Car
- func ModelEqualFold(v string) predicate.Car
- func ModelGT(v string) predicate.Car
- func ModelGTE(v string) predicate.Car
- func ModelHasPrefix(v string) predicate.Car
- func ModelHasSuffix(v string) predicate.Car
- func ModelIn(vs ...string) predicate.Car
- func ModelLT(v string) predicate.Car
- func ModelLTE(v string) predicate.Car
- func ModelNEQ(v string) predicate.Car
- func ModelNotIn(vs ...string) predicate.Car
- func Not(p predicate.Car) predicate.Car
- func Or(predicates ...predicate.Car) predicate.Car
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the car type in the database. Label = "car" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBeforeID holds the string denoting the before_id field in the database. FieldBeforeID = "before_id" // FieldAfterID holds the string denoting the after_id field in the database. FieldAfterID = "after_id" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the car in the database. Table = "cars" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "cars" // OwnerInverseTable is the table name for the Pet entity. // It exists in this package in order to avoid circular dependency with the "pet" package. OwnerInverseTable = "pets" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "pet_cars" )
Variables ¶
var ( // BeforeIDValidator is a validator for the "before_id" field. It is called by the builders before save. BeforeIDValidator func(float64) error // AfterIDValidator is a validator for the "after_id" field. It is called by the builders before save. AfterIDValidator func(float64) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int) error )
var Columns = []string{ FieldID, FieldBeforeID, FieldAfterID, FieldModel, }
Columns holds all SQL columns for car fields.
var ForeignKeys = []string{
"pet_cars",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Car type.
Functions ¶
func AfterID ¶
AfterID applies equality check predicate on the "after_id" field. It's identical to AfterIDEQ.
func AfterIDGTE ¶
AfterIDGTE applies the GTE predicate on the "after_id" field.
func AfterIDIsNil ¶
AfterIDIsNil applies the IsNil predicate on the "after_id" field.
func AfterIDLTE ¶
AfterIDLTE applies the LTE predicate on the "after_id" field.
func AfterIDNEQ ¶
AfterIDNEQ applies the NEQ predicate on the "after_id" field.
func AfterIDNotIn ¶
AfterIDNotIn applies the NotIn predicate on the "after_id" field.
func AfterIDNotNil ¶
AfterIDNotNil applies the NotNil predicate on the "after_id" field.
func BeforeID ¶
BeforeID applies equality check predicate on the "before_id" field. It's identical to BeforeIDEQ.
func BeforeIDEQ ¶
BeforeIDEQ applies the EQ predicate on the "before_id" field.
func BeforeIDGT ¶
BeforeIDGT applies the GT predicate on the "before_id" field.
func BeforeIDGTE ¶
BeforeIDGTE applies the GTE predicate on the "before_id" field.
func BeforeIDIn ¶
BeforeIDIn applies the In predicate on the "before_id" field.
func BeforeIDIsNil ¶
BeforeIDIsNil applies the IsNil predicate on the "before_id" field.
func BeforeIDLT ¶
BeforeIDLT applies the LT predicate on the "before_id" field.
func BeforeIDLTE ¶
BeforeIDLTE applies the LTE predicate on the "before_id" field.
func BeforeIDNEQ ¶
BeforeIDNEQ applies the NEQ predicate on the "before_id" field.
func BeforeIDNotIn ¶
BeforeIDNotIn applies the NotIn predicate on the "before_id" field.
func BeforeIDNotNil ¶
BeforeIDNotNil applies the NotNil predicate on the "before_id" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func ValidColumn ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.