Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Notifier) predicate.Notifier
- func CreatedAt(v time.Time) predicate.Notifier
- func CreatedAtEQ(v time.Time) predicate.Notifier
- func CreatedAtGT(v time.Time) predicate.Notifier
- func CreatedAtGTE(v time.Time) predicate.Notifier
- func CreatedAtIn(vs ...time.Time) predicate.Notifier
- func CreatedAtLT(v time.Time) predicate.Notifier
- func CreatedAtLTE(v time.Time) predicate.Notifier
- func CreatedAtNEQ(v time.Time) predicate.Notifier
- func CreatedAtNotIn(vs ...time.Time) predicate.Notifier
- func GroupID(v uuid.UUID) predicate.Notifier
- func GroupIDEQ(v uuid.UUID) predicate.Notifier
- func GroupIDIn(vs ...uuid.UUID) predicate.Notifier
- func GroupIDNEQ(v uuid.UUID) predicate.Notifier
- func GroupIDNotIn(vs ...uuid.UUID) predicate.Notifier
- func HasGroup() predicate.Notifier
- func HasGroupWith(preds ...predicate.Group) predicate.Notifier
- func HasUser() predicate.Notifier
- func HasUserWith(preds ...predicate.User) predicate.Notifier
- func ID(id uuid.UUID) predicate.Notifier
- func IDEQ(id uuid.UUID) predicate.Notifier
- func IDGT(id uuid.UUID) predicate.Notifier
- func IDGTE(id uuid.UUID) predicate.Notifier
- func IDIn(ids ...uuid.UUID) predicate.Notifier
- func IDLT(id uuid.UUID) predicate.Notifier
- func IDLTE(id uuid.UUID) predicate.Notifier
- func IDNEQ(id uuid.UUID) predicate.Notifier
- func IDNotIn(ids ...uuid.UUID) predicate.Notifier
- func IsActive(v bool) predicate.Notifier
- func IsActiveEQ(v bool) predicate.Notifier
- func IsActiveNEQ(v bool) predicate.Notifier
- func Name(v string) predicate.Notifier
- func NameContains(v string) predicate.Notifier
- func NameContainsFold(v string) predicate.Notifier
- func NameEQ(v string) predicate.Notifier
- func NameEqualFold(v string) predicate.Notifier
- func NameGT(v string) predicate.Notifier
- func NameGTE(v string) predicate.Notifier
- func NameHasPrefix(v string) predicate.Notifier
- func NameHasSuffix(v string) predicate.Notifier
- func NameIn(vs ...string) predicate.Notifier
- func NameLT(v string) predicate.Notifier
- func NameLTE(v string) predicate.Notifier
- func NameNEQ(v string) predicate.Notifier
- func NameNotIn(vs ...string) predicate.Notifier
- func Not(p predicate.Notifier) predicate.Notifier
- func Or(predicates ...predicate.Notifier) predicate.Notifier
- func URL(v string) predicate.Notifier
- func URLContains(v string) predicate.Notifier
- func URLContainsFold(v string) predicate.Notifier
- func URLEQ(v string) predicate.Notifier
- func URLEqualFold(v string) predicate.Notifier
- func URLGT(v string) predicate.Notifier
- func URLGTE(v string) predicate.Notifier
- func URLHasPrefix(v string) predicate.Notifier
- func URLHasSuffix(v string) predicate.Notifier
- func URLIn(vs ...string) predicate.Notifier
- func URLLT(v string) predicate.Notifier
- func URLLTE(v string) predicate.Notifier
- func URLNEQ(v string) predicate.Notifier
- func URLNotIn(vs ...string) predicate.Notifier
- func UpdatedAt(v time.Time) predicate.Notifier
- func UpdatedAtEQ(v time.Time) predicate.Notifier
- func UpdatedAtGT(v time.Time) predicate.Notifier
- func UpdatedAtGTE(v time.Time) predicate.Notifier
- func UpdatedAtIn(vs ...time.Time) predicate.Notifier
- func UpdatedAtLT(v time.Time) predicate.Notifier
- func UpdatedAtLTE(v time.Time) predicate.Notifier
- func UpdatedAtNEQ(v time.Time) predicate.Notifier
- func UpdatedAtNotIn(vs ...time.Time) predicate.Notifier
- func UserID(v uuid.UUID) predicate.Notifier
- func UserIDEQ(v uuid.UUID) predicate.Notifier
- func UserIDIn(vs ...uuid.UUID) predicate.Notifier
- func UserIDNEQ(v uuid.UUID) predicate.Notifier
- func UserIDNotIn(vs ...uuid.UUID) predicate.Notifier
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGroupID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsActive(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the notifier type in the database. Label = "notifier" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldGroupID holds the string denoting the group_id field in the database. FieldGroupID = "group_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the notifier in the database. Table = "notifiers" // GroupTable is the table that holds the group relation/edge. GroupTable = "notifiers" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_id" // UserTable is the table that holds the user relation/edge. UserTable = "notifiers" // 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_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // DefaultIsActive holds the default value on creation for the "is_active" field. DefaultIsActive bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldGroupID, FieldUserID, FieldName, FieldURL, FieldIsActive, }
Columns holds all SQL columns for notifier fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func GroupID ¶
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDNEQ ¶
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" 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 IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" 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 Notifier queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByGroupID ¶
func ByGroupID(opts ...sql.OrderTermOption) OrderOption
ByGroupID orders the results by the group_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsActive ¶
func ByIsActive(opts ...sql.OrderTermOption) OrderOption
ByIsActive orders the results by the is_active field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.