car

package
v0.1.5-0...-40e571d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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"

	// 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 User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_car"
)

Variables

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

Columns holds all SQL columns for car fields.

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

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

Functions

func And

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

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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