Documentation ¶
Index ¶
- Constants
- Variables
- func AccessToken(v string) predicate.User
- func AccessTokenContains(v string) predicate.User
- func AccessTokenContainsFold(v string) predicate.User
- func AccessTokenEQ(v string) predicate.User
- func AccessTokenEqualFold(v string) predicate.User
- func AccessTokenGT(v string) predicate.User
- func AccessTokenGTE(v string) predicate.User
- func AccessTokenHasPrefix(v string) predicate.User
- func AccessTokenHasSuffix(v string) predicate.User
- func AccessTokenIn(vs ...string) predicate.User
- func AccessTokenLT(v string) predicate.User
- func AccessTokenLTE(v string) predicate.User
- func AccessTokenNEQ(v string) predicate.User
- func AccessTokenNotIn(vs ...string) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func HasTomes() predicate.User
- func HasTomesWith(preds ...predicate.Tome) 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 ByAccessToken(opts ...sql.OrderTermOption) 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
- func ByTomes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTomesCount(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" // FieldAccessToken holds the string denoting the access_token field in the database. FieldAccessToken = "access_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" // EdgeTomes holds the string denoting the tomes edge name in mutations. EdgeTomes = "tomes" // Table holds the table name of the user in the database. Table = "users" // TomesTable is the table that holds the tomes relation/edge. TomesTable = "tomes" // TomesInverseTable is the table name for the Tome entity. // It exists in this package in order to avoid circular dependency with the "tome" package. TomesInverseTable = "tomes" // TomesColumn is the table column denoting the tomes relation/edge. TomesColumn = "tome_uploader" )
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 // DefaultAccessToken holds the default value on creation for the "access_token" field. DefaultAccessToken func() string // AccessTokenValidator is a validator for the "access_token" field. It is called by the builders before save. AccessTokenValidator 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, FieldAccessToken, FieldIsActivated, FieldIsAdmin, }
Columns holds all SQL columns for user fields.
Functions ¶
func AccessToken ¶ added in v0.0.6
AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.
func AccessTokenContains ¶ added in v0.0.6
AccessTokenContains applies the Contains predicate on the "access_token" field.
func AccessTokenContainsFold ¶ added in v0.0.6
AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.
func AccessTokenEQ ¶ added in v0.0.6
AccessTokenEQ applies the EQ predicate on the "access_token" field.
func AccessTokenEqualFold ¶ added in v0.0.6
AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.
func AccessTokenGT ¶ added in v0.0.6
AccessTokenGT applies the GT predicate on the "access_token" field.
func AccessTokenGTE ¶ added in v0.0.6
AccessTokenGTE applies the GTE predicate on the "access_token" field.
func AccessTokenHasPrefix ¶ added in v0.0.6
AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.
func AccessTokenHasSuffix ¶ added in v0.0.6
AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.
func AccessTokenIn ¶ added in v0.0.6
AccessTokenIn applies the In predicate on the "access_token" field.
func AccessTokenLT ¶ added in v0.0.6
AccessTokenLT applies the LT predicate on the "access_token" field.
func AccessTokenLTE ¶ added in v0.0.6
AccessTokenLTE applies the LTE predicate on the "access_token" field.
func AccessTokenNEQ ¶ added in v0.0.6
AccessTokenNEQ applies the NEQ predicate on the "access_token" field.
func AccessTokenNotIn ¶ added in v0.0.6
AccessTokenNotIn applies the NotIn predicate on the "access_token" field.
func HasTomesWith ¶ added in v0.0.5
HasTomesWith applies the HasEdge predicate on the "tomes" edge with a given conditions (other predicates).
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 ByAccessToken ¶ added in v0.0.6
func ByAccessToken(opts ...sql.OrderTermOption) OrderOption
ByAccessToken orders the results by the access_token field.
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.
func ByTomes ¶ added in v0.0.5
func ByTomes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTomes orders the results by tomes terms.
func ByTomesCount ¶ added in v0.0.5
func ByTomesCount(opts ...sql.OrderTermOption) OrderOption
ByTomesCount orders the results by tomes count.