Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MailBodyCache) predicate.MailBodyCache
- func CreatedAt(v time.Time) predicate.MailBodyCache
- func CreatedAtEQ(v time.Time) predicate.MailBodyCache
- func CreatedAtGT(v time.Time) predicate.MailBodyCache
- func CreatedAtGTE(v time.Time) predicate.MailBodyCache
- func CreatedAtIn(vs ...time.Time) predicate.MailBodyCache
- func CreatedAtLT(v time.Time) predicate.MailBodyCache
- func CreatedAtLTE(v time.Time) predicate.MailBodyCache
- func CreatedAtNEQ(v time.Time) predicate.MailBodyCache
- func CreatedAtNotIn(vs ...time.Time) predicate.MailBodyCache
- func ExpiresAt(v time.Time) predicate.MailBodyCache
- func ExpiresAtEQ(v time.Time) predicate.MailBodyCache
- func ExpiresAtGT(v time.Time) predicate.MailBodyCache
- func ExpiresAtGTE(v time.Time) predicate.MailBodyCache
- func ExpiresAtIn(vs ...time.Time) predicate.MailBodyCache
- func ExpiresAtLT(v time.Time) predicate.MailBodyCache
- func ExpiresAtLTE(v time.Time) predicate.MailBodyCache
- func ExpiresAtNEQ(v time.Time) predicate.MailBodyCache
- func ExpiresAtNotIn(vs ...time.Time) predicate.MailBodyCache
- func HasUser() predicate.MailBodyCache
- func HasUserWith(preds ...predicate.User) predicate.MailBodyCache
- func ID(id uuid.UUID) predicate.MailBodyCache
- func IDEQ(id uuid.UUID) predicate.MailBodyCache
- func IDGT(id uuid.UUID) predicate.MailBodyCache
- func IDGTE(id uuid.UUID) predicate.MailBodyCache
- func IDIn(ids ...uuid.UUID) predicate.MailBodyCache
- func IDLT(id uuid.UUID) predicate.MailBodyCache
- func IDLTE(id uuid.UUID) predicate.MailBodyCache
- func IDNEQ(id uuid.UUID) predicate.MailBodyCache
- func IDNotIn(ids ...uuid.UUID) predicate.MailBodyCache
- func Not(p predicate.MailBodyCache) predicate.MailBodyCache
- func Or(predicates ...predicate.MailBodyCache) predicate.MailBodyCache
- func Provider(v string) predicate.MailBodyCache
- func ProviderContains(v string) predicate.MailBodyCache
- func ProviderContainsFold(v string) predicate.MailBodyCache
- func ProviderEQ(v string) predicate.MailBodyCache
- func ProviderEqualFold(v string) predicate.MailBodyCache
- func ProviderGT(v string) predicate.MailBodyCache
- func ProviderGTE(v string) predicate.MailBodyCache
- func ProviderHasPrefix(v string) predicate.MailBodyCache
- func ProviderHasSuffix(v string) predicate.MailBodyCache
- func ProviderIn(vs ...string) predicate.MailBodyCache
- func ProviderLT(v string) predicate.MailBodyCache
- func ProviderLTE(v string) predicate.MailBodyCache
- func ProviderMessageID(v string) predicate.MailBodyCache
- func ProviderMessageIDContains(v string) predicate.MailBodyCache
- func ProviderMessageIDContainsFold(v string) predicate.MailBodyCache
- func ProviderMessageIDEQ(v string) predicate.MailBodyCache
- func ProviderMessageIDEqualFold(v string) predicate.MailBodyCache
- func ProviderMessageIDGT(v string) predicate.MailBodyCache
- func ProviderMessageIDGTE(v string) predicate.MailBodyCache
- func ProviderMessageIDHasPrefix(v string) predicate.MailBodyCache
- func ProviderMessageIDHasSuffix(v string) predicate.MailBodyCache
- func ProviderMessageIDIn(vs ...string) predicate.MailBodyCache
- func ProviderMessageIDLT(v string) predicate.MailBodyCache
- func ProviderMessageIDLTE(v string) predicate.MailBodyCache
- func ProviderMessageIDNEQ(v string) predicate.MailBodyCache
- func ProviderMessageIDNotIn(vs ...string) predicate.MailBodyCache
- func ProviderNEQ(v string) predicate.MailBodyCache
- func ProviderNotIn(vs ...string) predicate.MailBodyCache
- func SealedBody(v []byte) predicate.MailBodyCache
- func SealedBodyEQ(v []byte) predicate.MailBodyCache
- func SealedBodyGT(v []byte) predicate.MailBodyCache
- func SealedBodyGTE(v []byte) predicate.MailBodyCache
- func SealedBodyIn(vs ...[]byte) predicate.MailBodyCache
- func SealedBodyLT(v []byte) predicate.MailBodyCache
- func SealedBodyLTE(v []byte) predicate.MailBodyCache
- func SealedBodyNEQ(v []byte) predicate.MailBodyCache
- func SealedBodyNotIn(vs ...[]byte) predicate.MailBodyCache
- func UpdatedAt(v time.Time) predicate.MailBodyCache
- func UpdatedAtEQ(v time.Time) predicate.MailBodyCache
- func UpdatedAtGT(v time.Time) predicate.MailBodyCache
- func UpdatedAtGTE(v time.Time) predicate.MailBodyCache
- func UpdatedAtIn(vs ...time.Time) predicate.MailBodyCache
- func UpdatedAtLT(v time.Time) predicate.MailBodyCache
- func UpdatedAtLTE(v time.Time) predicate.MailBodyCache
- func UpdatedAtNEQ(v time.Time) predicate.MailBodyCache
- func UpdatedAtNotIn(vs ...time.Time) predicate.MailBodyCache
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByProviderMessageID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the mailbodycache type in the database. Label = "mail_body_cache" // 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" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // FieldProviderMessageID holds the string denoting the provider_message_id field in the database. FieldProviderMessageID = "provider_message_id" // FieldSealedBody holds the string denoting the sealed_body field in the database. FieldSealedBody = "sealed_body" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the mailbodycache in the database. Table = "mail_body_caches" // UserTable is the table that holds the user relation/edge. UserTable = "mail_body_caches" // 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_mail_body_caches" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy // 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 // DefaultProvider holds the default value on creation for the "provider" field. DefaultProvider string // ProviderValidator is a validator for the "provider" field. It is called by the builders before save. ProviderValidator func(string) error // ProviderMessageIDValidator is a validator for the "provider_message_id" field. It is called by the builders before save. ProviderMessageIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldProvider, FieldProviderMessageID, FieldSealedBody, FieldExpiresAt, }
Columns holds all SQL columns for mailbodycache fields.
var ForeignKeys = []string{
"user_mail_body_caches",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "mail_body_caches" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.MailBodyCache) predicate.MailBodyCache
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.MailBodyCache
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.MailBodyCache
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.MailBodyCache
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.MailBodyCache
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.MailBodyCache
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.MailBodyCache
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.MailBodyCache
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.MailBodyCache
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.MailBodyCache
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.MailBodyCache
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.MailBodyCache
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.MailBodyCache
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.MailBodyCache
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.MailBodyCache
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.MailBodyCache
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.MailBodyCache
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.MailBodyCache
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.MailBodyCache
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasUser ¶
func HasUser() predicate.MailBodyCache
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.MailBodyCache
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.MailBodyCache
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.MailBodyCache
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.MailBodyCache
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.MailBodyCache
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.MailBodyCache
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.MailBodyCache
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.MailBodyCache
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.MailBodyCache
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.MailBodyCache
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.MailBodyCache) predicate.MailBodyCache
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MailBodyCache) predicate.MailBodyCache
Or groups predicates with the OR operator between them.
func Provider ¶
func Provider(v string) predicate.MailBodyCache
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
func ProviderContains(v string) predicate.MailBodyCache
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
func ProviderContainsFold(v string) predicate.MailBodyCache
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
func ProviderEQ(v string) predicate.MailBodyCache
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
func ProviderEqualFold(v string) predicate.MailBodyCache
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
func ProviderGT(v string) predicate.MailBodyCache
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
func ProviderGTE(v string) predicate.MailBodyCache
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
func ProviderHasPrefix(v string) predicate.MailBodyCache
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
func ProviderHasSuffix(v string) predicate.MailBodyCache
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
func ProviderIn(vs ...string) predicate.MailBodyCache
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
func ProviderLT(v string) predicate.MailBodyCache
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
func ProviderLTE(v string) predicate.MailBodyCache
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderMessageID ¶
func ProviderMessageID(v string) predicate.MailBodyCache
ProviderMessageID applies equality check predicate on the "provider_message_id" field. It's identical to ProviderMessageIDEQ.
func ProviderMessageIDContains ¶
func ProviderMessageIDContains(v string) predicate.MailBodyCache
ProviderMessageIDContains applies the Contains predicate on the "provider_message_id" field.
func ProviderMessageIDContainsFold ¶
func ProviderMessageIDContainsFold(v string) predicate.MailBodyCache
ProviderMessageIDContainsFold applies the ContainsFold predicate on the "provider_message_id" field.
func ProviderMessageIDEQ ¶
func ProviderMessageIDEQ(v string) predicate.MailBodyCache
ProviderMessageIDEQ applies the EQ predicate on the "provider_message_id" field.
func ProviderMessageIDEqualFold ¶
func ProviderMessageIDEqualFold(v string) predicate.MailBodyCache
ProviderMessageIDEqualFold applies the EqualFold predicate on the "provider_message_id" field.
func ProviderMessageIDGT ¶
func ProviderMessageIDGT(v string) predicate.MailBodyCache
ProviderMessageIDGT applies the GT predicate on the "provider_message_id" field.
func ProviderMessageIDGTE ¶
func ProviderMessageIDGTE(v string) predicate.MailBodyCache
ProviderMessageIDGTE applies the GTE predicate on the "provider_message_id" field.
func ProviderMessageIDHasPrefix ¶
func ProviderMessageIDHasPrefix(v string) predicate.MailBodyCache
ProviderMessageIDHasPrefix applies the HasPrefix predicate on the "provider_message_id" field.
func ProviderMessageIDHasSuffix ¶
func ProviderMessageIDHasSuffix(v string) predicate.MailBodyCache
ProviderMessageIDHasSuffix applies the HasSuffix predicate on the "provider_message_id" field.
func ProviderMessageIDIn ¶
func ProviderMessageIDIn(vs ...string) predicate.MailBodyCache
ProviderMessageIDIn applies the In predicate on the "provider_message_id" field.
func ProviderMessageIDLT ¶
func ProviderMessageIDLT(v string) predicate.MailBodyCache
ProviderMessageIDLT applies the LT predicate on the "provider_message_id" field.
func ProviderMessageIDLTE ¶
func ProviderMessageIDLTE(v string) predicate.MailBodyCache
ProviderMessageIDLTE applies the LTE predicate on the "provider_message_id" field.
func ProviderMessageIDNEQ ¶
func ProviderMessageIDNEQ(v string) predicate.MailBodyCache
ProviderMessageIDNEQ applies the NEQ predicate on the "provider_message_id" field.
func ProviderMessageIDNotIn ¶
func ProviderMessageIDNotIn(vs ...string) predicate.MailBodyCache
ProviderMessageIDNotIn applies the NotIn predicate on the "provider_message_id" field.
func ProviderNEQ ¶
func ProviderNEQ(v string) predicate.MailBodyCache
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
func ProviderNotIn(vs ...string) predicate.MailBodyCache
ProviderNotIn applies the NotIn predicate on the "provider" field.
func SealedBody ¶
func SealedBody(v []byte) predicate.MailBodyCache
SealedBody applies equality check predicate on the "sealed_body" field. It's identical to SealedBodyEQ.
func SealedBodyEQ ¶
func SealedBodyEQ(v []byte) predicate.MailBodyCache
SealedBodyEQ applies the EQ predicate on the "sealed_body" field.
func SealedBodyGT ¶
func SealedBodyGT(v []byte) predicate.MailBodyCache
SealedBodyGT applies the GT predicate on the "sealed_body" field.
func SealedBodyGTE ¶
func SealedBodyGTE(v []byte) predicate.MailBodyCache
SealedBodyGTE applies the GTE predicate on the "sealed_body" field.
func SealedBodyIn ¶
func SealedBodyIn(vs ...[]byte) predicate.MailBodyCache
SealedBodyIn applies the In predicate on the "sealed_body" field.
func SealedBodyLT ¶
func SealedBodyLT(v []byte) predicate.MailBodyCache
SealedBodyLT applies the LT predicate on the "sealed_body" field.
func SealedBodyLTE ¶
func SealedBodyLTE(v []byte) predicate.MailBodyCache
SealedBodyLTE applies the LTE predicate on the "sealed_body" field.
func SealedBodyNEQ ¶
func SealedBodyNEQ(v []byte) predicate.MailBodyCache
SealedBodyNEQ applies the NEQ predicate on the "sealed_body" field.
func SealedBodyNotIn ¶
func SealedBodyNotIn(vs ...[]byte) predicate.MailBodyCache
SealedBodyNotIn applies the NotIn predicate on the "sealed_body" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.MailBodyCache
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.MailBodyCache
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.MailBodyCache
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.MailBodyCache
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.MailBodyCache
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.MailBodyCache
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.MailBodyCache
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.MailBodyCache
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.MailBodyCache
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 MailBodyCache queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func ByProviderMessageID ¶
func ByProviderMessageID(opts ...sql.OrderTermOption) OrderOption
ByProviderMessageID orders the results by the provider_message_id 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.