SessionRepository

class SessionRepository(database: Database) : ExposedAdapter

Constructors

Link copied to clipboard
constructor(database: Database)

Properties

Link copied to clipboard
val controller: Database?
Link copied to clipboard
Link copied to clipboard
val ref: WeakRef<Database>
Link copied to clipboard
val scope: CoroutineScope

Functions

Link copied to clipboard
fun createSession(userId: Long, appId: Long, expiresAt: LocalDateTime): Result<UUID>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getSessionCount(userId: Long, appId: Long): Result<Long>
Link copied to clipboard
open override fun handle(event: ControllerEvent)
fun handle(controller: Database, event: ControllerEvent)
Link copied to clipboard
operator fun <Result> invoke(function: Database.() -> Result?): Result?
Link copied to clipboard
suspend fun <Result> invokeSuspend(function: suspend Database.() -> Result?): Result?
Link copied to clipboard