Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Account) predicate.Account
- func ID(id int) predicate.Account
- func IDEQ(id int) predicate.Account
- func IDGT(id int) predicate.Account
- func IDGTE(id int) predicate.Account
- func IDIn(ids ...int) predicate.Account
- func IDLT(id int) predicate.Account
- func IDLTE(id int) predicate.Account
- func IDNEQ(id int) predicate.Account
- func IDNotIn(ids ...int) predicate.Account
- func Nickname(v string) predicate.Account
- func NicknameContains(v string) predicate.Account
- func NicknameContainsFold(v string) predicate.Account
- func NicknameEQ(v string) predicate.Account
- func NicknameEqualFold(v string) predicate.Account
- func NicknameGT(v string) predicate.Account
- func NicknameGTE(v string) predicate.Account
- func NicknameHasPrefix(v string) predicate.Account
- func NicknameHasSuffix(v string) predicate.Account
- func NicknameIn(vs ...string) predicate.Account
- func NicknameLT(v string) predicate.Account
- func NicknameLTE(v string) predicate.Account
- func NicknameNEQ(v string) predicate.Account
- func NicknameNotIn(vs ...string) predicate.Account
- func Not(p predicate.Account) predicate.Account
- func Or(predicates ...predicate.Account) predicate.Account
- func Password(v string) predicate.Account
- func PasswordContains(v string) predicate.Account
- func PasswordContainsFold(v string) predicate.Account
- func PasswordEQ(v string) predicate.Account
- func PasswordEqualFold(v string) predicate.Account
- func PasswordGT(v string) predicate.Account
- func PasswordGTE(v string) predicate.Account
- func PasswordHasPrefix(v string) predicate.Account
- func PasswordHasSuffix(v string) predicate.Account
- func PasswordIn(vs ...string) predicate.Account
- func PasswordLT(v string) predicate.Account
- func PasswordLTE(v string) predicate.Account
- func PasswordNEQ(v string) predicate.Account
- func PasswordNotIn(vs ...string) predicate.Account
- func ValidColumn(column string) bool
- type OrderOption
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" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // Table holds the table name of the account in the database. Table = "accounts" )
Variables ¶
var Columns = []string{ FieldID, FieldNickname, FieldPassword, }
Columns holds all SQL columns for account fields.
Functions ¶
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Account queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNickname ¶
func ByNickname(opts ...sql.OrderTermOption) OrderOption
ByNickname orders the results by the nickname field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.