Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Password) predicate.Password
- func Email(v string) predicate.Password
- func EmailContains(v string) predicate.Password
- func EmailContainsFold(v string) predicate.Password
- func EmailEQ(v string) predicate.Password
- func EmailEqualFold(v string) predicate.Password
- func EmailGT(v string) predicate.Password
- func EmailGTE(v string) predicate.Password
- func EmailHasPrefix(v string) predicate.Password
- func EmailHasSuffix(v string) predicate.Password
- func EmailIn(vs ...string) predicate.Password
- func EmailLT(v string) predicate.Password
- func EmailLTE(v string) predicate.Password
- func EmailNEQ(v string) predicate.Password
- func EmailNotIn(vs ...string) predicate.Password
- func Hash(v []byte) predicate.Password
- func HashEQ(v []byte) predicate.Password
- func HashGT(v []byte) predicate.Password
- func HashGTE(v []byte) predicate.Password
- func HashIn(vs ...[]byte) predicate.Password
- func HashLT(v []byte) predicate.Password
- func HashLTE(v []byte) predicate.Password
- func HashNEQ(v []byte) predicate.Password
- func HashNotIn(vs ...[]byte) predicate.Password
- func ID(id int) predicate.Password
- func IDEQ(id int) predicate.Password
- func IDGT(id int) predicate.Password
- func IDGTE(id int) predicate.Password
- func IDIn(ids ...int) predicate.Password
- func IDLT(id int) predicate.Password
- func IDLTE(id int) predicate.Password
- func IDNEQ(id int) predicate.Password
- func IDNotIn(ids ...int) predicate.Password
- func Not(p predicate.Password) predicate.Password
- func Or(predicates ...predicate.Password) predicate.Password
- func UserID(v string) predicate.Password
- func UserIDContains(v string) predicate.Password
- func UserIDContainsFold(v string) predicate.Password
- func UserIDEQ(v string) predicate.Password
- func UserIDEqualFold(v string) predicate.Password
- func UserIDGT(v string) predicate.Password
- func UserIDGTE(v string) predicate.Password
- func UserIDHasPrefix(v string) predicate.Password
- func UserIDHasSuffix(v string) predicate.Password
- func UserIDIn(vs ...string) predicate.Password
- func UserIDLT(v string) predicate.Password
- func UserIDLTE(v string) predicate.Password
- func UserIDNEQ(v string) predicate.Password
- func UserIDNotIn(vs ...string) predicate.Password
- func Username(v string) predicate.Password
- func UsernameContains(v string) predicate.Password
- func UsernameContainsFold(v string) predicate.Password
- func UsernameEQ(v string) predicate.Password
- func UsernameEqualFold(v string) predicate.Password
- func UsernameGT(v string) predicate.Password
- func UsernameGTE(v string) predicate.Password
- func UsernameHasPrefix(v string) predicate.Password
- func UsernameHasSuffix(v string) predicate.Password
- func UsernameIn(vs ...string) predicate.Password
- func UsernameLT(v string) predicate.Password
- func UsernameLTE(v string) predicate.Password
- func UsernameNEQ(v string) predicate.Password
- func UsernameNotIn(vs ...string) predicate.Password
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the password type in the database. Label = "password" // 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" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // Table holds the table name of the password in the database. Table = "passwords" )
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // UserIDValidator is a validator for the "user_id" field. It is called by the builders before save. UserIDValidator func(string) error )
var Columns = []string{ FieldID, FieldEmail, FieldHash, FieldUsername, FieldUserID, }
Columns holds all SQL columns for password fields.
Functions ¶
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.