Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Car) predicate.Car
- func HasOwner() predicate.Car
- func HasOwnerWith(preds ...predicate.User) 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 RegisteredAt(v time.Time) predicate.Car
- func RegisteredAtEQ(v time.Time) predicate.Car
- func RegisteredAtGT(v time.Time) predicate.Car
- func RegisteredAtGTE(v time.Time) predicate.Car
- func RegisteredAtIn(vs ...time.Time) predicate.Car
- func RegisteredAtLT(v time.Time) predicate.Car
- func RegisteredAtLTE(v time.Time) predicate.Car
- func RegisteredAtNEQ(v time.Time) predicate.Car
- func RegisteredAtNotIn(vs ...time.Time) 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" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldRegisteredAt holds the string denoting the registered_at field in the database. FieldRegisteredAt = "registered_at" // 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 User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_cars" )
Variables ¶
var Columns = []string{ FieldID, FieldModel, FieldRegisteredAt, }
Columns holds all SQL columns for car fields.
var ForeignKeys = []string{
"user_cars",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Car type.
Functions ¶
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 RegisteredAt ¶
RegisteredAt applies equality check predicate on the "registered_at" field. It's identical to RegisteredAtEQ.
func RegisteredAtEQ ¶
RegisteredAtEQ applies the EQ predicate on the "registered_at" field.
func RegisteredAtGT ¶
RegisteredAtGT applies the GT predicate on the "registered_at" field.
func RegisteredAtGTE ¶
RegisteredAtGTE applies the GTE predicate on the "registered_at" field.
func RegisteredAtIn ¶
RegisteredAtIn applies the In predicate on the "registered_at" field.
func RegisteredAtLT ¶
RegisteredAtLT applies the LT predicate on the "registered_at" field.
func RegisteredAtLTE ¶
RegisteredAtLTE applies the LTE predicate on the "registered_at" field.
func RegisteredAtNEQ ¶
RegisteredAtNEQ applies the NEQ predicate on the "registered_at" field.
func RegisteredAtNotIn ¶
RegisteredAtNotIn applies the NotIn predicate on the "registered_at" 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.