AppRepository

class AppRepository(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 createApp(name: String, data: JsonElement): Result<Long>
Link copied to clipboard
Link copied to clipboard
fun getApp(id: Long): Result<ResultRow>
Link copied to clipboard
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 updateApp(id: Long, name: String, data: String): Result<Int>