Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Car) predicate.Car
- func HasRentals() predicate.Car
- func HasRentalsWith(preds ...predicate.Rental) predicate.Car
- func ID(id uuid.UUID) predicate.Car
- func IDEQ(id uuid.UUID) predicate.Car
- func IDGT(id uuid.UUID) predicate.Car
- func IDGTE(id uuid.UUID) predicate.Car
- func IDIn(ids ...uuid.UUID) predicate.Car
- func IDLT(id uuid.UUID) predicate.Car
- func IDLTE(id uuid.UUID) predicate.Car
- func IDNEQ(id uuid.UUID) predicate.Car
- func IDNotIn(ids ...uuid.UUID) predicate.Car
- func Not(p predicate.Car) predicate.Car
- func Number(v string) predicate.Car
- func NumberContains(v string) predicate.Car
- func NumberContainsFold(v string) predicate.Car
- func NumberEQ(v string) predicate.Car
- func NumberEqualFold(v string) predicate.Car
- func NumberGT(v string) predicate.Car
- func NumberGTE(v string) predicate.Car
- func NumberHasPrefix(v string) predicate.Car
- func NumberHasSuffix(v string) predicate.Car
- func NumberIn(vs ...string) predicate.Car
- func NumberIsNil() predicate.Car
- func NumberLT(v string) predicate.Car
- func NumberLTE(v string) predicate.Car
- func NumberNEQ(v string) predicate.Car
- func NumberNotIn(vs ...string) predicate.Car
- func NumberNotNil() 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" // FieldNumber holds the string denoting the number field in the database. FieldNumber = "number" // EdgeRentals holds the string denoting the rentals edge name in mutations. EdgeRentals = "rentals" // Table holds the table name of the car in the database. Table = "cars" // RentalsTable is the table that holds the rentals relation/edge. RentalsTable = "rentals" // RentalsInverseTable is the table name for the Rental entity. // It exists in this package in order to avoid circular dependency with the "rental" package. RentalsInverseTable = "rentals" // RentalsColumn is the table column denoting the rentals relation/edge. RentalsColumn = "car_id" )
Variables ¶
var Columns = []string{ FieldID, FieldNumber, }
Columns holds all SQL columns for car fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func HasRentals ¶
HasRentals applies the HasEdge predicate on the "rentals" edge.
func HasRentalsWith ¶
HasRentalsWith applies the HasEdge predicate on the "rentals" edge with a given conditions (other predicates).
func Number ¶
Number applies equality check predicate on the "number" field. It's identical to NumberEQ.
func NumberContains ¶
NumberContains applies the Contains predicate on the "number" field.
func NumberContainsFold ¶
NumberContainsFold applies the ContainsFold predicate on the "number" field.
func NumberEqualFold ¶
NumberEqualFold applies the EqualFold predicate on the "number" field.
func NumberHasPrefix ¶
NumberHasPrefix applies the HasPrefix predicate on the "number" field.
func NumberHasSuffix ¶
NumberHasSuffix applies the HasSuffix predicate on the "number" field.
func NumberIsNil ¶
NumberIsNil applies the IsNil predicate on the "number" field.
func NumberNotIn ¶
NumberNotIn applies the NotIn predicate on the "number" field.
func NumberNotNil ¶
NumberNotNil applies the NotNil predicate on the "number" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.