uid

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldInDeletionPool holds the string denoting the indeletionpool field in the database.
	FieldInDeletionPool = "in_deletion_pool"
	// 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

View Source
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
	// DefaultInDeletionPool holds the default value on creation for the "InDeletionPool" field.
	DefaultInDeletionPool bool
)

Columns holds all SQL columns for uid fields.

View Source
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 And

func And(predicates ...predicate.UID) predicate.UID

And groups predicates with the AND operator between them.

func Deleted

func Deleted(v bool) predicate.UID

Deleted applies equality check predicate on the "Deleted" field. It's identical to DeletedEQ.

func DeletedEQ

func DeletedEQ(v bool) predicate.UID

DeletedEQ applies the EQ predicate on the "Deleted" field.

func DeletedNEQ

func DeletedNEQ(v bool) predicate.UID

DeletedNEQ applies the NEQ predicate on the "Deleted" field.

func HasMailbox

func HasMailbox() predicate.UID

HasMailbox applies the HasEdge predicate on the "mailbox" edge.

func HasMailboxWith

func HasMailboxWith(preds ...predicate.Mailbox) predicate.UID

HasMailboxWith applies the HasEdge predicate on the "mailbox" edge with a given conditions (other predicates).

func HasMessage

func HasMessage() predicate.UID

HasMessage applies the HasEdge predicate on the "message" edge.

func HasMessageWith

func HasMessageWith(preds ...predicate.Message) predicate.UID

HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.UID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.UID

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UID

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UID

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.UID

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UID

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UID

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UID

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.UID

IDNotIn applies the NotIn predicate on the ID field.

func InDeletionPool

func InDeletionPool(v bool) predicate.UID

InDeletionPool applies equality check predicate on the "InDeletionPool" field. It's identical to InDeletionPoolEQ.

func InDeletionPoolEQ

func InDeletionPoolEQ(v bool) predicate.UID

InDeletionPoolEQ applies the EQ predicate on the "InDeletionPool" field.

func InDeletionPoolNEQ

func InDeletionPoolNEQ(v bool) predicate.UID

InDeletionPoolNEQ applies the NEQ predicate on the "InDeletionPool" field.

func Not

func Not(p predicate.UID) predicate.UID

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UID) predicate.UID

Or groups predicates with the OR operator between them.

func Recent

func Recent(v bool) predicate.UID

Recent applies equality check predicate on the "Recent" field. It's identical to RecentEQ.

func RecentEQ

func RecentEQ(v bool) predicate.UID

RecentEQ applies the EQ predicate on the "Recent" field.

func RecentNEQ

func RecentNEQ(v bool) predicate.UID

RecentNEQ applies the NEQ predicate on the "Recent" field.

func UID

func UID(v int) predicate.UID

UID applies equality check predicate on the "UID" field. It's identical to UIDEQ.

func UIDEQ

func UIDEQ(v int) predicate.UID

UIDEQ applies the EQ predicate on the "UID" field.

func UIDGT

func UIDGT(v int) predicate.UID

UIDGT applies the GT predicate on the "UID" field.

func UIDGTE

func UIDGTE(v int) predicate.UID

UIDGTE applies the GTE predicate on the "UID" field.

func UIDIn

func UIDIn(vs ...int) predicate.UID

UIDIn applies the In predicate on the "UID" field.

func UIDLT

func UIDLT(v int) predicate.UID

UIDLT applies the LT predicate on the "UID" field.

func UIDLTE

func UIDLTE(v int) predicate.UID

UIDLTE applies the LTE predicate on the "UID" field.

func UIDNEQ

func UIDNEQ(v int) predicate.UID

UIDNEQ applies the NEQ predicate on the "UID" field.

func UIDNotIn

func UIDNotIn(vs ...int) predicate.UID

UIDNotIn applies the NotIn predicate on the "UID" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL