loginsession

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for loginsession fields.

View Source
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 ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

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

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL