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
- type OrderOption
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 = "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 ¶
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 "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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Car queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
Click to show internal directories.
Click to hide internal directories.