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 NameIsNil() 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 NameNotNil() 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" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "oid" // Table holds the table name of the car in the database. Table = "Car" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "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 = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_car" )
Variables ¶
var Columns = []string{ FieldID, FieldName, }
Columns holds all SQL columns for car fields.
var ForeignKeys = []string{
"user_car",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "Car" 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 Name ¶ added in v0.11.0
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶ added in v0.11.0
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶ added in v0.11.0
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶ added in v0.11.0
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶ added in v0.11.0
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶ added in v0.11.0
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶ added in v0.11.0
NameNotNil applies the NotNil 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.