TransactionStep

class TransactionStep<T>(val builder: QueryBuilder<*>, val executionLogic: (builder: QueryBuilder<*>, params: Map<String, Any?>) -> DataResult<T>, val params: Map<String, Any?>)

Encapsulates a single, deferred database operation within a TransactionPlan.

Created via org.octavius.data.builder.QueryBuilder.asStep and terminal methods like toField(), toList(), or execute(). The step is not executed immediately; instead, it stores all information needed for later execution within a transaction.

Parameters

T

The type of result this step will produce when executed.

See also

Constructors

Link copied to clipboard
constructor(builder: QueryBuilder<*>, executionLogic: (builder: QueryBuilder<*>, params: Map<String, Any?>) -> DataResult<T>, params: Map<String, Any?>)

Properties

Link copied to clipboard

The query builder containing the SQL structure.

Link copied to clipboard
val executionLogic: (builder: QueryBuilder<*>, params: Map<String, Any?>) -> DataResult<T>

Function that executes the query and returns the result.

Link copied to clipboard

Query parameters to be passed during execution.

Functions

Link copied to clipboard
open override fun toString(): String