Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Car) predicate.Car
- func CreateTime(v time.Time) predicate.Car
- func CreateTimeEQ(v time.Time) predicate.Car
- func CreateTimeGT(v time.Time) predicate.Car
- func CreateTimeGTE(v time.Time) predicate.Car
- func CreateTimeIn(vs ...time.Time) predicate.Car
- func CreateTimeLT(v time.Time) predicate.Car
- func CreateTimeLTE(v time.Time) predicate.Car
- func CreateTimeNEQ(v time.Time) predicate.Car
- func CreateTimeNotIn(vs ...time.Time) 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 UpdateTime(v time.Time) predicate.Car
- func UpdateTimeEQ(v time.Time) predicate.Car
- func UpdateTimeGT(v time.Time) predicate.Car
- func UpdateTimeGTE(v time.Time) predicate.Car
- func UpdateTimeIn(vs ...time.Time) predicate.Car
- func UpdateTimeLT(v time.Time) predicate.Car
- func UpdateTimeLTE(v time.Time) predicate.Car
- func UpdateTimeNEQ(v time.Time) predicate.Car
- func UpdateTimeNotIn(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" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // 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 = "t_car" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "t_car" // 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 = "t_user" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_cars" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, 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 "t_car" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" 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 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 UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.