Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Car) predicate.Car
- func Brand(v string) predicate.Car
- func BrandContains(v string) predicate.Car
- func BrandContainsFold(v string) predicate.Car
- func BrandEQ(v string) predicate.Car
- func BrandEqualFold(v string) predicate.Car
- func BrandGT(v string) predicate.Car
- func BrandGTE(v string) predicate.Car
- func BrandHasPrefix(v string) predicate.Car
- func BrandHasSuffix(v string) predicate.Car
- func BrandIn(vs ...string) predicate.Car
- func BrandLT(v string) predicate.Car
- func BrandLTE(v string) predicate.Car
- func BrandNEQ(v string) predicate.Car
- func BrandNotIn(vs ...string) 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 ModelYear(v int) predicate.Car
- func ModelYearEQ(v int) predicate.Car
- func ModelYearGT(v int) predicate.Car
- func ModelYearGTE(v int) predicate.Car
- func ModelYearIn(vs ...int) predicate.Car
- func ModelYearLT(v int) predicate.Car
- func ModelYearLTE(v int) predicate.Car
- func ModelYearNEQ(v int) predicate.Car
- func ModelYearNotIn(vs ...int) predicate.Car
- func Nickname(v string) predicate.Car
- func NicknameContains(v string) predicate.Car
- func NicknameContainsFold(v string) predicate.Car
- func NicknameEQ(v string) predicate.Car
- func NicknameEqualFold(v string) predicate.Car
- func NicknameGT(v string) predicate.Car
- func NicknameGTE(v string) predicate.Car
- func NicknameHasPrefix(v string) predicate.Car
- func NicknameHasSuffix(v string) predicate.Car
- func NicknameIn(vs ...string) predicate.Car
- func NicknameLT(v string) predicate.Car
- func NicknameLTE(v string) predicate.Car
- func NicknameNEQ(v string) predicate.Car
- func NicknameNotIn(vs ...string) predicate.Car
- func Not(p predicate.Car) predicate.Car
- func Or(predicates ...predicate.Car) predicate.Car
- func ValidColumn(column string) bool
- type OrderOption
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" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldBrand holds the string denoting the brand field in the database. FieldBrand = "brand" // FieldModelYear holds the string denoting the model_year field in the database. FieldModelYear = "model_year" // Table holds the table name of the car in the database. Table = "cars" )
Variables ¶
var Columns = []string{ FieldID, FieldNickname, FieldBrand, FieldModelYear, }
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 Brand ¶
Brand applies equality check predicate on the "brand" field. It's identical to BrandEQ.
func BrandContains ¶
BrandContains applies the Contains predicate on the "brand" field.
func BrandContainsFold ¶
BrandContainsFold applies the ContainsFold predicate on the "brand" field.
func BrandEqualFold ¶
BrandEqualFold applies the EqualFold predicate on the "brand" field.
func BrandHasPrefix ¶
BrandHasPrefix applies the HasPrefix predicate on the "brand" field.
func BrandHasSuffix ¶
BrandHasSuffix applies the HasSuffix predicate on the "brand" field.
func BrandNotIn ¶
BrandNotIn applies the NotIn predicate on the "brand" field.
func ModelYear ¶
ModelYear applies equality check predicate on the "model_year" field. It's identical to ModelYearEQ.
func ModelYearEQ ¶
ModelYearEQ applies the EQ predicate on the "model_year" field.
func ModelYearGT ¶
ModelYearGT applies the GT predicate on the "model_year" field.
func ModelYearGTE ¶
ModelYearGTE applies the GTE predicate on the "model_year" field.
func ModelYearIn ¶
ModelYearIn applies the In predicate on the "model_year" field.
func ModelYearLT ¶
ModelYearLT applies the LT predicate on the "model_year" field.
func ModelYearLTE ¶
ModelYearLTE applies the LTE predicate on the "model_year" field.
func ModelYearNEQ ¶
ModelYearNEQ applies the NEQ predicate on the "model_year" field.
func ModelYearNotIn ¶
ModelYearNotIn applies the NotIn predicate on the "model_year" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
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 ByBrand ¶
func ByBrand(opts ...sql.OrderTermOption) OrderOption
ByBrand orders the results by the brand field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByModelYear ¶
func ByModelYear(opts ...sql.OrderTermOption) OrderOption
ByModelYear orders the results by the model_year field.
func ByNickname ¶
func ByNickname(opts ...sql.OrderTermOption) OrderOption
ByNickname orders the results by the nickname field.