FromStep

sealed class FromStep<T>(val handle: StepHandle<*>) : TransactionValue<T>

Reference to the result from a previous step. This class is the base for more specific reference types.

Parameters

T

The type of the value being referenced.

Inheritors

Constructors

Link copied to clipboard
protected constructor(handle: StepHandle<*>)

Types

Link copied to clipboard
data class Column<T>(val handle: StepHandle<*>, val columnName: String?) : TransactionValue.FromStep<List<T>>

Fetches all values from one column as a list.

Link copied to clipboard
data class Field<T>(val handle: StepHandle<*>, val columnName: String?, val rowIndex: Int = 0) : TransactionValue.FromStep<T>

Fetches a single value from a specific cell (row, column). Ideal for retrieving the ID from a just-inserted row.

Link copied to clipboard
data class Row(val handle: StepHandle<*>, val rowIndex: Int = 0) : TransactionValue.FromStep<Map<String, Any?>>

Fetches an entire row as Map<String, Any?>. Useful when you want to pass multiple fields from one result as parameters to the next step (e.g., copying a row with modifications). The Executor specially handles this type by "spreading" the map into parameters.

Properties

Link copied to clipboard
open val handle: StepHandle<*>

Functions

Link copied to clipboard
fun <IN, OUT> TransactionValue<IN>.map(transformation: (IN) -> OUT): TransactionValue<OUT>

Applies a transformation to a TransactionValue, creating a new, transformed value. This function is type-safe.