Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UID) predicate.UID
- func Deleted(v bool) predicate.UID
- func DeletedEQ(v bool) predicate.UID
- func DeletedNEQ(v bool) predicate.UID
- func HasMailbox() predicate.UID
- func HasMailboxWith(preds ...predicate.Mailbox) predicate.UID
- func HasMessage() predicate.UID
- func HasMessageWith(preds ...predicate.Message) predicate.UID
- func ID(id int) predicate.UID
- func IDEQ(id int) predicate.UID
- func IDGT(id int) predicate.UID
- func IDGTE(id int) predicate.UID
- func IDIn(ids ...int) predicate.UID
- func IDLT(id int) predicate.UID
- func IDLTE(id int) predicate.UID
- func IDNEQ(id int) predicate.UID
- func IDNotIn(ids ...int) predicate.UID
- func Not(p predicate.UID) predicate.UID
- func Or(predicates ...predicate.UID) predicate.UID
- func Recent(v bool) predicate.UID
- func RecentEQ(v bool) predicate.UID
- func RecentNEQ(v bool) predicate.UID
- func UID(v int) predicate.UID
- func UIDEQ(v int) predicate.UID
- func UIDGT(v int) predicate.UID
- func UIDGTE(v int) predicate.UID
- func UIDIn(vs ...int) predicate.UID
- func UIDLT(v int) predicate.UID
- func UIDLTE(v int) predicate.UID
- func UIDNEQ(v int) predicate.UID
- func UIDNotIn(vs ...int) predicate.UID
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the uid type in the database. Label = "uid" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // FieldDeleted holds the string denoting the deleted field in the database. FieldDeleted = "deleted" // FieldRecent holds the string denoting the recent field in the database. FieldRecent = "recent" // EdgeMessage holds the string denoting the message edge name in mutations. EdgeMessage = "message" // EdgeMailbox holds the string denoting the mailbox edge name in mutations. EdgeMailbox = "mailbox" // Table holds the table name of the uid in the database. Table = "ui_ds" // MessageTable is the table that holds the message relation/edge. MessageTable = "ui_ds" // MessageInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessageInverseTable = "messages" // MessageColumn is the table column denoting the message relation/edge. MessageColumn = "uid_message" // MailboxTable is the table that holds the mailbox relation/edge. MailboxTable = "ui_ds" // MailboxInverseTable is the table name for the Mailbox entity. // It exists in this package in order to avoid circular dependency with the "mailbox" package. MailboxInverseTable = "mailboxes" // MailboxColumn is the table column denoting the mailbox relation/edge. MailboxColumn = "mailbox_ui_ds" )
Variables ¶
var ( // DefaultDeleted holds the default value on creation for the "Deleted" field. DefaultDeleted bool // DefaultRecent holds the default value on creation for the "Recent" field. DefaultRecent bool )
var Columns = []string{ FieldID, FieldUID, FieldDeleted, FieldRecent, }
Columns holds all SQL columns for uid fields.
var ForeignKeys = []string{
"mailbox_ui_ds",
"uid_message",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "ui_ds" table and are not defined as standalone fields in the schema.
Functions ¶
func Deleted ¶
Deleted applies equality check predicate on the "Deleted" field. It's identical to DeletedEQ.
func DeletedNEQ ¶
DeletedNEQ applies the NEQ predicate on the "Deleted" field.
func HasMailbox ¶
HasMailbox applies the HasEdge predicate on the "mailbox" edge.
func HasMailboxWith ¶
HasMailboxWith applies the HasEdge predicate on the "mailbox" edge with a given conditions (other predicates).
func HasMessage ¶
HasMessage applies the HasEdge predicate on the "message" edge.
func HasMessageWith ¶
HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).
func Recent ¶
Recent applies equality check predicate on the "Recent" field. It's identical to RecentEQ.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.