TransactionStep

class TransactionStep<T> @PublishedApi constructor(val query: RunnableQuery<*>, val params: Map<String, Any?>, val run: (Map<String, Any?>) -> T)

One operation of a TransactionPlan, described but not yet run.

Built by StepBuilder, which is what RunnableQuery.asStep hands back. It carries the query, the parameters as they were written - unresolved TransactionValues and all - and the terminal to call once they are resolved. The query is kept alongside the terminal so that a plan can render its SQL before running any of it; nothing else reads it.

Type Parameters

T

What running it will produce.

Constructors

Link copied to clipboard
internal constructor(query: RunnableQuery<*>, params: Map<String, Any?>, run: (Map<String, Any?>) -> T)

Properties

Link copied to clipboard
internal val params: Map<String, Any?>
Link copied to clipboard
Link copied to clipboard
internal val run: (Map<String, Any?>) -> T