owner

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the owner type in the database.
	Label = "owner"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAge holds the string denoting the age field in the database.
	FieldAge = "age"
	// EdgePets holds the string denoting the pets edge name in mutations.
	EdgePets = "pets"
	// Table holds the table name of the owner in the database.
	Table = "owners"
	// PetsTable is the table that holds the pets relation/edge.
	PetsTable = "pets"
	// PetsInverseTable is the table name for the Pet entity.
	// It exists in this package in order to avoid circular dependency with the "pet" package.
	PetsInverseTable = "pets"
	// PetsColumn is the table column denoting the pets relation/edge.
	PetsColumn = "owner_pets"
)

Variables

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

Columns holds all SQL columns for owner fields.

Functions

func Age

func Age(v int) predicate.Owner

Age applies equality check predicate on the "age" field. It's identical to AgeEQ.

func AgeEQ

func AgeEQ(v int) predicate.Owner

AgeEQ applies the EQ predicate on the "age" field.

func AgeGT

func AgeGT(v int) predicate.Owner

AgeGT applies the GT predicate on the "age" field.

func AgeGTE

func AgeGTE(v int) predicate.Owner

AgeGTE applies the GTE predicate on the "age" field.

func AgeIn

func AgeIn(vs ...int) predicate.Owner

AgeIn applies the In predicate on the "age" field.

func AgeLT

func AgeLT(v int) predicate.Owner

AgeLT applies the LT predicate on the "age" field.

func AgeLTE

func AgeLTE(v int) predicate.Owner

AgeLTE applies the LTE predicate on the "age" field.

func AgeNEQ

func AgeNEQ(v int) predicate.Owner

AgeNEQ applies the NEQ predicate on the "age" field.

func AgeNotIn

func AgeNotIn(vs ...int) predicate.Owner

AgeNotIn applies the NotIn predicate on the "age" field.

func And

func And(predicates ...predicate.Owner) predicate.Owner

And groups predicates with the AND operator between them.

func HasPets

func HasPets() predicate.Owner

HasPets applies the HasEdge predicate on the "pets" edge.

func HasPetsWith

func HasPetsWith(preds ...predicate.Pet) predicate.Owner

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

func ID

func ID(id int) predicate.Owner

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Owner

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Owner

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Owner

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Owner

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Owner

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Owner

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Owner

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Owner

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Owner

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Owner

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Owner

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Owner

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Owner

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Owner

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Owner

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Owner

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Owner

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Owner

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Owner

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Owner

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Owner) predicate.Owner

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