UserRepository

class UserRepository(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 createUser(name: String, socialId: String, appId: Long, data: JsonElement): Result<Long>
Link copied to clipboard
Link copied to clipboard
fun getUser(id: Long): Result<User>
fun getUser(appId: Long, socialId: String): Result<User>
Link copied to clipboard
fun getUsers(appId: Long): Result<List<User>>
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
Link copied to clipboard
fun updateUser(id: Long, name: String, data: String): Result<Int>