account

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the account type in the database.
	Label = "account"
	// 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"
	// EdgeToken holds the string denoting the token edge name in mutations.
	EdgeToken = "token"
	// Table holds the table name of the account in the database.
	Table = "accounts"
	// TokenTable is the table that holds the token relation/edge.
	TokenTable = "tokens"
	// TokenInverseTable is the table name for the Token entity.
	// It exists in this package in order to avoid circular dependency with the "token" package.
	TokenInverseTable = "tokens"
	// TokenColumn is the table column denoting the token relation/edge.
	TokenColumn = "account_token"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() sid.ID
)
View Source
var Columns = []string{
	FieldID,
	FieldEmail,
}

Columns holds all SQL columns for account fields.

Functions

func And

func And(predicates ...predicate.Account) predicate.Account

And groups predicates with the AND operator between them.

func Email

func Email(v string) predicate.Account

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Account

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Account

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Account

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Account

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Account

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Account

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Account

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Account

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Account

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Account

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Account

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Account

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Account

EmailNotIn applies the NotIn predicate on the "email" field.

func HasToken

func HasToken() predicate.Account

HasToken applies the HasEdge predicate on the "token" edge.

func HasTokenWith

func HasTokenWith(preds ...predicate.Token) predicate.Account

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

func ID

func ID(id sid.ID) predicate.Account

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id sid.ID) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id sid.ID) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id sid.ID) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...sid.ID) predicate.Account

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id sid.ID) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id sid.ID) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id sid.ID) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...sid.ID) predicate.Account

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Account) predicate.Account

Or groups predicates with the OR operator between them.

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