account

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 5 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"        // FieldType holds the string denoting the type vertex property in the database.
	FieldType     = "type"      // FieldSub holds the string denoting the sub vertex property in the database.
	FieldSub      = "sub"       // FieldRemoteID holds the string denoting the remoteid vertex property in the database.
	FieldRemoteID = "remote_id" // FieldSecret holds the string denoting the secret vertex property in the database.
	FieldSecret   = "secret"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"

	// Table holds the table name of the account in the database.
	Table = "accounts"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "accounts"
	// OwnerInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	OwnerInverseTable = "persons"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "person_accounts"
)

Variables

Columns holds all SQL columns for account fields.

View Source
var ForeignKeys = []string{
	"person_accounts",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Account type.

View Source
var (
	// SubValidator is a validator for the "sub" field. It is called by the builders before save.
	SubValidator func(string) error
)

Functions

func And

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

And groups list of predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Account

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Person) predicate.Account

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

func ID

func ID(id uuid.UUID) predicate.Account

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Account

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Account

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Account

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Account

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Account

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Account

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Account

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) 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 list of predicates with the OR operator between them.

func RemoteID

func RemoteID(v string) predicate.Account

RemoteID applies equality check predicate on the "remoteID" field. It's identical to RemoteIDEQ.

func RemoteIDContains

func RemoteIDContains(v string) predicate.Account

RemoteIDContains applies the Contains predicate on the "remoteID" field.

func RemoteIDContainsFold

func RemoteIDContainsFold(v string) predicate.Account

RemoteIDContainsFold applies the ContainsFold predicate on the "remoteID" field.

func RemoteIDEQ

func RemoteIDEQ(v string) predicate.Account

RemoteIDEQ applies the EQ predicate on the "remoteID" field.

func RemoteIDEqualFold

func RemoteIDEqualFold(v string) predicate.Account

RemoteIDEqualFold applies the EqualFold predicate on the "remoteID" field.

func RemoteIDGT

func RemoteIDGT(v string) predicate.Account

RemoteIDGT applies the GT predicate on the "remoteID" field.

func RemoteIDGTE

func RemoteIDGTE(v string) predicate.Account

RemoteIDGTE applies the GTE predicate on the "remoteID" field.

func RemoteIDHasPrefix

func RemoteIDHasPrefix(v string) predicate.Account

RemoteIDHasPrefix applies the HasPrefix predicate on the "remoteID" field.

func RemoteIDHasSuffix

func RemoteIDHasSuffix(v string) predicate.Account

RemoteIDHasSuffix applies the HasSuffix predicate on the "remoteID" field.

func RemoteIDIn

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

RemoteIDIn applies the In predicate on the "remoteID" field.

func RemoteIDLT

func RemoteIDLT(v string) predicate.Account

RemoteIDLT applies the LT predicate on the "remoteID" field.

func RemoteIDLTE

func RemoteIDLTE(v string) predicate.Account

RemoteIDLTE applies the LTE predicate on the "remoteID" field.

func RemoteIDNEQ

func RemoteIDNEQ(v string) predicate.Account

RemoteIDNEQ applies the NEQ predicate on the "remoteID" field.

func RemoteIDNotIn

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

RemoteIDNotIn applies the NotIn predicate on the "remoteID" field.

func Secret

func Secret(v string) predicate.Account

Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.

func SecretContains

func SecretContains(v string) predicate.Account

SecretContains applies the Contains predicate on the "secret" field.

func SecretContainsFold

func SecretContainsFold(v string) predicate.Account

SecretContainsFold applies the ContainsFold predicate on the "secret" field.

func SecretEQ

func SecretEQ(v string) predicate.Account

SecretEQ applies the EQ predicate on the "secret" field.

func SecretEqualFold

func SecretEqualFold(v string) predicate.Account

SecretEqualFold applies the EqualFold predicate on the "secret" field.

func SecretGT

func SecretGT(v string) predicate.Account

SecretGT applies the GT predicate on the "secret" field.

func SecretGTE

func SecretGTE(v string) predicate.Account

SecretGTE applies the GTE predicate on the "secret" field.

func SecretHasPrefix

func SecretHasPrefix(v string) predicate.Account

SecretHasPrefix applies the HasPrefix predicate on the "secret" field.

func SecretHasSuffix

func SecretHasSuffix(v string) predicate.Account

SecretHasSuffix applies the HasSuffix predicate on the "secret" field.

func SecretIn

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

SecretIn applies the In predicate on the "secret" field.

func SecretIsNil

func SecretIsNil() predicate.Account

SecretIsNil applies the IsNil predicate on the "secret" field.

func SecretLT

func SecretLT(v string) predicate.Account

SecretLT applies the LT predicate on the "secret" field.

func SecretLTE

func SecretLTE(v string) predicate.Account

SecretLTE applies the LTE predicate on the "secret" field.

func SecretNEQ

func SecretNEQ(v string) predicate.Account

SecretNEQ applies the NEQ predicate on the "secret" field.

func SecretNotIn

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

SecretNotIn applies the NotIn predicate on the "secret" field.

func SecretNotNil

func SecretNotNil() predicate.Account

SecretNotNil applies the NotNil predicate on the "secret" field.

func Sub

func Sub(v string) predicate.Account

Sub applies equality check predicate on the "sub" field. It's identical to SubEQ.

func SubContains

func SubContains(v string) predicate.Account

SubContains applies the Contains predicate on the "sub" field.

func SubContainsFold

func SubContainsFold(v string) predicate.Account

SubContainsFold applies the ContainsFold predicate on the "sub" field.

func SubEQ

func SubEQ(v string) predicate.Account

SubEQ applies the EQ predicate on the "sub" field.

func SubEqualFold

func SubEqualFold(v string) predicate.Account

SubEqualFold applies the EqualFold predicate on the "sub" field.

func SubGT

func SubGT(v string) predicate.Account

SubGT applies the GT predicate on the "sub" field.

func SubGTE

func SubGTE(v string) predicate.Account

SubGTE applies the GTE predicate on the "sub" field.

func SubHasPrefix

func SubHasPrefix(v string) predicate.Account

SubHasPrefix applies the HasPrefix predicate on the "sub" field.

func SubHasSuffix

func SubHasSuffix(v string) predicate.Account

SubHasSuffix applies the HasSuffix predicate on the "sub" field.

func SubIn

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

SubIn applies the In predicate on the "sub" field.

func SubLT

func SubLT(v string) predicate.Account

SubLT applies the LT predicate on the "sub" field.

func SubLTE

func SubLTE(v string) predicate.Account

SubLTE applies the LTE predicate on the "sub" field.

func SubNEQ

func SubNEQ(v string) predicate.Account

SubNEQ applies the NEQ predicate on the "sub" field.

func SubNotIn

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

SubNotIn applies the NotIn predicate on the "sub" field.

func TypeEQ

func TypeEQ(v Type) predicate.Account

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Account

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Account

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Account

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "_type" field enum values. It is called by the builders before save.

Types

type Type

type Type string

Type defines the type for the type enum field.

const (
	TypeGoogle    Type = "Google"
	TypeAnonymous Type = "Anonymous"
	TypeEmail     Type = "Email"
)

Type values.

func (Type) String

func (s Type) String() string

Jump to

Keyboard shortcuts

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