UserRoleRepository

class UserRoleRepository(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 createUserRole(userId: Long, roleId: Long, entityId: Long): Result<Long>
Link copied to clipboard
fun deleteUserRole(userId: Long, roleId: Long, entityId: Long): Result<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getUserRoles(userId: Long): Result<List<Role>>
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