car

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 3 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"
	// FieldBeforeID holds the string denoting the before_id field in the database.
	FieldBeforeID = "before_id"
	// FieldAfterID holds the string denoting the after_id field in the database.
	FieldAfterID = "after_id"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"

	// 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 = "cars"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "cars"
	// OwnerInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	OwnerInverseTable = "pets"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "pet_cars"
)

Variables

View Source
var (
	// BeforeIDValidator is a validator for the "before_id" field. It is called by the builders before save.
	BeforeIDValidator func(float64) error
	// AfterIDValidator is a validator for the "after_id" field. It is called by the builders before save.
	AfterIDValidator func(float64) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(int) error
)

Columns holds all SQL columns for car fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Car type.

Functions

func AfterID

func AfterID(v float64) predicate.Car

AfterID applies equality check predicate on the "after_id" field. It's identical to AfterIDEQ.

func AfterIDEQ

func AfterIDEQ(v float64) predicate.Car

AfterIDEQ applies the EQ predicate on the "after_id" field.

func AfterIDGT

func AfterIDGT(v float64) predicate.Car

AfterIDGT applies the GT predicate on the "after_id" field.

func AfterIDGTE

func AfterIDGTE(v float64) predicate.Car

AfterIDGTE applies the GTE predicate on the "after_id" field.

func AfterIDIn

func AfterIDIn(vs ...float64) predicate.Car

AfterIDIn applies the In predicate on the "after_id" field.

func AfterIDIsNil

func AfterIDIsNil() predicate.Car

AfterIDIsNil applies the IsNil predicate on the "after_id" field.

func AfterIDLT

func AfterIDLT(v float64) predicate.Car

AfterIDLT applies the LT predicate on the "after_id" field.

func AfterIDLTE

func AfterIDLTE(v float64) predicate.Car

AfterIDLTE applies the LTE predicate on the "after_id" field.

func AfterIDNEQ

func AfterIDNEQ(v float64) predicate.Car

AfterIDNEQ applies the NEQ predicate on the "after_id" field.

func AfterIDNotIn

func AfterIDNotIn(vs ...float64) predicate.Car

AfterIDNotIn applies the NotIn predicate on the "after_id" field.

func AfterIDNotNil

func AfterIDNotNil() predicate.Car

AfterIDNotNil applies the NotNil predicate on the "after_id" field.

func And

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

And groups list of predicates with the AND operator between them.

func BeforeID

func BeforeID(v float64) predicate.Car

BeforeID applies equality check predicate on the "before_id" field. It's identical to BeforeIDEQ.

func BeforeIDEQ

func BeforeIDEQ(v float64) predicate.Car

BeforeIDEQ applies the EQ predicate on the "before_id" field.

func BeforeIDGT

func BeforeIDGT(v float64) predicate.Car

BeforeIDGT applies the GT predicate on the "before_id" field.

func BeforeIDGTE

func BeforeIDGTE(v float64) predicate.Car

BeforeIDGTE applies the GTE predicate on the "before_id" field.

func BeforeIDIn

func BeforeIDIn(vs ...float64) predicate.Car

BeforeIDIn applies the In predicate on the "before_id" field.

func BeforeIDIsNil

func BeforeIDIsNil() predicate.Car

BeforeIDIsNil applies the IsNil predicate on the "before_id" field.

func BeforeIDLT

func BeforeIDLT(v float64) predicate.Car

BeforeIDLT applies the LT predicate on the "before_id" field.

func BeforeIDLTE

func BeforeIDLTE(v float64) predicate.Car

BeforeIDLTE applies the LTE predicate on the "before_id" field.

func BeforeIDNEQ

func BeforeIDNEQ(v float64) predicate.Car

BeforeIDNEQ applies the NEQ predicate on the "before_id" field.

func BeforeIDNotIn

func BeforeIDNotIn(vs ...float64) predicate.Car

BeforeIDNotIn applies the NotIn predicate on the "before_id" field.

func BeforeIDNotNil

func BeforeIDNotNil() predicate.Car

BeforeIDNotNil applies the NotNil predicate on the "before_id" field.

func HasOwner

func HasOwner() predicate.Car

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Pet) 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 identifier.

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 list of predicates with the OR operator between them.

func ValidColumn added in v0.4.3

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