Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Alias) predicate.Alias
- func From(v string) predicate.Alias
- func FromContains(v string) predicate.Alias
- func FromContainsFold(v string) predicate.Alias
- func FromEQ(v string) predicate.Alias
- func FromEqualFold(v string) predicate.Alias
- func FromGT(v string) predicate.Alias
- func FromGTE(v string) predicate.Alias
- func FromHasPrefix(v string) predicate.Alias
- func FromHasSuffix(v string) predicate.Alias
- func FromIn(vs ...string) predicate.Alias
- func FromLT(v string) predicate.Alias
- func FromLTE(v string) predicate.Alias
- func FromNEQ(v string) predicate.Alias
- func FromNotIn(vs ...string) predicate.Alias
- func HasEvent() predicate.Alias
- func HasEventWith(preds ...predicate.Event) predicate.Alias
- func HasUser() predicate.Alias
- func HasUserWith(preds ...predicate.User) predicate.Alias
- func ID(id int) predicate.Alias
- func IDEQ(id int) predicate.Alias
- func IDGT(id int) predicate.Alias
- func IDGTE(id int) predicate.Alias
- func IDIn(ids ...int) predicate.Alias
- func IDLT(id int) predicate.Alias
- func IDLTE(id int) predicate.Alias
- func IDNEQ(id int) predicate.Alias
- func IDNotIn(ids ...int) predicate.Alias
- func Not(p predicate.Alias) predicate.Alias
- func Or(predicates ...predicate.Alias) predicate.Alias
- func To(v string) predicate.Alias
- func ToContains(v string) predicate.Alias
- func ToContainsFold(v string) predicate.Alias
- func ToEQ(v string) predicate.Alias
- func ToEqualFold(v string) predicate.Alias
- func ToGT(v string) predicate.Alias
- func ToGTE(v string) predicate.Alias
- func ToHasPrefix(v string) predicate.Alias
- func ToHasSuffix(v string) predicate.Alias
- func ToIn(vs ...string) predicate.Alias
- func ToLT(v string) predicate.Alias
- func ToLTE(v string) predicate.Alias
- func ToNEQ(v string) predicate.Alias
- func ToNotIn(vs ...string) predicate.Alias
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldFrom, FieldTo, }
Columns holds all SQL columns for alias fields.
var ForeignKeys = []string{
"event_alias",
"user_aliases",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Alias type.
Functions ¶
func FromContains ¶
FromContains applies the Contains predicate on the "from" field.
func FromContainsFold ¶
FromContainsFold applies the ContainsFold predicate on the "from" field.
func FromEqualFold ¶
FromEqualFold applies the EqualFold predicate on the "from" field.
func FromHasPrefix ¶
FromHasPrefix applies the HasPrefix predicate on the "from" field.
func FromHasSuffix ¶
FromHasSuffix applies the HasSuffix predicate on the "from" field.
func HasEventWith ¶
HasEventWith applies the HasEdge predicate on the "event" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ToContains ¶
ToContains applies the Contains predicate on the "to" field.
func ToContainsFold ¶
ToContainsFold applies the ContainsFold predicate on the "to" field.
func ToEqualFold ¶
ToEqualFold applies the EqualFold predicate on the "to" field.
func ToHasPrefix ¶
ToHasPrefix applies the HasPrefix predicate on the "to" field.
func ToHasSuffix ¶
ToHasSuffix applies the HasSuffix predicate on the "to" field.
Types ¶
This section is empty.