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 Not(p predicate.Car) predicate.Car
- func Or(predicates ...predicate.Car) predicate.Car
- func ValidColumn(column string) bool
Constants ¶
View Source
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" // 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 = "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_car" )
Variables ¶
View Source
var Columns = []string{ FieldID, }
Columns holds all SQL columns for car fields.
View Source
var ForeignKeys = []string{
"user_car",
}
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.