AuditableRepository
Represents a repository interface for managing entities that implement the Auditable interface. It provides hooks for handling common auditing fields such as createdAt, createdBy, updatedAt, and updatedBy during insert and update operations. Additionally, it supports tracing and error handling for database operations.
Type Parameters
T
The type of the entity managed by this repository. Must implement the Auditable interface.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun <R> aroundQuery(method: String, statement: Statement, block: suspend () -> R): R
Link copied to clipboard
context(context: QueryExecutor)
abstract suspend fun batchInsert(entities: Iterable<T>): DbResult<List<T>>
abstract suspend fun batchInsert(entities: Iterable<T>): DbResult<List<T>>
Link copied to clipboard
context(context: QueryExecutor)
abstract suspend fun batchUpdate(entities: Iterable<T>): DbResult<List<T>>
abstract suspend fun batchUpdate(entities: Iterable<T>): DbResult<List<T>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard