Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.Vehicle
- func ActiveEQ(v bool) predicate.Vehicle
- func ActiveIsNil() predicate.Vehicle
- func ActiveNEQ(v bool) predicate.Vehicle
- func ActiveNotNil() predicate.Vehicle
- func And(predicates ...predicate.Vehicle) predicate.Vehicle
- func Condition(v string) predicate.Vehicle
- func ConditionContains(v string) predicate.Vehicle
- func ConditionContainsFold(v string) predicate.Vehicle
- func ConditionEQ(v string) predicate.Vehicle
- func ConditionEqualFold(v string) predicate.Vehicle
- func ConditionGT(v string) predicate.Vehicle
- func ConditionGTE(v string) predicate.Vehicle
- func ConditionHasPrefix(v string) predicate.Vehicle
- func ConditionHasSuffix(v string) predicate.Vehicle
- func ConditionIn(vs ...string) predicate.Vehicle
- func ConditionIsNil() predicate.Vehicle
- func ConditionLT(v string) predicate.Vehicle
- func ConditionLTE(v string) predicate.Vehicle
- func ConditionNEQ(v string) predicate.Vehicle
- func ConditionNotIn(vs ...string) predicate.Vehicle
- func ConditionNotNil() predicate.Vehicle
- func CreateTime(v time.Time) predicate.Vehicle
- func CreateTimeEQ(v time.Time) predicate.Vehicle
- func CreateTimeGT(v time.Time) predicate.Vehicle
- func CreateTimeGTE(v time.Time) predicate.Vehicle
- func CreateTimeIn(vs ...time.Time) predicate.Vehicle
- func CreateTimeLT(v time.Time) predicate.Vehicle
- func CreateTimeLTE(v time.Time) predicate.Vehicle
- func CreateTimeNEQ(v time.Time) predicate.Vehicle
- func CreateTimeNotIn(vs ...time.Time) predicate.Vehicle
- func ID(id int) predicate.Vehicle
- func IDEQ(id int) predicate.Vehicle
- func IDGT(id int) predicate.Vehicle
- func IDGTE(id int) predicate.Vehicle
- func IDIn(ids ...int) predicate.Vehicle
- func IDLT(id int) predicate.Vehicle
- func IDLTE(id int) predicate.Vehicle
- func IDNEQ(id int) predicate.Vehicle
- func IDNotIn(ids ...int) predicate.Vehicle
- func Make(v string) predicate.Vehicle
- func MakeContains(v string) predicate.Vehicle
- func MakeContainsFold(v string) predicate.Vehicle
- func MakeEQ(v string) predicate.Vehicle
- func MakeEqualFold(v string) predicate.Vehicle
- func MakeGT(v string) predicate.Vehicle
- func MakeGTE(v string) predicate.Vehicle
- func MakeHasPrefix(v string) predicate.Vehicle
- func MakeHasSuffix(v string) predicate.Vehicle
- func MakeIn(vs ...string) predicate.Vehicle
- func MakeLT(v string) predicate.Vehicle
- func MakeLTE(v string) predicate.Vehicle
- func MakeNEQ(v string) predicate.Vehicle
- func MakeNotIn(vs ...string) predicate.Vehicle
- func Miles(v int64) predicate.Vehicle
- func MilesEQ(v int64) predicate.Vehicle
- func MilesGT(v int64) predicate.Vehicle
- func MilesGTE(v int64) predicate.Vehicle
- func MilesIn(vs ...int64) predicate.Vehicle
- func MilesIsNil() predicate.Vehicle
- func MilesLT(v int64) predicate.Vehicle
- func MilesLTE(v int64) predicate.Vehicle
- func MilesNEQ(v int64) predicate.Vehicle
- func MilesNotIn(vs ...int64) predicate.Vehicle
- func MilesNotNil() predicate.Vehicle
- func Model(v string) predicate.Vehicle
- func ModelContains(v string) predicate.Vehicle
- func ModelContainsFold(v string) predicate.Vehicle
- func ModelEQ(v string) predicate.Vehicle
- func ModelEqualFold(v string) predicate.Vehicle
- func ModelGT(v string) predicate.Vehicle
- func ModelGTE(v string) predicate.Vehicle
- func ModelHasPrefix(v string) predicate.Vehicle
- func ModelHasSuffix(v string) predicate.Vehicle
- func ModelIn(vs ...string) predicate.Vehicle
- func ModelLT(v string) predicate.Vehicle
- func ModelLTE(v string) predicate.Vehicle
- func ModelNEQ(v string) predicate.Vehicle
- func ModelNotIn(vs ...string) predicate.Vehicle
- func Mpg(v int64) predicate.Vehicle
- func MpgEQ(v int64) predicate.Vehicle
- func MpgGT(v int64) predicate.Vehicle
- func MpgGTE(v int64) predicate.Vehicle
- func MpgIn(vs ...int64) predicate.Vehicle
- func MpgIsNil() predicate.Vehicle
- func MpgLT(v int64) predicate.Vehicle
- func MpgLTE(v int64) predicate.Vehicle
- func MpgNEQ(v int64) predicate.Vehicle
- func MpgNotIn(vs ...int64) predicate.Vehicle
- func MpgNotNil() predicate.Vehicle
- func Not(p predicate.Vehicle) predicate.Vehicle
- func Or(predicates ...predicate.Vehicle) predicate.Vehicle
- func Owner(v string) predicate.Vehicle
- func OwnerContains(v string) predicate.Vehicle
- func OwnerContainsFold(v string) predicate.Vehicle
- func OwnerEQ(v string) predicate.Vehicle
- func OwnerEqualFold(v string) predicate.Vehicle
- func OwnerGT(v string) predicate.Vehicle
- func OwnerGTE(v string) predicate.Vehicle
- func OwnerHasPrefix(v string) predicate.Vehicle
- func OwnerHasSuffix(v string) predicate.Vehicle
- func OwnerIn(vs ...string) predicate.Vehicle
- func OwnerIsNil() predicate.Vehicle
- func OwnerLT(v string) predicate.Vehicle
- func OwnerLTE(v string) predicate.Vehicle
- func OwnerNEQ(v string) predicate.Vehicle
- func OwnerNotIn(vs ...string) predicate.Vehicle
- func OwnerNotNil() predicate.Vehicle
- func UpdateTime(v time.Time) predicate.Vehicle
- func UpdateTimeEQ(v time.Time) predicate.Vehicle
- func UpdateTimeGT(v time.Time) predicate.Vehicle
- func UpdateTimeGTE(v time.Time) predicate.Vehicle
- func UpdateTimeIn(vs ...time.Time) predicate.Vehicle
- func UpdateTimeLT(v time.Time) predicate.Vehicle
- func UpdateTimeLTE(v time.Time) predicate.Vehicle
- func UpdateTimeNEQ(v time.Time) predicate.Vehicle
- func UpdateTimeNotIn(vs ...time.Time) predicate.Vehicle
- func ValidColumn(column string) bool
- func Year(v string) predicate.Vehicle
- func YearContains(v string) predicate.Vehicle
- func YearContainsFold(v string) predicate.Vehicle
- func YearEQ(v string) predicate.Vehicle
- func YearEqualFold(v string) predicate.Vehicle
- func YearGT(v string) predicate.Vehicle
- func YearGTE(v string) predicate.Vehicle
- func YearHasPrefix(v string) predicate.Vehicle
- func YearHasSuffix(v string) predicate.Vehicle
- func YearIn(vs ...string) predicate.Vehicle
- func YearIsNil() predicate.Vehicle
- func YearLT(v string) predicate.Vehicle
- func YearLTE(v string) predicate.Vehicle
- func YearNEQ(v string) predicate.Vehicle
- func YearNotIn(vs ...string) predicate.Vehicle
- func YearNotNil() predicate.Vehicle
Constants ¶
const ( // Label holds the string label denoting the vehicle type in the database. Label = "vehicle" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldMake holds the string denoting the make field in the database. FieldMake = "make" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldMiles holds the string denoting the miles field in the database. FieldMiles = "miles" // FieldMpg holds the string denoting the mpg field in the database. FieldMpg = "mpg" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // FieldYear holds the string denoting the year field in the database. FieldYear = "year" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldCondition holds the string denoting the condition field in the database. FieldCondition = "condition" // Table holds the table name of the vehicle in the database. Table = "vehicles" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // ConditionValidator is a validator for the "condition" field. It is called by the builders before save. ConditionValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldMake, FieldModel, FieldMiles, FieldMpg, FieldOwner, FieldYear, FieldActive, FieldCondition, }
Columns holds all SQL columns for vehicle fields.
Functions ¶
func Active ¶ added in v0.2.0
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func ActiveIsNil ¶ added in v0.3.0
ActiveIsNil applies the IsNil predicate on the "active" field.
func ActiveNotNil ¶ added in v0.3.0
ActiveNotNil applies the NotNil predicate on the "active" field.
func Condition ¶
Condition applies equality check predicate on the "condition" field. It's identical to ConditionEQ.
func ConditionContains ¶ added in v0.4.0
ConditionContains applies the Contains predicate on the "condition" field.
func ConditionContainsFold ¶ added in v0.4.0
ConditionContainsFold applies the ContainsFold predicate on the "condition" field.
func ConditionEQ ¶
ConditionEQ applies the EQ predicate on the "condition" field.
func ConditionEqualFold ¶ added in v0.4.0
ConditionEqualFold applies the EqualFold predicate on the "condition" field.
func ConditionGT ¶ added in v0.4.0
ConditionGT applies the GT predicate on the "condition" field.
func ConditionGTE ¶ added in v0.4.0
ConditionGTE applies the GTE predicate on the "condition" field.
func ConditionHasPrefix ¶ added in v0.4.0
ConditionHasPrefix applies the HasPrefix predicate on the "condition" field.
func ConditionHasSuffix ¶ added in v0.4.0
ConditionHasSuffix applies the HasSuffix predicate on the "condition" field.
func ConditionIn ¶
ConditionIn applies the In predicate on the "condition" field.
func ConditionIsNil ¶ added in v0.3.0
ConditionIsNil applies the IsNil predicate on the "condition" field.
func ConditionLT ¶ added in v0.4.0
ConditionLT applies the LT predicate on the "condition" field.
func ConditionLTE ¶ added in v0.4.0
ConditionLTE applies the LTE predicate on the "condition" field.
func ConditionNEQ ¶
ConditionNEQ applies the NEQ predicate on the "condition" field.
func ConditionNotIn ¶
ConditionNotIn applies the NotIn predicate on the "condition" field.
func ConditionNotNil ¶ added in v0.3.0
ConditionNotNil applies the NotNil predicate on the "condition" field.
func CreateTime ¶ added in v0.3.0
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶ added in v0.3.0
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶ added in v0.3.0
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶ added in v0.3.0
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶ added in v0.3.0
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶ added in v0.3.0
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶ added in v0.3.0
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶ added in v0.3.0
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶ added in v0.3.0
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func MakeContains ¶
MakeContains applies the Contains predicate on the "make" field.
func MakeContainsFold ¶
MakeContainsFold applies the ContainsFold predicate on the "make" field.
func MakeEqualFold ¶
MakeEqualFold applies the EqualFold predicate on the "make" field.
func MakeHasPrefix ¶
MakeHasPrefix applies the HasPrefix predicate on the "make" field.
func MakeHasSuffix ¶
MakeHasSuffix applies the HasSuffix predicate on the "make" field.
func Miles ¶ added in v0.3.0
Miles applies equality check predicate on the "miles" field. It's identical to MilesEQ.
func MilesIsNil ¶ added in v0.3.0
MilesIsNil applies the IsNil predicate on the "miles" field.
func MilesNotIn ¶ added in v0.3.0
MilesNotIn applies the NotIn predicate on the "miles" field.
func MilesNotNil ¶ added in v0.3.0
MilesNotNil applies the NotNil predicate on the "miles" field.
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func Mpg ¶ added in v0.3.0
Mpg applies equality check predicate on the "mpg" field. It's identical to MpgEQ.
func Owner ¶ added in v0.3.0
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶ added in v0.3.0
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶ added in v0.3.0
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶ added in v0.3.0
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶ added in v0.3.0
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶ added in v0.3.0
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerIsNil ¶ added in v0.3.0
OwnerIsNil applies the IsNil predicate on the "owner" field.
func OwnerNotIn ¶ added in v0.3.0
OwnerNotIn applies the NotIn predicate on the "owner" field.
func OwnerNotNil ¶ added in v0.3.0
OwnerNotNil applies the NotNil predicate on the "owner" field.
func UpdateTime ¶ added in v0.3.0
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶ added in v0.3.0
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶ added in v0.3.0
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶ added in v0.3.0
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶ added in v0.3.0
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶ added in v0.3.0
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶ added in v0.3.0
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶ added in v0.3.0
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶ added in v0.3.0
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func YearContains ¶
YearContains applies the Contains predicate on the "year" field.
func YearContainsFold ¶
YearContainsFold applies the ContainsFold predicate on the "year" field.
func YearEqualFold ¶
YearEqualFold applies the EqualFold predicate on the "year" field.
func YearHasPrefix ¶
YearHasPrefix applies the HasPrefix predicate on the "year" field.
func YearHasSuffix ¶
YearHasSuffix applies the HasSuffix predicate on the "year" field.
func YearNotNil ¶ added in v0.3.0
YearNotNil applies the NotNil predicate on the "year" field.
Types ¶
This section is empty.