Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.EntityAlias) predicate.EntityAlias
- func CanonicalID(v string) predicate.EntityAlias
- func CanonicalIDContains(v string) predicate.EntityAlias
- func CanonicalIDContainsFold(v string) predicate.EntityAlias
- func CanonicalIDEQ(v string) predicate.EntityAlias
- func CanonicalIDEqualFold(v string) predicate.EntityAlias
- func CanonicalIDGT(v string) predicate.EntityAlias
- func CanonicalIDGTE(v string) predicate.EntityAlias
- func CanonicalIDHasPrefix(v string) predicate.EntityAlias
- func CanonicalIDHasSuffix(v string) predicate.EntityAlias
- func CanonicalIDIn(vs ...string) predicate.EntityAlias
- func CanonicalIDLT(v string) predicate.EntityAlias
- func CanonicalIDLTE(v string) predicate.EntityAlias
- func CanonicalIDNEQ(v string) predicate.EntityAlias
- func CanonicalIDNotIn(vs ...string) predicate.EntityAlias
- func CreatedAt(v time.Time) predicate.EntityAlias
- func CreatedAtEQ(v time.Time) predicate.EntityAlias
- func CreatedAtGT(v time.Time) predicate.EntityAlias
- func CreatedAtGTE(v time.Time) predicate.EntityAlias
- func CreatedAtIn(vs ...time.Time) predicate.EntityAlias
- func CreatedAtLT(v time.Time) predicate.EntityAlias
- func CreatedAtLTE(v time.Time) predicate.EntityAlias
- func CreatedAtNEQ(v time.Time) predicate.EntityAlias
- func CreatedAtNotIn(vs ...time.Time) predicate.EntityAlias
- func ID(id uuid.UUID) predicate.EntityAlias
- func IDEQ(id uuid.UUID) predicate.EntityAlias
- func IDGT(id uuid.UUID) predicate.EntityAlias
- func IDGTE(id uuid.UUID) predicate.EntityAlias
- func IDIn(ids ...uuid.UUID) predicate.EntityAlias
- func IDLT(id uuid.UUID) predicate.EntityAlias
- func IDLTE(id uuid.UUID) predicate.EntityAlias
- func IDNEQ(id uuid.UUID) predicate.EntityAlias
- func IDNotIn(ids ...uuid.UUID) predicate.EntityAlias
- func Not(p predicate.EntityAlias) predicate.EntityAlias
- func Or(predicates ...predicate.EntityAlias) predicate.EntityAlias
- func RawID(v string) predicate.EntityAlias
- func RawIDContains(v string) predicate.EntityAlias
- func RawIDContainsFold(v string) predicate.EntityAlias
- func RawIDEQ(v string) predicate.EntityAlias
- func RawIDEqualFold(v string) predicate.EntityAlias
- func RawIDGT(v string) predicate.EntityAlias
- func RawIDGTE(v string) predicate.EntityAlias
- func RawIDHasPrefix(v string) predicate.EntityAlias
- func RawIDHasSuffix(v string) predicate.EntityAlias
- func RawIDIn(vs ...string) predicate.EntityAlias
- func RawIDLT(v string) predicate.EntityAlias
- func RawIDLTE(v string) predicate.EntityAlias
- func RawIDNEQ(v string) predicate.EntityAlias
- func RawIDNotIn(vs ...string) predicate.EntityAlias
- func Source(v string) predicate.EntityAlias
- func SourceContains(v string) predicate.EntityAlias
- func SourceContainsFold(v string) predicate.EntityAlias
- func SourceEQ(v string) predicate.EntityAlias
- func SourceEqualFold(v string) predicate.EntityAlias
- func SourceGT(v string) predicate.EntityAlias
- func SourceGTE(v string) predicate.EntityAlias
- func SourceHasPrefix(v string) predicate.EntityAlias
- func SourceHasSuffix(v string) predicate.EntityAlias
- func SourceIn(vs ...string) predicate.EntityAlias
- func SourceLT(v string) predicate.EntityAlias
- func SourceLTE(v string) predicate.EntityAlias
- func SourceNEQ(v string) predicate.EntityAlias
- func SourceNotIn(vs ...string) predicate.EntityAlias
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the entityalias type in the database. Label = "entity_alias" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRawID holds the string denoting the raw_id field in the database. FieldRawID = "raw_id" // FieldCanonicalID holds the string denoting the canonical_id field in the database. FieldCanonicalID = "canonical_id" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // Table holds the table name of the entityalias in the database. Table = "entity_alias" )
Variables ¶
var ( // RawIDValidator is a validator for the "raw_id" field. It is called by the builders before save. RawIDValidator func(string) error // CanonicalIDValidator is a validator for the "canonical_id" field. It is called by the builders before save. CanonicalIDValidator func(string) error // DefaultSource holds the default value on creation for the "source" field. DefaultSource string // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldRawID, FieldCanonicalID, FieldSource, FieldCreatedAt, }
Columns holds all SQL columns for entityalias fields.
Functions ¶
func And ¶
func And(predicates ...predicate.EntityAlias) predicate.EntityAlias
And groups predicates with the AND operator between them.
func CanonicalID ¶
func CanonicalID(v string) predicate.EntityAlias
CanonicalID applies equality check predicate on the "canonical_id" field. It's identical to CanonicalIDEQ.
func CanonicalIDContains ¶
func CanonicalIDContains(v string) predicate.EntityAlias
CanonicalIDContains applies the Contains predicate on the "canonical_id" field.
func CanonicalIDContainsFold ¶
func CanonicalIDContainsFold(v string) predicate.EntityAlias
CanonicalIDContainsFold applies the ContainsFold predicate on the "canonical_id" field.
func CanonicalIDEQ ¶
func CanonicalIDEQ(v string) predicate.EntityAlias
CanonicalIDEQ applies the EQ predicate on the "canonical_id" field.
func CanonicalIDEqualFold ¶
func CanonicalIDEqualFold(v string) predicate.EntityAlias
CanonicalIDEqualFold applies the EqualFold predicate on the "canonical_id" field.
func CanonicalIDGT ¶
func CanonicalIDGT(v string) predicate.EntityAlias
CanonicalIDGT applies the GT predicate on the "canonical_id" field.
func CanonicalIDGTE ¶
func CanonicalIDGTE(v string) predicate.EntityAlias
CanonicalIDGTE applies the GTE predicate on the "canonical_id" field.
func CanonicalIDHasPrefix ¶
func CanonicalIDHasPrefix(v string) predicate.EntityAlias
CanonicalIDHasPrefix applies the HasPrefix predicate on the "canonical_id" field.
func CanonicalIDHasSuffix ¶
func CanonicalIDHasSuffix(v string) predicate.EntityAlias
CanonicalIDHasSuffix applies the HasSuffix predicate on the "canonical_id" field.
func CanonicalIDIn ¶
func CanonicalIDIn(vs ...string) predicate.EntityAlias
CanonicalIDIn applies the In predicate on the "canonical_id" field.
func CanonicalIDLT ¶
func CanonicalIDLT(v string) predicate.EntityAlias
CanonicalIDLT applies the LT predicate on the "canonical_id" field.
func CanonicalIDLTE ¶
func CanonicalIDLTE(v string) predicate.EntityAlias
CanonicalIDLTE applies the LTE predicate on the "canonical_id" field.
func CanonicalIDNEQ ¶
func CanonicalIDNEQ(v string) predicate.EntityAlias
CanonicalIDNEQ applies the NEQ predicate on the "canonical_id" field.
func CanonicalIDNotIn ¶
func CanonicalIDNotIn(vs ...string) predicate.EntityAlias
CanonicalIDNotIn applies the NotIn predicate on the "canonical_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.EntityAlias
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.EntityAlias
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.EntityAlias
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.EntityAlias
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.EntityAlias
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.EntityAlias
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.EntityAlias
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.EntityAlias
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.EntityAlias
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.EntityAlias
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.EntityAlias
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.EntityAlias
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.EntityAlias
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.EntityAlias
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.EntityAlias
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.EntityAlias
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.EntityAlias
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.EntityAlias) predicate.EntityAlias
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.EntityAlias) predicate.EntityAlias
Or groups predicates with the OR operator between them.
func RawID ¶
func RawID(v string) predicate.EntityAlias
RawID applies equality check predicate on the "raw_id" field. It's identical to RawIDEQ.
func RawIDContains ¶
func RawIDContains(v string) predicate.EntityAlias
RawIDContains applies the Contains predicate on the "raw_id" field.
func RawIDContainsFold ¶
func RawIDContainsFold(v string) predicate.EntityAlias
RawIDContainsFold applies the ContainsFold predicate on the "raw_id" field.
func RawIDEQ ¶
func RawIDEQ(v string) predicate.EntityAlias
RawIDEQ applies the EQ predicate on the "raw_id" field.
func RawIDEqualFold ¶
func RawIDEqualFold(v string) predicate.EntityAlias
RawIDEqualFold applies the EqualFold predicate on the "raw_id" field.
func RawIDGT ¶
func RawIDGT(v string) predicate.EntityAlias
RawIDGT applies the GT predicate on the "raw_id" field.
func RawIDGTE ¶
func RawIDGTE(v string) predicate.EntityAlias
RawIDGTE applies the GTE predicate on the "raw_id" field.
func RawIDHasPrefix ¶
func RawIDHasPrefix(v string) predicate.EntityAlias
RawIDHasPrefix applies the HasPrefix predicate on the "raw_id" field.
func RawIDHasSuffix ¶
func RawIDHasSuffix(v string) predicate.EntityAlias
RawIDHasSuffix applies the HasSuffix predicate on the "raw_id" field.
func RawIDIn ¶
func RawIDIn(vs ...string) predicate.EntityAlias
RawIDIn applies the In predicate on the "raw_id" field.
func RawIDLT ¶
func RawIDLT(v string) predicate.EntityAlias
RawIDLT applies the LT predicate on the "raw_id" field.
func RawIDLTE ¶
func RawIDLTE(v string) predicate.EntityAlias
RawIDLTE applies the LTE predicate on the "raw_id" field.
func RawIDNEQ ¶
func RawIDNEQ(v string) predicate.EntityAlias
RawIDNEQ applies the NEQ predicate on the "raw_id" field.
func RawIDNotIn ¶
func RawIDNotIn(vs ...string) predicate.EntityAlias
RawIDNotIn applies the NotIn predicate on the "raw_id" field.
func Source ¶
func Source(v string) predicate.EntityAlias
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
func SourceContains(v string) predicate.EntityAlias
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
func SourceContainsFold(v string) predicate.EntityAlias
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEQ ¶
func SourceEQ(v string) predicate.EntityAlias
SourceEQ applies the EQ predicate on the "source" field.
func SourceEqualFold ¶
func SourceEqualFold(v string) predicate.EntityAlias
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceGT ¶
func SourceGT(v string) predicate.EntityAlias
SourceGT applies the GT predicate on the "source" field.
func SourceGTE ¶
func SourceGTE(v string) predicate.EntityAlias
SourceGTE applies the GTE predicate on the "source" field.
func SourceHasPrefix ¶
func SourceHasPrefix(v string) predicate.EntityAlias
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
func SourceHasSuffix(v string) predicate.EntityAlias
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceIn ¶
func SourceIn(vs ...string) predicate.EntityAlias
SourceIn applies the In predicate on the "source" field.
func SourceLT ¶
func SourceLT(v string) predicate.EntityAlias
SourceLT applies the LT predicate on the "source" field.
func SourceLTE ¶
func SourceLTE(v string) predicate.EntityAlias
SourceLTE applies the LTE predicate on the "source" field.
func SourceNEQ ¶
func SourceNEQ(v string) predicate.EntityAlias
SourceNEQ applies the NEQ predicate on the "source" field.
func SourceNotIn ¶
func SourceNotIn(vs ...string) predicate.EntityAlias
SourceNotIn applies the NotIn predicate on the "source" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the EntityAlias queries.
func ByCanonicalID ¶
func ByCanonicalID(opts ...sql.OrderTermOption) OrderOption
ByCanonicalID orders the results by the canonical_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRawID ¶
func ByRawID(opts ...sql.OrderTermOption) OrderOption
ByRawID orders the results by the raw_id field.
func BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.