car

package
v0.0.0-...-acd6729 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT 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 = "car_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "user_id"
	// Table holds the table name of the car in the database.
	Table = "cars"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "cars"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for car fields.

View Source
var (
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Functions

func And

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

And groups predicates with the AND operator between them.

func HasUser

func HasUser() predicate.Car

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

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

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

func ID

func ID(id string) predicate.Car

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Car

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Car

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Car

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Car

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Car

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Car

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID 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 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