Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func IsActivated(v bool) predicate.User
- func IsActivatedEQ(v bool) predicate.User
- func IsActivatedNEQ(v bool) predicate.User
- func IsAdmin(v bool) predicate.User
- func IsAdminEQ(v bool) predicate.User
- func IsAdminNEQ(v bool) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func OauthID(v string) predicate.User
- func OauthIDContains(v string) predicate.User
- func OauthIDContainsFold(v string) predicate.User
- func OauthIDEQ(v string) predicate.User
- func OauthIDEqualFold(v string) predicate.User
- func OauthIDGT(v string) predicate.User
- func OauthIDGTE(v string) predicate.User
- func OauthIDHasPrefix(v string) predicate.User
- func OauthIDHasSuffix(v string) predicate.User
- func OauthIDIn(vs ...string) predicate.User
- func OauthIDLT(v string) predicate.User
- func OauthIDLTE(v string) predicate.User
- func OauthIDNEQ(v string) predicate.User
- func OauthIDNotIn(vs ...string) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PhotoURL(v string) predicate.User
- func PhotoURLContains(v string) predicate.User
- func PhotoURLContainsFold(v string) predicate.User
- func PhotoURLEQ(v string) predicate.User
- func PhotoURLEqualFold(v string) predicate.User
- func PhotoURLGT(v string) predicate.User
- func PhotoURLGTE(v string) predicate.User
- func PhotoURLHasPrefix(v string) predicate.User
- func PhotoURLHasSuffix(v string) predicate.User
- func PhotoURLIn(vs ...string) predicate.User
- func PhotoURLLT(v string) predicate.User
- func PhotoURLLTE(v string) predicate.User
- func PhotoURLNEQ(v string) predicate.User
- func PhotoURLNotIn(vs ...string) predicate.User
- func SessionToken(v string) predicate.User
- func SessionTokenContains(v string) predicate.User
- func SessionTokenContainsFold(v string) predicate.User
- func SessionTokenEQ(v string) predicate.User
- func SessionTokenEqualFold(v string) predicate.User
- func SessionTokenGT(v string) predicate.User
- func SessionTokenGTE(v string) predicate.User
- func SessionTokenHasPrefix(v string) predicate.User
- func SessionTokenHasSuffix(v string) predicate.User
- func SessionTokenIn(vs ...string) predicate.User
- func SessionTokenLT(v string) predicate.User
- func SessionTokenLTE(v string) predicate.User
- func SessionTokenNEQ(v string) predicate.User
- func SessionTokenNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsActivated(opts ...sql.OrderTermOption) OrderOption
- func ByIsAdmin(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOauthID(opts ...sql.OrderTermOption) OrderOption
- func ByPhotoURL(opts ...sql.OrderTermOption) OrderOption
- func BySessionToken(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldOauthID holds the string denoting the oauth_id field in the database. FieldOauthID = "oauth_id" // FieldPhotoURL holds the string denoting the photo_url field in the database. FieldPhotoURL = "photo_url" // FieldSessionToken holds the string denoting the session_token field in the database. FieldSessionToken = "session_token" // FieldIsActivated holds the string denoting the is_activated field in the database. FieldIsActivated = "is_activated" // FieldIsAdmin holds the string denoting the is_admin field in the database. FieldIsAdmin = "is_admin" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultSessionToken holds the default value on creation for the "session_token" field. DefaultSessionToken func() string // SessionTokenValidator is a validator for the "session_token" field. It is called by the builders before save. SessionTokenValidator func(string) error // DefaultIsActivated holds the default value on creation for the "is_activated" field. DefaultIsActivated bool // DefaultIsAdmin holds the default value on creation for the "is_admin" field. DefaultIsAdmin bool )
var Columns = []string{ FieldID, FieldName, FieldOauthID, FieldPhotoURL, FieldSessionToken, FieldIsActivated, FieldIsAdmin, }
Columns holds all SQL columns for user fields.
Functions ¶
func IsActivated ¶
IsActivated applies equality check predicate on the "is_activated" field. It's identical to IsActivatedEQ.
func IsActivatedEQ ¶
IsActivatedEQ applies the EQ predicate on the "is_activated" field.
func IsActivatedNEQ ¶
IsActivatedNEQ applies the NEQ predicate on the "is_activated" field.
func IsAdmin ¶
IsAdmin applies equality check predicate on the "is_admin" field. It's identical to IsAdminEQ.
func IsAdminNEQ ¶
IsAdminNEQ applies the NEQ predicate on the "is_admin" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OauthID ¶
OauthID applies equality check predicate on the "oauth_id" field. It's identical to OauthIDEQ.
func OauthIDContains ¶
OauthIDContains applies the Contains predicate on the "oauth_id" field.
func OauthIDContainsFold ¶
OauthIDContainsFold applies the ContainsFold predicate on the "oauth_id" field.
func OauthIDEqualFold ¶
OauthIDEqualFold applies the EqualFold predicate on the "oauth_id" field.
func OauthIDGTE ¶
OauthIDGTE applies the GTE predicate on the "oauth_id" field.
func OauthIDHasPrefix ¶
OauthIDHasPrefix applies the HasPrefix predicate on the "oauth_id" field.
func OauthIDHasSuffix ¶
OauthIDHasSuffix applies the HasSuffix predicate on the "oauth_id" field.
func OauthIDLTE ¶
OauthIDLTE applies the LTE predicate on the "oauth_id" field.
func OauthIDNEQ ¶
OauthIDNEQ applies the NEQ predicate on the "oauth_id" field.
func OauthIDNotIn ¶
OauthIDNotIn applies the NotIn predicate on the "oauth_id" field.
func PhotoURL ¶
PhotoURL applies equality check predicate on the "photo_url" field. It's identical to PhotoURLEQ.
func PhotoURLContains ¶
PhotoURLContains applies the Contains predicate on the "photo_url" field.
func PhotoURLContainsFold ¶
PhotoURLContainsFold applies the ContainsFold predicate on the "photo_url" field.
func PhotoURLEQ ¶
PhotoURLEQ applies the EQ predicate on the "photo_url" field.
func PhotoURLEqualFold ¶
PhotoURLEqualFold applies the EqualFold predicate on the "photo_url" field.
func PhotoURLGT ¶
PhotoURLGT applies the GT predicate on the "photo_url" field.
func PhotoURLGTE ¶
PhotoURLGTE applies the GTE predicate on the "photo_url" field.
func PhotoURLHasPrefix ¶
PhotoURLHasPrefix applies the HasPrefix predicate on the "photo_url" field.
func PhotoURLHasSuffix ¶
PhotoURLHasSuffix applies the HasSuffix predicate on the "photo_url" field.
func PhotoURLIn ¶
PhotoURLIn applies the In predicate on the "photo_url" field.
func PhotoURLLT ¶
PhotoURLLT applies the LT predicate on the "photo_url" field.
func PhotoURLLTE ¶
PhotoURLLTE applies the LTE predicate on the "photo_url" field.
func PhotoURLNEQ ¶
PhotoURLNEQ applies the NEQ predicate on the "photo_url" field.
func PhotoURLNotIn ¶
PhotoURLNotIn applies the NotIn predicate on the "photo_url" field.
func SessionToken ¶
SessionToken applies equality check predicate on the "session_token" field. It's identical to SessionTokenEQ.
func SessionTokenContains ¶
SessionTokenContains applies the Contains predicate on the "session_token" field.
func SessionTokenContainsFold ¶
SessionTokenContainsFold applies the ContainsFold predicate on the "session_token" field.
func SessionTokenEQ ¶
SessionTokenEQ applies the EQ predicate on the "session_token" field.
func SessionTokenEqualFold ¶
SessionTokenEqualFold applies the EqualFold predicate on the "session_token" field.
func SessionTokenGT ¶
SessionTokenGT applies the GT predicate on the "session_token" field.
func SessionTokenGTE ¶
SessionTokenGTE applies the GTE predicate on the "session_token" field.
func SessionTokenHasPrefix ¶
SessionTokenHasPrefix applies the HasPrefix predicate on the "session_token" field.
func SessionTokenHasSuffix ¶
SessionTokenHasSuffix applies the HasSuffix predicate on the "session_token" field.
func SessionTokenIn ¶
SessionTokenIn applies the In predicate on the "session_token" field.
func SessionTokenLT ¶
SessionTokenLT applies the LT predicate on the "session_token" field.
func SessionTokenLTE ¶
SessionTokenLTE applies the LTE predicate on the "session_token" field.
func SessionTokenNEQ ¶
SessionTokenNEQ applies the NEQ predicate on the "session_token" field.
func SessionTokenNotIn ¶
SessionTokenNotIn applies the NotIn predicate on the "session_token" 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 User queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsActivated ¶
func ByIsActivated(opts ...sql.OrderTermOption) OrderOption
ByIsActivated orders the results by the is_activated field.
func ByIsAdmin ¶
func ByIsAdmin(opts ...sql.OrderTermOption) OrderOption
ByIsAdmin orders the results by the is_admin field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOauthID ¶
func ByOauthID(opts ...sql.OrderTermOption) OrderOption
ByOauthID orders the results by the oauth_id field.
func ByPhotoURL ¶
func ByPhotoURL(opts ...sql.OrderTermOption) OrderOption
ByPhotoURL orders the results by the photo_url field.
func BySessionToken ¶
func BySessionToken(opts ...sql.OrderTermOption) OrderOption
BySessionToken orders the results by the session_token field.