Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.User
- func ActiveEQ(v bool) predicate.User
- func ActiveNEQ(v bool) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func AuthProviderEQ(v AuthProvider) predicate.User
- func AuthProviderID(v string) predicate.User
- func AuthProviderIDContains(v string) predicate.User
- func AuthProviderIDContainsFold(v string) predicate.User
- func AuthProviderIDEQ(v string) predicate.User
- func AuthProviderIDEqualFold(v string) predicate.User
- func AuthProviderIDGT(v string) predicate.User
- func AuthProviderIDGTE(v string) predicate.User
- func AuthProviderIDHasPrefix(v string) predicate.User
- func AuthProviderIDHasSuffix(v string) predicate.User
- func AuthProviderIDIn(vs ...string) predicate.User
- func AuthProviderIDIsNil() predicate.User
- func AuthProviderIDLT(v string) predicate.User
- func AuthProviderIDLTE(v string) predicate.User
- func AuthProviderIDNEQ(v string) predicate.User
- func AuthProviderIDNotIn(vs ...string) predicate.User
- func AuthProviderIDNotNil() predicate.User
- func AuthProviderIn(vs ...AuthProvider) predicate.User
- func AuthProviderNEQ(v AuthProvider) predicate.User
- func AuthProviderNotIn(vs ...AuthProvider) predicate.User
- func AuthProviderValidator(ap AuthProvider) error
- func AvatarURL(v string) predicate.User
- func AvatarURLContains(v string) predicate.User
- func AvatarURLContainsFold(v string) predicate.User
- func AvatarURLEQ(v string) predicate.User
- func AvatarURLEqualFold(v string) predicate.User
- func AvatarURLGT(v string) predicate.User
- func AvatarURLGTE(v string) predicate.User
- func AvatarURLHasPrefix(v string) predicate.User
- func AvatarURLHasSuffix(v string) predicate.User
- func AvatarURLIn(vs ...string) predicate.User
- func AvatarURLIsNil() predicate.User
- func AvatarURLLT(v string) predicate.User
- func AvatarURLLTE(v string) predicate.User
- func AvatarURLNEQ(v string) predicate.User
- func AvatarURLNotIn(vs ...string) predicate.User
- func AvatarURLNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasOrg() predicate.User
- func HasOrgWith(preds ...predicate.Org) predicate.User
- func HasSessions() predicate.User
- func HasSessionsWith(preds ...predicate.Session) 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 LastLoginAt(v time.Time) predicate.User
- func LastLoginAtEQ(v time.Time) predicate.User
- func LastLoginAtGT(v time.Time) predicate.User
- func LastLoginAtGTE(v time.Time) predicate.User
- func LastLoginAtIn(vs ...time.Time) predicate.User
- func LastLoginAtIsNil() predicate.User
- func LastLoginAtLT(v time.Time) predicate.User
- func LastLoginAtLTE(v time.Time) predicate.User
- func LastLoginAtNEQ(v time.Time) predicate.User
- func LastLoginAtNotIn(vs ...time.Time) predicate.User
- func LastLoginAtNotNil() 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 NameIsNil() 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 NameNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PasswordHash(v string) predicate.User
- func PasswordHashContains(v string) predicate.User
- func PasswordHashContainsFold(v string) predicate.User
- func PasswordHashEQ(v string) predicate.User
- func PasswordHashEqualFold(v string) predicate.User
- func PasswordHashGT(v string) predicate.User
- func PasswordHashGTE(v string) predicate.User
- func PasswordHashHasPrefix(v string) predicate.User
- func PasswordHashHasSuffix(v string) predicate.User
- func PasswordHashIn(vs ...string) predicate.User
- func PasswordHashIsNil() predicate.User
- func PasswordHashLT(v string) predicate.User
- func PasswordHashLTE(v string) predicate.User
- func PasswordHashNEQ(v string) predicate.User
- func PasswordHashNotIn(vs ...string) predicate.User
- func PasswordHashNotNil() predicate.User
- func RoleEQ(v Role) predicate.User
- func RoleIn(vs ...Role) predicate.User
- func RoleNEQ(v Role) predicate.User
- func RoleNotIn(vs ...Role) predicate.User
- func RoleValidator(r Role) error
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
- type AuthProvider
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByAuthProvider(opts ...sql.OrderTermOption) OrderOption
- func ByAuthProviderID(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastLoginAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySessionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Role
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" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldAuthProvider holds the string denoting the auth_provider field in the database. FieldAuthProvider = "auth_provider" // FieldAuthProviderID holds the string denoting the auth_provider_id field in the database. FieldAuthProviderID = "auth_provider_id" // FieldAvatarURL holds the string denoting the avatar_url field in the database. FieldAvatarURL = "avatar_url" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldLastLoginAt holds the string denoting the last_login_at field in the database. FieldLastLoginAt = "last_login_at" // 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" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // EdgeSessions holds the string denoting the sessions edge name in mutations. EdgeSessions = "sessions" // Table holds the table name of the user in the database. Table = "users" // OrgTable is the table that holds the org relation/edge. OrgTable = "users" // OrgInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgInverseTable = "orgs" // OrgColumn is the table column denoting the org relation/edge. OrgColumn = "org_users" // SessionsTable is the table that holds the sessions relation/edge. SessionsTable = "sessions" // SessionsInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionsInverseTable = "sessions" // SessionsColumn is the table column denoting the sessions relation/edge. SessionsColumn = "user_sessions" )
const DefaultAuthProvider = AuthProviderLocal
AuthProviderLocal is the default value of the AuthProvider enum.
const DefaultRole = RoleMember
RoleMember is the default value of the Role enum.
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // 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, FieldEmail, FieldName, FieldPasswordHash, FieldRole, FieldAuthProvider, FieldAuthProviderID, FieldAvatarURL, FieldActive, FieldLastLoginAt, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"org_users",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func AuthProviderEQ ¶
func AuthProviderEQ(v AuthProvider) predicate.User
AuthProviderEQ applies the EQ predicate on the "auth_provider" field.
func AuthProviderID ¶
AuthProviderID applies equality check predicate on the "auth_provider_id" field. It's identical to AuthProviderIDEQ.
func AuthProviderIDContains ¶
AuthProviderIDContains applies the Contains predicate on the "auth_provider_id" field.
func AuthProviderIDContainsFold ¶
AuthProviderIDContainsFold applies the ContainsFold predicate on the "auth_provider_id" field.
func AuthProviderIDEQ ¶
AuthProviderIDEQ applies the EQ predicate on the "auth_provider_id" field.
func AuthProviderIDEqualFold ¶
AuthProviderIDEqualFold applies the EqualFold predicate on the "auth_provider_id" field.
func AuthProviderIDGT ¶
AuthProviderIDGT applies the GT predicate on the "auth_provider_id" field.
func AuthProviderIDGTE ¶
AuthProviderIDGTE applies the GTE predicate on the "auth_provider_id" field.
func AuthProviderIDHasPrefix ¶
AuthProviderIDHasPrefix applies the HasPrefix predicate on the "auth_provider_id" field.
func AuthProviderIDHasSuffix ¶
AuthProviderIDHasSuffix applies the HasSuffix predicate on the "auth_provider_id" field.
func AuthProviderIDIn ¶
AuthProviderIDIn applies the In predicate on the "auth_provider_id" field.
func AuthProviderIDIsNil ¶
AuthProviderIDIsNil applies the IsNil predicate on the "auth_provider_id" field.
func AuthProviderIDLT ¶
AuthProviderIDLT applies the LT predicate on the "auth_provider_id" field.
func AuthProviderIDLTE ¶
AuthProviderIDLTE applies the LTE predicate on the "auth_provider_id" field.
func AuthProviderIDNEQ ¶
AuthProviderIDNEQ applies the NEQ predicate on the "auth_provider_id" field.
func AuthProviderIDNotIn ¶
AuthProviderIDNotIn applies the NotIn predicate on the "auth_provider_id" field.
func AuthProviderIDNotNil ¶
AuthProviderIDNotNil applies the NotNil predicate on the "auth_provider_id" field.
func AuthProviderIn ¶
func AuthProviderIn(vs ...AuthProvider) predicate.User
AuthProviderIn applies the In predicate on the "auth_provider" field.
func AuthProviderNEQ ¶
func AuthProviderNEQ(v AuthProvider) predicate.User
AuthProviderNEQ applies the NEQ predicate on the "auth_provider" field.
func AuthProviderNotIn ¶
func AuthProviderNotIn(vs ...AuthProvider) predicate.User
AuthProviderNotIn applies the NotIn predicate on the "auth_provider" field.
func AuthProviderValidator ¶
func AuthProviderValidator(ap AuthProvider) error
AuthProviderValidator is a validator for the "auth_provider" field enum values. It is called by the builders before save.
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIsNil ¶
AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotNil ¶
AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.
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 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 HasOrgWith ¶
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func HasSessions ¶
HasSessions applies the HasEdge predicate on the "sessions" edge.
func HasSessionsWith ¶
HasSessionsWith applies the HasEdge predicate on the "sessions" edge with a given conditions (other predicates).
func LastLoginAt ¶
LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.
func LastLoginAtEQ ¶
LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.
func LastLoginAtGT ¶
LastLoginAtGT applies the GT predicate on the "last_login_at" field.
func LastLoginAtGTE ¶
LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.
func LastLoginAtIn ¶
LastLoginAtIn applies the In predicate on the "last_login_at" field.
func LastLoginAtIsNil ¶
LastLoginAtIsNil applies the IsNil predicate on the "last_login_at" field.
func LastLoginAtLT ¶
LastLoginAtLT applies the LT predicate on the "last_login_at" field.
func LastLoginAtLTE ¶
LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.
func LastLoginAtNEQ ¶
LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.
func LastLoginAtNotIn ¶
LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.
func LastLoginAtNotNil ¶
LastLoginAtNotNil applies the NotNil predicate on the "last_login_at" 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 NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashIsNil ¶
PasswordHashIsNil applies the IsNil predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func PasswordHashNotNil ¶
PasswordHashNotNil applies the NotNil predicate on the "password_hash" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type AuthProvider ¶
type AuthProvider string
AuthProvider defines the type for the "auth_provider" enum field.
const ( AuthProviderLocal AuthProvider = "local" AuthProviderGoogle AuthProvider = "google" AuthProviderGithub AuthProvider = "github" AuthProviderOidc AuthProvider = "oidc" )
AuthProvider values.
func (AuthProvider) String ¶
func (ap AuthProvider) String() string
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByAuthProvider ¶
func ByAuthProvider(opts ...sql.OrderTermOption) OrderOption
ByAuthProvider orders the results by the auth_provider field.
func ByAuthProviderID ¶
func ByAuthProviderID(opts ...sql.OrderTermOption) OrderOption
ByAuthProviderID orders the results by the auth_provider_id field.
func ByAvatarURL ¶
func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
ByAvatarURL orders the results by the avatar_url field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastLoginAt ¶
func ByLastLoginAt(opts ...sql.OrderTermOption) OrderOption
ByLastLoginAt orders the results by the last_login_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrgField ¶
func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrgField orders the results by org field.
func ByPasswordHash ¶
func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
ByPasswordHash orders the results by the password_hash field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func BySessions ¶
func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySessions orders the results by sessions terms.
func BySessionsCount ¶
func BySessionsCount(opts ...sql.OrderTermOption) OrderOption
BySessionsCount orders the results by sessions count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.