ArrowContextCrudRepository
Interface defining a contract for basic CRUD (Create, Read, Update, Delete) operations on a data source.
This interface abstracts common operations to be implemented for handling entities of type T. Each operation is asynchronous and returns a DbResult, encapsulating either the successful result or an error in case of failure.
Parameters
T
The type of the entity managed by the repository.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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>>
Inserts multiple entities into the data source using the specified driver context.
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>>
Updates multiple entities in the data source using the specified driver context.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard