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 Name(v string) predicate.Car
- func NameContains(v string) predicate.Car
- func NameContainsFold(v string) predicate.Car
- func NameEQ(v string) predicate.Car
- func NameEqualFold(v string) predicate.Car
- func NameGT(v string) predicate.Car
- func NameGTE(v string) predicate.Car
- func NameHasPrefix(v string) predicate.Car
- func NameHasSuffix(v string) predicate.Car
- func NameIn(vs ...string) predicate.Car
- func NameLT(v string) predicate.Car
- func NameLTE(v string) predicate.Car
- func NameNEQ(v string) predicate.Car
- func NameNotIn(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // 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 that 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, FieldName, }
Columns holds all SQL columns for car fields.
var ForeignKeys = []string{
"user_cars",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "cars" table and are not defined as standalone fields in the schema.
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
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 ¶
This section is empty.