vehicle

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for vehicle fields.

Functions

func Active added in v0.2.0

func Active(v bool) predicate.Vehicle

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ added in v0.2.0

func ActiveEQ(v bool) predicate.Vehicle

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveIsNil added in v0.3.0

func ActiveIsNil() predicate.Vehicle

ActiveIsNil applies the IsNil predicate on the "active" field.

func ActiveNEQ added in v0.2.0

func ActiveNEQ(v bool) predicate.Vehicle

ActiveNEQ applies the NEQ predicate on the "active" field.

func ActiveNotNil added in v0.3.0

func ActiveNotNil() predicate.Vehicle

ActiveNotNil applies the NotNil predicate on the "active" field.

func And

func And(predicates ...predicate.Vehicle) predicate.Vehicle

And groups predicates with the AND operator between them.

func Condition

func Condition(v string) predicate.Vehicle

Condition applies equality check predicate on the "condition" field. It's identical to ConditionEQ.

func ConditionContains added in v0.4.0

func ConditionContains(v string) predicate.Vehicle

ConditionContains applies the Contains predicate on the "condition" field.

func ConditionContainsFold added in v0.4.0

func ConditionContainsFold(v string) predicate.Vehicle

ConditionContainsFold applies the ContainsFold predicate on the "condition" field.

func ConditionEQ

func ConditionEQ(v string) predicate.Vehicle

ConditionEQ applies the EQ predicate on the "condition" field.

func ConditionEqualFold added in v0.4.0

func ConditionEqualFold(v string) predicate.Vehicle

ConditionEqualFold applies the EqualFold predicate on the "condition" field.

func ConditionGT added in v0.4.0

func ConditionGT(v string) predicate.Vehicle

ConditionGT applies the GT predicate on the "condition" field.

func ConditionGTE added in v0.4.0

func ConditionGTE(v string) predicate.Vehicle

ConditionGTE applies the GTE predicate on the "condition" field.

func ConditionHasPrefix added in v0.4.0

func ConditionHasPrefix(v string) predicate.Vehicle

ConditionHasPrefix applies the HasPrefix predicate on the "condition" field.

func ConditionHasSuffix added in v0.4.0

func ConditionHasSuffix(v string) predicate.Vehicle

ConditionHasSuffix applies the HasSuffix predicate on the "condition" field.

func ConditionIn

func ConditionIn(vs ...string) predicate.Vehicle

ConditionIn applies the In predicate on the "condition" field.

func ConditionIsNil added in v0.3.0

func ConditionIsNil() predicate.Vehicle

ConditionIsNil applies the IsNil predicate on the "condition" field.

func ConditionLT added in v0.4.0

func ConditionLT(v string) predicate.Vehicle

ConditionLT applies the LT predicate on the "condition" field.

func ConditionLTE added in v0.4.0

func ConditionLTE(v string) predicate.Vehicle

ConditionLTE applies the LTE predicate on the "condition" field.

func ConditionNEQ

func ConditionNEQ(v string) predicate.Vehicle

ConditionNEQ applies the NEQ predicate on the "condition" field.

func ConditionNotIn

func ConditionNotIn(vs ...string) predicate.Vehicle

ConditionNotIn applies the NotIn predicate on the "condition" field.

func ConditionNotNil added in v0.3.0

func ConditionNotNil() predicate.Vehicle

ConditionNotNil applies the NotNil predicate on the "condition" field.

func CreateTime added in v0.3.0

func CreateTime(v time.Time) predicate.Vehicle

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ added in v0.3.0

func CreateTimeEQ(v time.Time) predicate.Vehicle

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT added in v0.3.0

func CreateTimeGT(v time.Time) predicate.Vehicle

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE added in v0.3.0

func CreateTimeGTE(v time.Time) predicate.Vehicle

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn added in v0.3.0

func CreateTimeIn(vs ...time.Time) predicate.Vehicle

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT added in v0.3.0

func CreateTimeLT(v time.Time) predicate.Vehicle

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE added in v0.3.0

func CreateTimeLTE(v time.Time) predicate.Vehicle

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ added in v0.3.0

func CreateTimeNEQ(v time.Time) predicate.Vehicle

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn added in v0.3.0

func CreateTimeNotIn(vs ...time.Time) predicate.Vehicle

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func ID

func ID(id int) predicate.Vehicle

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Vehicle

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Vehicle

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Vehicle

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Vehicle

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Vehicle

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Vehicle

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Vehicle

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Vehicle

IDNotIn applies the NotIn predicate on the ID field.

func Make

func Make(v string) predicate.Vehicle

Make applies equality check predicate on the "make" field. It's identical to MakeEQ.

func MakeContains

func MakeContains(v string) predicate.Vehicle

MakeContains applies the Contains predicate on the "make" field.

func MakeContainsFold

func MakeContainsFold(v string) predicate.Vehicle

MakeContainsFold applies the ContainsFold predicate on the "make" field.

func MakeEQ

func MakeEQ(v string) predicate.Vehicle

MakeEQ applies the EQ predicate on the "make" field.

func MakeEqualFold

func MakeEqualFold(v string) predicate.Vehicle

MakeEqualFold applies the EqualFold predicate on the "make" field.

func MakeGT

func MakeGT(v string) predicate.Vehicle

MakeGT applies the GT predicate on the "make" field.

func MakeGTE

func MakeGTE(v string) predicate.Vehicle

MakeGTE applies the GTE predicate on the "make" field.

func MakeHasPrefix

func MakeHasPrefix(v string) predicate.Vehicle

MakeHasPrefix applies the HasPrefix predicate on the "make" field.

func MakeHasSuffix

func MakeHasSuffix(v string) predicate.Vehicle

MakeHasSuffix applies the HasSuffix predicate on the "make" field.

func MakeIn

func MakeIn(vs ...string) predicate.Vehicle

MakeIn applies the In predicate on the "make" field.

func MakeLT

func MakeLT(v string) predicate.Vehicle

MakeLT applies the LT predicate on the "make" field.

func MakeLTE

func MakeLTE(v string) predicate.Vehicle

MakeLTE applies the LTE predicate on the "make" field.

func MakeNEQ

func MakeNEQ(v string) predicate.Vehicle

MakeNEQ applies the NEQ predicate on the "make" field.

func MakeNotIn

func MakeNotIn(vs ...string) predicate.Vehicle

MakeNotIn applies the NotIn predicate on the "make" field.

func Miles added in v0.3.0

func Miles(v int64) predicate.Vehicle

Miles applies equality check predicate on the "miles" field. It's identical to MilesEQ.

func MilesEQ added in v0.3.0

func MilesEQ(v int64) predicate.Vehicle

MilesEQ applies the EQ predicate on the "miles" field.

func MilesGT added in v0.3.0

func MilesGT(v int64) predicate.Vehicle

MilesGT applies the GT predicate on the "miles" field.

func MilesGTE added in v0.3.0

func MilesGTE(v int64) predicate.Vehicle

MilesGTE applies the GTE predicate on the "miles" field.

func MilesIn added in v0.3.0

func MilesIn(vs ...int64) predicate.Vehicle

MilesIn applies the In predicate on the "miles" field.

func MilesIsNil added in v0.3.0

func MilesIsNil() predicate.Vehicle

MilesIsNil applies the IsNil predicate on the "miles" field.

func MilesLT added in v0.3.0

func MilesLT(v int64) predicate.Vehicle

MilesLT applies the LT predicate on the "miles" field.

func MilesLTE added in v0.3.0

func MilesLTE(v int64) predicate.Vehicle

MilesLTE applies the LTE predicate on the "miles" field.

func MilesNEQ added in v0.3.0

func MilesNEQ(v int64) predicate.Vehicle

MilesNEQ applies the NEQ predicate on the "miles" field.

func MilesNotIn added in v0.3.0

func MilesNotIn(vs ...int64) predicate.Vehicle

MilesNotIn applies the NotIn predicate on the "miles" field.

func MilesNotNil added in v0.3.0

func MilesNotNil() predicate.Vehicle

MilesNotNil applies the NotNil predicate on the "miles" field.

func Model

func Model(v string) predicate.Vehicle

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Vehicle

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Vehicle

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Vehicle

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Vehicle

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Vehicle

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Vehicle

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Vehicle

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Vehicle

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

func ModelIn(vs ...string) predicate.Vehicle

ModelIn applies the In predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Vehicle

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Vehicle

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Vehicle

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

func ModelNotIn(vs ...string) predicate.Vehicle

ModelNotIn applies the NotIn predicate on the "model" field.

func Mpg added in v0.3.0

func Mpg(v int64) predicate.Vehicle

Mpg applies equality check predicate on the "mpg" field. It's identical to MpgEQ.

func MpgEQ added in v0.3.0

func MpgEQ(v int64) predicate.Vehicle

MpgEQ applies the EQ predicate on the "mpg" field.

func MpgGT added in v0.3.0

func MpgGT(v int64) predicate.Vehicle

MpgGT applies the GT predicate on the "mpg" field.

func MpgGTE added in v0.3.0

func MpgGTE(v int64) predicate.Vehicle

MpgGTE applies the GTE predicate on the "mpg" field.

func MpgIn added in v0.3.0

func MpgIn(vs ...int64) predicate.Vehicle

MpgIn applies the In predicate on the "mpg" field.

func MpgIsNil added in v0.3.0

func MpgIsNil() predicate.Vehicle

MpgIsNil applies the IsNil predicate on the "mpg" field.

func MpgLT added in v0.3.0

func MpgLT(v int64) predicate.Vehicle

MpgLT applies the LT predicate on the "mpg" field.

func MpgLTE added in v0.3.0

func MpgLTE(v int64) predicate.Vehicle

MpgLTE applies the LTE predicate on the "mpg" field.

func MpgNEQ added in v0.3.0

func MpgNEQ(v int64) predicate.Vehicle

MpgNEQ applies the NEQ predicate on the "mpg" field.

func MpgNotIn added in v0.3.0

func MpgNotIn(vs ...int64) predicate.Vehicle

MpgNotIn applies the NotIn predicate on the "mpg" field.

func MpgNotNil added in v0.3.0

func MpgNotNil() predicate.Vehicle

MpgNotNil applies the NotNil predicate on the "mpg" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Vehicle) predicate.Vehicle

Or groups predicates with the OR operator between them.

func Owner added in v0.3.0

func Owner(v string) predicate.Vehicle

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains added in v0.3.0

func OwnerContains(v string) predicate.Vehicle

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold added in v0.3.0

func OwnerContainsFold(v string) predicate.Vehicle

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ added in v0.3.0

func OwnerEQ(v string) predicate.Vehicle

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold added in v0.3.0

func OwnerEqualFold(v string) predicate.Vehicle

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT added in v0.3.0

func OwnerGT(v string) predicate.Vehicle

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE added in v0.3.0

func OwnerGTE(v string) predicate.Vehicle

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix added in v0.3.0

func OwnerHasPrefix(v string) predicate.Vehicle

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix added in v0.3.0

func OwnerHasSuffix(v string) predicate.Vehicle

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn added in v0.3.0

func OwnerIn(vs ...string) predicate.Vehicle

OwnerIn applies the In predicate on the "owner" field.

func OwnerIsNil added in v0.3.0

func OwnerIsNil() predicate.Vehicle

OwnerIsNil applies the IsNil predicate on the "owner" field.

func OwnerLT added in v0.3.0

func OwnerLT(v string) predicate.Vehicle

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE added in v0.3.0

func OwnerLTE(v string) predicate.Vehicle

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ added in v0.3.0

func OwnerNEQ(v string) predicate.Vehicle

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn added in v0.3.0

func OwnerNotIn(vs ...string) predicate.Vehicle

OwnerNotIn applies the NotIn predicate on the "owner" field.

func OwnerNotNil added in v0.3.0

func OwnerNotNil() predicate.Vehicle

OwnerNotNil applies the NotNil predicate on the "owner" field.

func UpdateTime added in v0.3.0

func UpdateTime(v time.Time) predicate.Vehicle

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ added in v0.3.0

func UpdateTimeEQ(v time.Time) predicate.Vehicle

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT added in v0.3.0

func UpdateTimeGT(v time.Time) predicate.Vehicle

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE added in v0.3.0

func UpdateTimeGTE(v time.Time) predicate.Vehicle

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn added in v0.3.0

func UpdateTimeIn(vs ...time.Time) predicate.Vehicle

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT added in v0.3.0

func UpdateTimeLT(v time.Time) predicate.Vehicle

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE added in v0.3.0

func UpdateTimeLTE(v time.Time) predicate.Vehicle

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ added in v0.3.0

func UpdateTimeNEQ(v time.Time) predicate.Vehicle

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn added in v0.3.0

func UpdateTimeNotIn(vs ...time.Time) predicate.Vehicle

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Year

func Year(v string) predicate.Vehicle

Year applies equality check predicate on the "year" field. It's identical to YearEQ.

func YearContains

func YearContains(v string) predicate.Vehicle

YearContains applies the Contains predicate on the "year" field.

func YearContainsFold

func YearContainsFold(v string) predicate.Vehicle

YearContainsFold applies the ContainsFold predicate on the "year" field.

func YearEQ

func YearEQ(v string) predicate.Vehicle

YearEQ applies the EQ predicate on the "year" field.

func YearEqualFold

func YearEqualFold(v string) predicate.Vehicle

YearEqualFold applies the EqualFold predicate on the "year" field.

func YearGT

func YearGT(v string) predicate.Vehicle

YearGT applies the GT predicate on the "year" field.

func YearGTE

func YearGTE(v string) predicate.Vehicle

YearGTE applies the GTE predicate on the "year" field.

func YearHasPrefix

func YearHasPrefix(v string) predicate.Vehicle

YearHasPrefix applies the HasPrefix predicate on the "year" field.

func YearHasSuffix

func YearHasSuffix(v string) predicate.Vehicle

YearHasSuffix applies the HasSuffix predicate on the "year" field.

func YearIn

func YearIn(vs ...string) predicate.Vehicle

YearIn applies the In predicate on the "year" field.

func YearIsNil added in v0.3.0

func YearIsNil() predicate.Vehicle

YearIsNil applies the IsNil predicate on the "year" field.

func YearLT

func YearLT(v string) predicate.Vehicle

YearLT applies the LT predicate on the "year" field.

func YearLTE

func YearLTE(v string) predicate.Vehicle

YearLTE applies the LTE predicate on the "year" field.

func YearNEQ

func YearNEQ(v string) predicate.Vehicle

YearNEQ applies the NEQ predicate on the "year" field.

func YearNotIn

func YearNotIn(vs ...string) predicate.Vehicle

YearNotIn applies the NotIn predicate on the "year" field.

func YearNotNil added in v0.3.0

func YearNotNil() predicate.Vehicle

YearNotNil applies the NotNil predicate on the "year" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL