car

package
v0.0.0-...-23bdc36 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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"
	// 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"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldRegisteredAt holds the string denoting the registered_at field in the database.
	FieldRegisteredAt = "registered_at"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the car in the database.
	Table = "t_car"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "t_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 = "t_user"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_cars"
)

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
)

Columns holds all SQL columns for car fields.

View Source
var ForeignKeys = []string{
	"user_cars",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "t_car" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Car) predicate.Car

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Car

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Car

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Car

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Car

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Car

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Car

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Car

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

func CreateTimeNotIn

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

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

func HasOwner

func HasOwner() predicate.Car

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Car

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Car

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Car

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Car

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Car

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Car

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Car

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Car

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Model

func Model(v string) predicate.Car

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

func ModelContains

func ModelContains(v string) predicate.Car

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

func ModelContainsFold

func ModelContainsFold(v string) predicate.Car

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

func ModelEQ

func ModelEQ(v string) predicate.Car

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

func ModelEqualFold

func ModelEqualFold(v string) predicate.Car

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

func ModelGT

func ModelGT(v string) predicate.Car

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

func ModelGTE

func ModelGTE(v string) predicate.Car

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

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Car

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

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Car

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

func ModelIn

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

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

func ModelLT

func ModelLT(v string) predicate.Car

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

func ModelLTE

func ModelLTE(v string) predicate.Car

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

func ModelNEQ

func ModelNEQ(v string) predicate.Car

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

func ModelNotIn

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

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

func Not

func Not(p predicate.Car) predicate.Car

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Car) predicate.Car

Or groups predicates with the OR operator between them.

func RegisteredAt

func RegisteredAt(v time.Time) predicate.Car

RegisteredAt applies equality check predicate on the "registered_at" field. It's identical to RegisteredAtEQ.

func RegisteredAtEQ

func RegisteredAtEQ(v time.Time) predicate.Car

RegisteredAtEQ applies the EQ predicate on the "registered_at" field.

func RegisteredAtGT

func RegisteredAtGT(v time.Time) predicate.Car

RegisteredAtGT applies the GT predicate on the "registered_at" field.

func RegisteredAtGTE

func RegisteredAtGTE(v time.Time) predicate.Car

RegisteredAtGTE applies the GTE predicate on the "registered_at" field.

func RegisteredAtIn

func RegisteredAtIn(vs ...time.Time) predicate.Car

RegisteredAtIn applies the In predicate on the "registered_at" field.

func RegisteredAtLT

func RegisteredAtLT(v time.Time) predicate.Car

RegisteredAtLT applies the LT predicate on the "registered_at" field.

func RegisteredAtLTE

func RegisteredAtLTE(v time.Time) predicate.Car

RegisteredAtLTE applies the LTE predicate on the "registered_at" field.

func RegisteredAtNEQ

func RegisteredAtNEQ(v time.Time) predicate.Car

RegisteredAtNEQ applies the NEQ predicate on the "registered_at" field.

func RegisteredAtNotIn

func RegisteredAtNotIn(vs ...time.Time) predicate.Car

RegisteredAtNotIn applies the NotIn predicate on the "registered_at" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Car

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Car

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Car

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Car

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Car

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Car

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Car

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

func UpdateTimeNotIn

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

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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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