Documentation
¶
Index ¶
- Constants
- Variables
- func AddedBy(v uuid.UUID) predicate.AllowlistEntry
- func AddedByEQ(v uuid.UUID) predicate.AllowlistEntry
- func AddedByIn(vs ...uuid.UUID) predicate.AllowlistEntry
- func AddedByNEQ(v uuid.UUID) predicate.AllowlistEntry
- func AddedByNotIn(vs ...uuid.UUID) predicate.AllowlistEntry
- func And(predicates ...predicate.AllowlistEntry) predicate.AllowlistEntry
- func CreatedAt(v time.Time) predicate.AllowlistEntry
- func CreatedAtEQ(v time.Time) predicate.AllowlistEntry
- func CreatedAtGT(v time.Time) predicate.AllowlistEntry
- func CreatedAtGTE(v time.Time) predicate.AllowlistEntry
- func CreatedAtIn(vs ...time.Time) predicate.AllowlistEntry
- func CreatedAtLT(v time.Time) predicate.AllowlistEntry
- func CreatedAtLTE(v time.Time) predicate.AllowlistEntry
- func CreatedAtNEQ(v time.Time) predicate.AllowlistEntry
- func CreatedAtNotIn(vs ...time.Time) predicate.AllowlistEntry
- func Email(v string) predicate.AllowlistEntry
- func EmailContains(v string) predicate.AllowlistEntry
- func EmailContainsFold(v string) predicate.AllowlistEntry
- func EmailEQ(v string) predicate.AllowlistEntry
- func EmailEqualFold(v string) predicate.AllowlistEntry
- func EmailGT(v string) predicate.AllowlistEntry
- func EmailGTE(v string) predicate.AllowlistEntry
- func EmailHasPrefix(v string) predicate.AllowlistEntry
- func EmailHasSuffix(v string) predicate.AllowlistEntry
- func EmailIn(vs ...string) predicate.AllowlistEntry
- func EmailLT(v string) predicate.AllowlistEntry
- func EmailLTE(v string) predicate.AllowlistEntry
- func EmailNEQ(v string) predicate.AllowlistEntry
- func EmailNotIn(vs ...string) predicate.AllowlistEntry
- func HasAddedByUser() predicate.AllowlistEntry
- func HasAddedByUserWith(preds ...predicate.User) predicate.AllowlistEntry
- func ID(id uuid.UUID) predicate.AllowlistEntry
- func IDEQ(id uuid.UUID) predicate.AllowlistEntry
- func IDGT(id uuid.UUID) predicate.AllowlistEntry
- func IDGTE(id uuid.UUID) predicate.AllowlistEntry
- func IDIn(ids ...uuid.UUID) predicate.AllowlistEntry
- func IDLT(id uuid.UUID) predicate.AllowlistEntry
- func IDLTE(id uuid.UUID) predicate.AllowlistEntry
- func IDNEQ(id uuid.UUID) predicate.AllowlistEntry
- func IDNotIn(ids ...uuid.UUID) predicate.AllowlistEntry
- func Not(p predicate.AllowlistEntry) predicate.AllowlistEntry
- func Note(v string) predicate.AllowlistEntry
- func NoteContains(v string) predicate.AllowlistEntry
- func NoteContainsFold(v string) predicate.AllowlistEntry
- func NoteEQ(v string) predicate.AllowlistEntry
- func NoteEqualFold(v string) predicate.AllowlistEntry
- func NoteGT(v string) predicate.AllowlistEntry
- func NoteGTE(v string) predicate.AllowlistEntry
- func NoteHasPrefix(v string) predicate.AllowlistEntry
- func NoteHasSuffix(v string) predicate.AllowlistEntry
- func NoteIn(vs ...string) predicate.AllowlistEntry
- func NoteIsNil() predicate.AllowlistEntry
- func NoteLT(v string) predicate.AllowlistEntry
- func NoteLTE(v string) predicate.AllowlistEntry
- func NoteNEQ(v string) predicate.AllowlistEntry
- func NoteNotIn(vs ...string) predicate.AllowlistEntry
- func NoteNotNil() predicate.AllowlistEntry
- func Or(predicates ...predicate.AllowlistEntry) predicate.AllowlistEntry
- func ValidColumn(column string) bool
- type OrderOption
- func ByAddedBy(opts ...sql.OrderTermOption) OrderOption
- func ByAddedByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the allowlistentry type in the database. Label = "allowlist_entry" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldAddedBy holds the string denoting the added_by field in the database. FieldAddedBy = "added_by" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeAddedByUser holds the string denoting the added_by_user edge name in mutations. EdgeAddedByUser = "added_by_user" // Table holds the table name of the allowlistentry in the database. Table = "allowlist" // AddedByUserTable is the table that holds the added_by_user relation/edge. AddedByUserTable = "allowlist" // AddedByUserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AddedByUserInverseTable = "users" // AddedByUserColumn is the table column denoting the added_by_user relation/edge. AddedByUserColumn = "added_by" )
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // 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, FieldEmail, FieldAddedBy, FieldNote, FieldCreatedAt, }
Columns holds all SQL columns for allowlistentry fields.
Functions ¶
func AddedBy ¶
func AddedBy(v uuid.UUID) predicate.AllowlistEntry
AddedBy applies equality check predicate on the "added_by" field. It's identical to AddedByEQ.
func AddedByEQ ¶
func AddedByEQ(v uuid.UUID) predicate.AllowlistEntry
AddedByEQ applies the EQ predicate on the "added_by" field.
func AddedByIn ¶
func AddedByIn(vs ...uuid.UUID) predicate.AllowlistEntry
AddedByIn applies the In predicate on the "added_by" field.
func AddedByNEQ ¶
func AddedByNEQ(v uuid.UUID) predicate.AllowlistEntry
AddedByNEQ applies the NEQ predicate on the "added_by" field.
func AddedByNotIn ¶
func AddedByNotIn(vs ...uuid.UUID) predicate.AllowlistEntry
AddedByNotIn applies the NotIn predicate on the "added_by" field.
func And ¶
func And(predicates ...predicate.AllowlistEntry) predicate.AllowlistEntry
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AllowlistEntry
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AllowlistEntry
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AllowlistEntry
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AllowlistEntry
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AllowlistEntry
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AllowlistEntry
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AllowlistEntry
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AllowlistEntry
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AllowlistEntry
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Email ¶
func Email(v string) predicate.AllowlistEntry
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
func EmailContains(v string) predicate.AllowlistEntry
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
func EmailContainsFold(v string) predicate.AllowlistEntry
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEQ ¶
func EmailEQ(v string) predicate.AllowlistEntry
EmailEQ applies the EQ predicate on the "email" field.
func EmailEqualFold ¶
func EmailEqualFold(v string) predicate.AllowlistEntry
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailGT ¶
func EmailGT(v string) predicate.AllowlistEntry
EmailGT applies the GT predicate on the "email" field.
func EmailGTE ¶
func EmailGTE(v string) predicate.AllowlistEntry
EmailGTE applies the GTE predicate on the "email" field.
func EmailHasPrefix ¶
func EmailHasPrefix(v string) predicate.AllowlistEntry
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
func EmailHasSuffix(v string) predicate.AllowlistEntry
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIn ¶
func EmailIn(vs ...string) predicate.AllowlistEntry
EmailIn applies the In predicate on the "email" field.
func EmailLT ¶
func EmailLT(v string) predicate.AllowlistEntry
EmailLT applies the LT predicate on the "email" field.
func EmailLTE ¶
func EmailLTE(v string) predicate.AllowlistEntry
EmailLTE applies the LTE predicate on the "email" field.
func EmailNEQ ¶
func EmailNEQ(v string) predicate.AllowlistEntry
EmailNEQ applies the NEQ predicate on the "email" field.
func EmailNotIn ¶
func EmailNotIn(vs ...string) predicate.AllowlistEntry
EmailNotIn applies the NotIn predicate on the "email" field.
func HasAddedByUser ¶
func HasAddedByUser() predicate.AllowlistEntry
HasAddedByUser applies the HasEdge predicate on the "added_by_user" edge.
func HasAddedByUserWith ¶
func HasAddedByUserWith(preds ...predicate.User) predicate.AllowlistEntry
HasAddedByUserWith applies the HasEdge predicate on the "added_by_user" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.AllowlistEntry
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.AllowlistEntry
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.AllowlistEntry
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.AllowlistEntry
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.AllowlistEntry
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.AllowlistEntry
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.AllowlistEntry
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.AllowlistEntry
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.AllowlistEntry
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AllowlistEntry) predicate.AllowlistEntry
Not applies the not operator on the given predicate.
func Note ¶
func Note(v string) predicate.AllowlistEntry
Note applies equality check predicate on the "note" field. It's identical to NoteEQ.
func NoteContains ¶
func NoteContains(v string) predicate.AllowlistEntry
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
func NoteContainsFold(v string) predicate.AllowlistEntry
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEQ ¶
func NoteEQ(v string) predicate.AllowlistEntry
NoteEQ applies the EQ predicate on the "note" field.
func NoteEqualFold ¶
func NoteEqualFold(v string) predicate.AllowlistEntry
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteGT ¶
func NoteGT(v string) predicate.AllowlistEntry
NoteGT applies the GT predicate on the "note" field.
func NoteGTE ¶
func NoteGTE(v string) predicate.AllowlistEntry
NoteGTE applies the GTE predicate on the "note" field.
func NoteHasPrefix ¶
func NoteHasPrefix(v string) predicate.AllowlistEntry
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
func NoteHasSuffix(v string) predicate.AllowlistEntry
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteIn ¶
func NoteIn(vs ...string) predicate.AllowlistEntry
NoteIn applies the In predicate on the "note" field.
func NoteIsNil ¶
func NoteIsNil() predicate.AllowlistEntry
NoteIsNil applies the IsNil predicate on the "note" field.
func NoteLT ¶
func NoteLT(v string) predicate.AllowlistEntry
NoteLT applies the LT predicate on the "note" field.
func NoteLTE ¶
func NoteLTE(v string) predicate.AllowlistEntry
NoteLTE applies the LTE predicate on the "note" field.
func NoteNEQ ¶
func NoteNEQ(v string) predicate.AllowlistEntry
NoteNEQ applies the NEQ predicate on the "note" field.
func NoteNotIn ¶
func NoteNotIn(vs ...string) predicate.AllowlistEntry
NoteNotIn applies the NotIn predicate on the "note" field.
func NoteNotNil ¶
func NoteNotNil() predicate.AllowlistEntry
NoteNotNil applies the NotNil predicate on the "note" field.
func Or ¶
func Or(predicates ...predicate.AllowlistEntry) predicate.AllowlistEntry
Or groups predicates with the OR operator between them.
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 AllowlistEntry queries.
func ByAddedBy ¶
func ByAddedBy(opts ...sql.OrderTermOption) OrderOption
ByAddedBy orders the results by the added_by field.
func ByAddedByUserField ¶
func ByAddedByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByAddedByUserField orders the results by added_by_user field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note field.