alias

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the alias type in the database.
	Label = "alias"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFrom holds the string denoting the from field in the database.
	FieldFrom = "from"
	// FieldTo holds the string denoting the to field in the database.
	FieldTo = "to"

	// EdgeEvent holds the string denoting the event edge name in mutations.
	EdgeEvent = "event"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"

	// Table holds the table name of the alias in the database.
	Table = "alias"
	// EventTable is the table the holds the event relation/edge.
	EventTable = "alias"
	// EventInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventInverseTable = "events"
	// EventColumn is the table column denoting the event relation/edge.
	EventColumn = "event_alias"
	// UserTable is the table the holds the user relation/edge.
	UserTable = "alias"
	// 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_aliases"
)

Variables

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

Columns holds all SQL columns for alias fields.

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

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

Functions

func And

func And(predicates ...predicate.Alias) predicate.Alias

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

func From

func From(v string) predicate.Alias

From applies equality check predicate on the "from" field. It's identical to FromEQ.

func FromContains

func FromContains(v string) predicate.Alias

FromContains applies the Contains predicate on the "from" field.

func FromContainsFold

func FromContainsFold(v string) predicate.Alias

FromContainsFold applies the ContainsFold predicate on the "from" field.

func FromEQ

func FromEQ(v string) predicate.Alias

FromEQ applies the EQ predicate on the "from" field.

func FromEqualFold

func FromEqualFold(v string) predicate.Alias

FromEqualFold applies the EqualFold predicate on the "from" field.

func FromGT

func FromGT(v string) predicate.Alias

FromGT applies the GT predicate on the "from" field.

func FromGTE

func FromGTE(v string) predicate.Alias

FromGTE applies the GTE predicate on the "from" field.

func FromHasPrefix

func FromHasPrefix(v string) predicate.Alias

FromHasPrefix applies the HasPrefix predicate on the "from" field.

func FromHasSuffix

func FromHasSuffix(v string) predicate.Alias

FromHasSuffix applies the HasSuffix predicate on the "from" field.

func FromIn

func FromIn(vs ...string) predicate.Alias

FromIn applies the In predicate on the "from" field.

func FromLT

func FromLT(v string) predicate.Alias

FromLT applies the LT predicate on the "from" field.

func FromLTE

func FromLTE(v string) predicate.Alias

FromLTE applies the LTE predicate on the "from" field.

func FromNEQ

func FromNEQ(v string) predicate.Alias

FromNEQ applies the NEQ predicate on the "from" field.

func FromNotIn

func FromNotIn(vs ...string) predicate.Alias

FromNotIn applies the NotIn predicate on the "from" field.

func HasEvent

func HasEvent() predicate.Alias

HasEvent applies the HasEdge predicate on the "event" edge.

func HasEventWith

func HasEventWith(preds ...predicate.Event) predicate.Alias

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

func HasUser

func HasUser() predicate.Alias

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

func HasUserWith

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

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

func ID

func ID(id int) predicate.Alias

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Alias

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Alias

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Alias

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Alias

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Alias

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Alias

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Alias) predicate.Alias

Or groups list of predicates with the OR operator between them.

func To

func To(v string) predicate.Alias

To applies equality check predicate on the "to" field. It's identical to ToEQ.

func ToContains

func ToContains(v string) predicate.Alias

ToContains applies the Contains predicate on the "to" field.

func ToContainsFold

func ToContainsFold(v string) predicate.Alias

ToContainsFold applies the ContainsFold predicate on the "to" field.

func ToEQ

func ToEQ(v string) predicate.Alias

ToEQ applies the EQ predicate on the "to" field.

func ToEqualFold

func ToEqualFold(v string) predicate.Alias

ToEqualFold applies the EqualFold predicate on the "to" field.

func ToGT

func ToGT(v string) predicate.Alias

ToGT applies the GT predicate on the "to" field.

func ToGTE

func ToGTE(v string) predicate.Alias

ToGTE applies the GTE predicate on the "to" field.

func ToHasPrefix

func ToHasPrefix(v string) predicate.Alias

ToHasPrefix applies the HasPrefix predicate on the "to" field.

func ToHasSuffix

func ToHasSuffix(v string) predicate.Alias

ToHasSuffix applies the HasSuffix predicate on the "to" field.

func ToIn

func ToIn(vs ...string) predicate.Alias

ToIn applies the In predicate on the "to" field.

func ToLT

func ToLT(v string) predicate.Alias

ToLT applies the LT predicate on the "to" field.

func ToLTE

func ToLTE(v string) predicate.Alias

ToLTE applies the LTE predicate on the "to" field.

func ToNEQ

func ToNEQ(v string) predicate.Alias

ToNEQ applies the NEQ predicate on the "to" field.

func ToNotIn

func ToNotIn(vs ...string) predicate.Alias

ToNotIn applies the NotIn predicate on the "to" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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