Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Account) predicate.Account
- func HasOwner() predicate.Account
- func HasOwnerWith(preds ...predicate.Person) predicate.Account
- func ID(id uuid.UUID) predicate.Account
- func IDEQ(id uuid.UUID) predicate.Account
- func IDGT(id uuid.UUID) predicate.Account
- func IDGTE(id uuid.UUID) predicate.Account
- func IDIn(ids ...uuid.UUID) predicate.Account
- func IDLT(id uuid.UUID) predicate.Account
- func IDLTE(id uuid.UUID) predicate.Account
- func IDNEQ(id uuid.UUID) predicate.Account
- func IDNotIn(ids ...uuid.UUID) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func RemoteID(v string) predicate.Account
- func RemoteIDContains(v string) predicate.Account
- func RemoteIDContainsFold(v string) predicate.Account
- func RemoteIDEQ(v string) predicate.Account
- func RemoteIDEqualFold(v string) predicate.Account
- func RemoteIDGT(v string) predicate.Account
- func RemoteIDGTE(v string) predicate.Account
- func RemoteIDHasPrefix(v string) predicate.Account
- func RemoteIDHasSuffix(v string) predicate.Account
- func RemoteIDIn(vs ...string) predicate.Account
- func RemoteIDLT(v string) predicate.Account
- func RemoteIDLTE(v string) predicate.Account
- func RemoteIDNEQ(v string) predicate.Account
- func RemoteIDNotIn(vs ...string) predicate.Account
- func Secret(v string) predicate.Account
- func SecretContains(v string) predicate.Account
- func SecretContainsFold(v string) predicate.Account
- func SecretEQ(v string) predicate.Account
- func SecretEqualFold(v string) predicate.Account
- func SecretGT(v string) predicate.Account
- func SecretGTE(v string) predicate.Account
- func SecretHasPrefix(v string) predicate.Account
- func SecretHasSuffix(v string) predicate.Account
- func SecretIn(vs ...string) predicate.Account
- func SecretIsNil() predicate.Account
- func SecretLT(v string) predicate.Account
- func SecretLTE(v string) predicate.Account
- func SecretNEQ(v string) predicate.Account
- func SecretNotIn(vs ...string) predicate.Account
- func SecretNotNil() predicate.Account
- func Sub(v string) predicate.Account
- func SubContains(v string) predicate.Account
- func SubContainsFold(v string) predicate.Account
- func SubEQ(v string) predicate.Account
- func SubEqualFold(v string) predicate.Account
- func SubGT(v string) predicate.Account
- func SubGTE(v string) predicate.Account
- func SubHasPrefix(v string) predicate.Account
- func SubHasSuffix(v string) predicate.Account
- func SubIn(vs ...string) predicate.Account
- func SubLT(v string) predicate.Account
- func SubLTE(v string) predicate.Account
- func SubNEQ(v string) predicate.Account
- func SubNotIn(vs ...string) predicate.Account
- func TypeEQ(v Type) predicate.Account
- func TypeIn(vs ...Type) predicate.Account
- func TypeNEQ(v Type) predicate.Account
- func TypeNotIn(vs ...Type) predicate.Account
- func TypeValidator(_type Type) error
- type Type
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldType, FieldSub, FieldRemoteID, FieldSecret, }
Columns holds all SQL columns for account fields.
var ForeignKeys = []string{
"person_accounts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Account type.
var ( // SubValidator is a validator for the "sub" field. It is called by the builders before save. SubValidator func(string) error )
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func RemoteID ¶
RemoteID applies equality check predicate on the "remoteID" field. It's identical to RemoteIDEQ.
func RemoteIDContains ¶
RemoteIDContains applies the Contains predicate on the "remoteID" field.
func RemoteIDContainsFold ¶
RemoteIDContainsFold applies the ContainsFold predicate on the "remoteID" field.
func RemoteIDEQ ¶
RemoteIDEQ applies the EQ predicate on the "remoteID" field.
func RemoteIDEqualFold ¶
RemoteIDEqualFold applies the EqualFold predicate on the "remoteID" field.
func RemoteIDGT ¶
RemoteIDGT applies the GT predicate on the "remoteID" field.
func RemoteIDGTE ¶
RemoteIDGTE applies the GTE predicate on the "remoteID" field.
func RemoteIDHasPrefix ¶
RemoteIDHasPrefix applies the HasPrefix predicate on the "remoteID" field.
func RemoteIDHasSuffix ¶
RemoteIDHasSuffix applies the HasSuffix predicate on the "remoteID" field.
func RemoteIDIn ¶
RemoteIDIn applies the In predicate on the "remoteID" field.
func RemoteIDLT ¶
RemoteIDLT applies the LT predicate on the "remoteID" field.
func RemoteIDLTE ¶
RemoteIDLTE applies the LTE predicate on the "remoteID" field.
func RemoteIDNEQ ¶
RemoteIDNEQ applies the NEQ predicate on the "remoteID" field.
func RemoteIDNotIn ¶
RemoteIDNotIn applies the NotIn predicate on the "remoteID" field.
func Secret ¶
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretContains ¶
SecretContains applies the Contains predicate on the "secret" field.
func SecretContainsFold ¶
SecretContainsFold applies the ContainsFold predicate on the "secret" field.
func SecretEqualFold ¶
SecretEqualFold applies the EqualFold predicate on the "secret" field.
func SecretHasPrefix ¶
SecretHasPrefix applies the HasPrefix predicate on the "secret" field.
func SecretHasSuffix ¶
SecretHasSuffix applies the HasSuffix predicate on the "secret" field.
func SecretIsNil ¶
SecretIsNil applies the IsNil predicate on the "secret" field.
func SecretNotIn ¶
SecretNotIn applies the NotIn predicate on the "secret" field.
func SecretNotNil ¶
SecretNotNil applies the NotNil predicate on the "secret" field.
func SubContains ¶
SubContains applies the Contains predicate on the "sub" field.
func SubContainsFold ¶
SubContainsFold applies the ContainsFold predicate on the "sub" field.
func SubEqualFold ¶
SubEqualFold applies the EqualFold predicate on the "sub" field.
func SubHasPrefix ¶
SubHasPrefix applies the HasPrefix predicate on the "sub" field.
func SubHasSuffix ¶
SubHasSuffix applies the HasSuffix predicate on the "sub" field.
func TypeValidator ¶
TypeValidator is a validator for the "_type" field enum values. It is called by the builders before save.