Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.LoginSession) predicate.LoginSession
- func CreatedAt(v time.Time) predicate.LoginSession
- func CreatedAtEQ(v time.Time) predicate.LoginSession
- func CreatedAtGT(v time.Time) predicate.LoginSession
- func CreatedAtGTE(v time.Time) predicate.LoginSession
- func CreatedAtIn(vs ...time.Time) predicate.LoginSession
- func CreatedAtLT(v time.Time) predicate.LoginSession
- func CreatedAtLTE(v time.Time) predicate.LoginSession
- func CreatedAtNEQ(v time.Time) predicate.LoginSession
- func CreatedAtNotIn(vs ...time.Time) predicate.LoginSession
- func ExpiresAt(v time.Time) predicate.LoginSession
- func ExpiresAtEQ(v time.Time) predicate.LoginSession
- func ExpiresAtGT(v time.Time) predicate.LoginSession
- func ExpiresAtGTE(v time.Time) predicate.LoginSession
- func ExpiresAtIn(vs ...time.Time) predicate.LoginSession
- func ExpiresAtLT(v time.Time) predicate.LoginSession
- func ExpiresAtLTE(v time.Time) predicate.LoginSession
- func ExpiresAtNEQ(v time.Time) predicate.LoginSession
- func ExpiresAtNotIn(vs ...time.Time) predicate.LoginSession
- func ID(id uuid.UUID) predicate.LoginSession
- func IDEQ(id uuid.UUID) predicate.LoginSession
- func IDGT(id uuid.UUID) predicate.LoginSession
- func IDGTE(id uuid.UUID) predicate.LoginSession
- func IDIn(ids ...uuid.UUID) predicate.LoginSession
- func IDLT(id uuid.UUID) predicate.LoginSession
- func IDLTE(id uuid.UUID) predicate.LoginSession
- func IDNEQ(id uuid.UUID) predicate.LoginSession
- func IDNotIn(ids ...uuid.UUID) predicate.LoginSession
- func Not(p predicate.LoginSession) predicate.LoginSession
- func Or(predicates ...predicate.LoginSession) predicate.LoginSession
- func PrincipalID(v uuid.UUID) predicate.LoginSession
- func PrincipalIDEQ(v uuid.UUID) predicate.LoginSession
- func PrincipalIDGT(v uuid.UUID) predicate.LoginSession
- func PrincipalIDGTE(v uuid.UUID) predicate.LoginSession
- func PrincipalIDIn(vs ...uuid.UUID) predicate.LoginSession
- func PrincipalIDLT(v uuid.UUID) predicate.LoginSession
- func PrincipalIDLTE(v uuid.UUID) predicate.LoginSession
- func PrincipalIDNEQ(v uuid.UUID) predicate.LoginSession
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.LoginSession
- func Provider(v string) predicate.LoginSession
- func ProviderContains(v string) predicate.LoginSession
- func ProviderContainsFold(v string) predicate.LoginSession
- func ProviderEQ(v string) predicate.LoginSession
- func ProviderEqualFold(v string) predicate.LoginSession
- func ProviderGT(v string) predicate.LoginSession
- func ProviderGTE(v string) predicate.LoginSession
- func ProviderHasPrefix(v string) predicate.LoginSession
- func ProviderHasSuffix(v string) predicate.LoginSession
- func ProviderIn(vs ...string) predicate.LoginSession
- func ProviderIsNil() predicate.LoginSession
- func ProviderLT(v string) predicate.LoginSession
- func ProviderLTE(v string) predicate.LoginSession
- func ProviderNEQ(v string) predicate.LoginSession
- func ProviderNotIn(vs ...string) predicate.LoginSession
- func ProviderNotNil() predicate.LoginSession
- func TokenHash(v string) predicate.LoginSession
- func TokenHashContains(v string) predicate.LoginSession
- func TokenHashContainsFold(v string) predicate.LoginSession
- func TokenHashEQ(v string) predicate.LoginSession
- func TokenHashEqualFold(v string) predicate.LoginSession
- func TokenHashGT(v string) predicate.LoginSession
- func TokenHashGTE(v string) predicate.LoginSession
- func TokenHashHasPrefix(v string) predicate.LoginSession
- func TokenHashHasSuffix(v string) predicate.LoginSession
- func TokenHashIn(vs ...string) predicate.LoginSession
- func TokenHashLT(v string) predicate.LoginSession
- func TokenHashLTE(v string) predicate.LoginSession
- func TokenHashNEQ(v string) predicate.LoginSession
- func TokenHashNotIn(vs ...string) predicate.LoginSession
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the loginsession type in the database. Label = "login_session" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTokenHash holds the string denoting the token_hash field in the database. FieldTokenHash = "token_hash" // FieldPrincipalID holds the string denoting the principal_id field in the database. FieldPrincipalID = "principal_id" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // Table holds the table name of the loginsession in the database. Table = "sf_login_sessions" )
Variables ¶
var Columns = []string{ FieldID, FieldTokenHash, FieldPrincipalID, FieldProvider, FieldCreatedAt, FieldExpiresAt, }
Columns holds all SQL columns for loginsession fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.LoginSession) predicate.LoginSession
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.LoginSession
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.LoginSession
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.LoginSession
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.LoginSession
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.LoginSession
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.LoginSession
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.LoginSession
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.LoginSession
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.LoginSession
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.LoginSession
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.LoginSession
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.LoginSession
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.LoginSession
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.LoginSession
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.LoginSession
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.LoginSession
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.LoginSession
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.LoginSession
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.LoginSession
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.LoginSession
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.LoginSession
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.LoginSession
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.LoginSession
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.LoginSession
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.LoginSession
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.LoginSession
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.LoginSession) predicate.LoginSession
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.LoginSession) predicate.LoginSession
Or groups predicates with the OR operator between them.
func PrincipalID ¶
func PrincipalID(v uuid.UUID) predicate.LoginSession
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDEQ ¶
func PrincipalIDEQ(v uuid.UUID) predicate.LoginSession
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDGT ¶
func PrincipalIDGT(v uuid.UUID) predicate.LoginSession
PrincipalIDGT applies the GT predicate on the "principal_id" field.
func PrincipalIDGTE ¶
func PrincipalIDGTE(v uuid.UUID) predicate.LoginSession
PrincipalIDGTE applies the GTE predicate on the "principal_id" field.
func PrincipalIDIn ¶
func PrincipalIDIn(vs ...uuid.UUID) predicate.LoginSession
PrincipalIDIn applies the In predicate on the "principal_id" field.
func PrincipalIDLT ¶
func PrincipalIDLT(v uuid.UUID) predicate.LoginSession
PrincipalIDLT applies the LT predicate on the "principal_id" field.
func PrincipalIDLTE ¶
func PrincipalIDLTE(v uuid.UUID) predicate.LoginSession
PrincipalIDLTE applies the LTE predicate on the "principal_id" field.
func PrincipalIDNEQ ¶
func PrincipalIDNEQ(v uuid.UUID) predicate.LoginSession
PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.
func PrincipalIDNotIn ¶
func PrincipalIDNotIn(vs ...uuid.UUID) predicate.LoginSession
PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.
func Provider ¶
func Provider(v string) predicate.LoginSession
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
func ProviderContains(v string) predicate.LoginSession
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
func ProviderContainsFold(v string) predicate.LoginSession
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
func ProviderEQ(v string) predicate.LoginSession
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
func ProviderEqualFold(v string) predicate.LoginSession
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
func ProviderGT(v string) predicate.LoginSession
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
func ProviderGTE(v string) predicate.LoginSession
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
func ProviderHasPrefix(v string) predicate.LoginSession
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
func ProviderHasSuffix(v string) predicate.LoginSession
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
func ProviderIn(vs ...string) predicate.LoginSession
ProviderIn applies the In predicate on the "provider" field.
func ProviderIsNil ¶
func ProviderIsNil() predicate.LoginSession
ProviderIsNil applies the IsNil predicate on the "provider" field.
func ProviderLT ¶
func ProviderLT(v string) predicate.LoginSession
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
func ProviderLTE(v string) predicate.LoginSession
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
func ProviderNEQ(v string) predicate.LoginSession
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
func ProviderNotIn(vs ...string) predicate.LoginSession
ProviderNotIn applies the NotIn predicate on the "provider" field.
func ProviderNotNil ¶
func ProviderNotNil() predicate.LoginSession
ProviderNotNil applies the NotNil predicate on the "provider" field.
func TokenHash ¶
func TokenHash(v string) predicate.LoginSession
TokenHash applies equality check predicate on the "token_hash" field. It's identical to TokenHashEQ.
func TokenHashContains ¶
func TokenHashContains(v string) predicate.LoginSession
TokenHashContains applies the Contains predicate on the "token_hash" field.
func TokenHashContainsFold ¶
func TokenHashContainsFold(v string) predicate.LoginSession
TokenHashContainsFold applies the ContainsFold predicate on the "token_hash" field.
func TokenHashEQ ¶
func TokenHashEQ(v string) predicate.LoginSession
TokenHashEQ applies the EQ predicate on the "token_hash" field.
func TokenHashEqualFold ¶
func TokenHashEqualFold(v string) predicate.LoginSession
TokenHashEqualFold applies the EqualFold predicate on the "token_hash" field.
func TokenHashGT ¶
func TokenHashGT(v string) predicate.LoginSession
TokenHashGT applies the GT predicate on the "token_hash" field.
func TokenHashGTE ¶
func TokenHashGTE(v string) predicate.LoginSession
TokenHashGTE applies the GTE predicate on the "token_hash" field.
func TokenHashHasPrefix ¶
func TokenHashHasPrefix(v string) predicate.LoginSession
TokenHashHasPrefix applies the HasPrefix predicate on the "token_hash" field.
func TokenHashHasSuffix ¶
func TokenHashHasSuffix(v string) predicate.LoginSession
TokenHashHasSuffix applies the HasSuffix predicate on the "token_hash" field.
func TokenHashIn ¶
func TokenHashIn(vs ...string) predicate.LoginSession
TokenHashIn applies the In predicate on the "token_hash" field.
func TokenHashLT ¶
func TokenHashLT(v string) predicate.LoginSession
TokenHashLT applies the LT predicate on the "token_hash" field.
func TokenHashLTE ¶
func TokenHashLTE(v string) predicate.LoginSession
TokenHashLTE applies the LTE predicate on the "token_hash" field.
func TokenHashNEQ ¶
func TokenHashNEQ(v string) predicate.LoginSession
TokenHashNEQ applies the NEQ predicate on the "token_hash" field.
func TokenHashNotIn ¶
func TokenHashNotIn(vs ...string) predicate.LoginSession
TokenHashNotIn applies the NotIn predicate on the "token_hash" 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 LoginSession queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPrincipalID ¶
func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByPrincipalID orders the results by the principal_id field.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func ByTokenHash ¶
func ByTokenHash(opts ...sql.OrderTermOption) OrderOption
ByTokenHash orders the results by the token_hash field.