Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Credential) predicate.Credential
- func HasHolder() predicate.Credential
- func HasHolderWith(preds ...predicate.User) predicate.Credential
- func ID(id int) predicate.Credential
- func IDEQ(id int) predicate.Credential
- func IDGT(id int) predicate.Credential
- func IDGTE(id int) predicate.Credential
- func IDIn(ids ...int) predicate.Credential
- func IDLT(id int) predicate.Credential
- func IDLTE(id int) predicate.Credential
- func IDNEQ(id int) predicate.Credential
- func IDNotIn(ids ...int) predicate.Credential
- func Not(p predicate.Credential) predicate.Credential
- func Or(predicates ...predicate.Credential) predicate.Credential
- func PasswordHash(v []byte) predicate.Credential
- func PasswordHashEQ(v []byte) predicate.Credential
- func PasswordHashGT(v []byte) predicate.Credential
- func PasswordHashGTE(v []byte) predicate.Credential
- func PasswordHashIn(vs ...[]byte) predicate.Credential
- func PasswordHashLT(v []byte) predicate.Credential
- func PasswordHashLTE(v []byte) predicate.Credential
- func PasswordHashNEQ(v []byte) predicate.Credential
- func PasswordHashNotIn(vs ...[]byte) predicate.Credential
- func Salt(v []byte) predicate.Credential
- func SaltEQ(v []byte) predicate.Credential
- func SaltGT(v []byte) predicate.Credential
- func SaltGTE(v []byte) predicate.Credential
- func SaltIn(vs ...[]byte) predicate.Credential
- func SaltLT(v []byte) predicate.Credential
- func SaltLTE(v []byte) predicate.Credential
- func SaltNEQ(v []byte) predicate.Credential
- func SaltNotIn(vs ...[]byte) predicate.Credential
Constants ¶
const ( // Label holds the string label denoting the credential type in the database. Label = "credential" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSalt holds the string denoting the salt vertex property in the database. FieldSalt = "salt" // FieldPasswordHash holds the string denoting the password_hash vertex property in the database. FieldPasswordHash = "password_hash" // EdgeHolder holds the string denoting the holder edge name in mutations. EdgeHolder = "holder" // Table holds the table name of the credential in the database. Table = "credentials" // HolderTable is the table the holds the holder relation/edge. HolderTable = "credentials" // HolderInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. HolderInverseTable = "users" // HolderColumn is the table column denoting the holder relation/edge. HolderColumn = "user_credentials" )
Variables ¶
var Columns = []string{ FieldID, FieldSalt, FieldPasswordHash, }
Columns holds all SQL columns for credential fields.
var ForeignKeys = []string{
"user_credentials",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Credential type.
Functions ¶
func And ¶
func And(predicates ...predicate.Credential) predicate.Credential
And groups list of predicates with the AND operator between them.
func HasHolder ¶
func HasHolder() predicate.Credential
HasHolder applies the HasEdge predicate on the "holder" edge.
func HasHolderWith ¶
func HasHolderWith(preds ...predicate.User) predicate.Credential
HasHolderWith applies the HasEdge predicate on the "holder" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Credential
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Credential
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Credential
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Credential
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Credential
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Credential) predicate.Credential
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Credential) predicate.Credential
Or groups list of predicates with the OR operator between them.
func PasswordHash ¶
func PasswordHash(v []byte) predicate.Credential
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashEQ ¶
func PasswordHashEQ(v []byte) predicate.Credential
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashGT ¶
func PasswordHashGT(v []byte) predicate.Credential
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
func PasswordHashGTE(v []byte) predicate.Credential
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashIn ¶
func PasswordHashIn(vs ...[]byte) predicate.Credential
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashLT ¶
func PasswordHashLT(v []byte) predicate.Credential
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
func PasswordHashLTE(v []byte) predicate.Credential
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
func PasswordHashNEQ(v []byte) predicate.Credential
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
func PasswordHashNotIn(vs ...[]byte) predicate.Credential
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func Salt ¶
func Salt(v []byte) predicate.Credential
Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.
func SaltEQ ¶
func SaltEQ(v []byte) predicate.Credential
SaltEQ applies the EQ predicate on the "salt" field.
func SaltGT ¶
func SaltGT(v []byte) predicate.Credential
SaltGT applies the GT predicate on the "salt" field.
func SaltGTE ¶
func SaltGTE(v []byte) predicate.Credential
SaltGTE applies the GTE predicate on the "salt" field.
func SaltIn ¶
func SaltIn(vs ...[]byte) predicate.Credential
SaltIn applies the In predicate on the "salt" field.
func SaltLT ¶
func SaltLT(v []byte) predicate.Credential
SaltLT applies the LT predicate on the "salt" field.
func SaltLTE ¶
func SaltLTE(v []byte) predicate.Credential
SaltLTE applies the LTE predicate on the "salt" field.
func SaltNEQ ¶
func SaltNEQ(v []byte) predicate.Credential
SaltNEQ applies the NEQ predicate on the "salt" field.
func SaltNotIn ¶
func SaltNotIn(vs ...[]byte) predicate.Credential
SaltNotIn applies the NotIn predicate on the "salt" field.
Types ¶
This section is empty.