Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Login) predicate.Login
- func CreatedAt(v time.Time) predicate.Login
- func CreatedAtEQ(v time.Time) predicate.Login
- func CreatedAtGT(v time.Time) predicate.Login
- func CreatedAtGTE(v time.Time) predicate.Login
- func CreatedAtIn(vs ...time.Time) predicate.Login
- func CreatedAtLT(v time.Time) predicate.Login
- func CreatedAtLTE(v time.Time) predicate.Login
- func CreatedAtNEQ(v time.Time) predicate.Login
- func CreatedAtNotIn(vs ...time.Time) predicate.Login
- func HasCustomer() predicate.Login
- func HasCustomerWith(preds ...predicate.Customer) predicate.Login
- func ID(id int) predicate.Login
- func IDEQ(id int) predicate.Login
- func IDGT(id int) predicate.Login
- func IDGTE(id int) predicate.Login
- func IDIn(ids ...int) predicate.Login
- func IDLT(id int) predicate.Login
- func IDLTE(id int) predicate.Login
- func IDNEQ(id int) predicate.Login
- func IDNotIn(ids ...int) predicate.Login
- func LastLogin(v time.Time) predicate.Login
- func LastLoginEQ(v time.Time) predicate.Login
- func LastLoginGT(v time.Time) predicate.Login
- func LastLoginGTE(v time.Time) predicate.Login
- func LastLoginIn(vs ...time.Time) predicate.Login
- func LastLoginLT(v time.Time) predicate.Login
- func LastLoginLTE(v time.Time) predicate.Login
- func LastLoginNEQ(v time.Time) predicate.Login
- func LastLoginNotIn(vs ...time.Time) predicate.Login
- func Not(p predicate.Login) predicate.Login
- func Or(predicates ...predicate.Login) predicate.Login
- func Password(v string) predicate.Login
- func PasswordContains(v string) predicate.Login
- func PasswordContainsFold(v string) predicate.Login
- func PasswordEQ(v string) predicate.Login
- func PasswordEqualFold(v string) predicate.Login
- func PasswordGT(v string) predicate.Login
- func PasswordGTE(v string) predicate.Login
- func PasswordHasPrefix(v string) predicate.Login
- func PasswordHasSuffix(v string) predicate.Login
- func PasswordIn(vs ...string) predicate.Login
- func PasswordLT(v string) predicate.Login
- func PasswordLTE(v string) predicate.Login
- func PasswordNEQ(v string) predicate.Login
- func PasswordNotIn(vs ...string) predicate.Login
- func UpdatedAt(v time.Time) predicate.Login
- func UpdatedAtEQ(v time.Time) predicate.Login
- func UpdatedAtGT(v time.Time) predicate.Login
- func UpdatedAtGTE(v time.Time) predicate.Login
- func UpdatedAtIn(vs ...time.Time) predicate.Login
- func UpdatedAtLT(v time.Time) predicate.Login
- func UpdatedAtLTE(v time.Time) predicate.Login
- func UpdatedAtNEQ(v time.Time) predicate.Login
- func UpdatedAtNotIn(vs ...time.Time) predicate.Login
- func Username(v string) predicate.Login
- func UsernameContains(v string) predicate.Login
- func UsernameContainsFold(v string) predicate.Login
- func UsernameEQ(v string) predicate.Login
- func UsernameEqualFold(v string) predicate.Login
- func UsernameGT(v string) predicate.Login
- func UsernameGTE(v string) predicate.Login
- func UsernameHasPrefix(v string) predicate.Login
- func UsernameHasSuffix(v string) predicate.Login
- func UsernameIn(vs ...string) predicate.Login
- func UsernameLT(v string) predicate.Login
- func UsernameLTE(v string) predicate.Login
- func UsernameNEQ(v string) predicate.Login
- func UsernameNotIn(vs ...string) predicate.Login
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCustomer(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCustomerCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastLogin(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the login type in the database. Label = "login" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldLastLogin holds the string denoting the last_login field in the database. FieldLastLogin = "last_login" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeCustomer holds the string denoting the customer edge name in mutations. EdgeCustomer = "customer" // Table holds the table name of the login in the database. Table = "logins" // CustomerTable is the table that holds the customer relation/edge. CustomerTable = "customers" // CustomerInverseTable is the table name for the Customer entity. // It exists in this package in order to avoid circular dependency with the "customer" package. CustomerInverseTable = "customers" // CustomerColumn is the table column denoting the customer relation/edge. CustomerColumn = "customer_login" )
Variables ¶
var ( // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldUsername, FieldPassword, FieldLastLogin, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for login fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasCustomer ¶
HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomerWith ¶
HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func LastLogin ¶
LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.
func LastLoginEQ ¶
LastLoginEQ applies the EQ predicate on the "last_login" field.
func LastLoginGT ¶
LastLoginGT applies the GT predicate on the "last_login" field.
func LastLoginGTE ¶
LastLoginGTE applies the GTE predicate on the "last_login" field.
func LastLoginIn ¶
LastLoginIn applies the In predicate on the "last_login" field.
func LastLoginLT ¶
LastLoginLT applies the LT predicate on the "last_login" field.
func LastLoginLTE ¶
LastLoginLTE applies the LTE predicate on the "last_login" field.
func LastLoginNEQ ¶
LastLoginNEQ applies the NEQ predicate on the "last_login" field.
func LastLoginNotIn ¶
LastLoginNotIn applies the NotIn predicate on the "last_login" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the Login queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCustomer ¶
func ByCustomer(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCustomer orders the results by customer terms.
func ByCustomerCount ¶
func ByCustomerCount(opts ...sql.OrderTermOption) OrderOption
ByCustomerCount orders the results by customer count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastLogin ¶
func ByLastLogin(opts ...sql.OrderTermOption) OrderOption
ByLastLogin orders the results by the last_login field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.