SQLRenderContext
class in package klyn.data.sql.internal

    public final class SQLRenderContext:

SQLRenderContext

Mutable state local to one SQL rendering operation.

The context is never cached or shared. It records parameters in the exact marker order produced by the structured SQL tree.

    context = SQLRenderContext(PostgreSQLDialect())
    marker = context.bind(42)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | dialect `dialect as SQLDialect` | Dialect selected explicitly by the provider configuration.
public readonly property | parameters `parameters as ArrayList<Object>` | Bound values in one-based prepared-statement order.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SQLRenderContext `SQLRenderContext(dialect as SQLDialect):` | Creates an empty rendering context.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | bind `bind(value as Object) as String:` | Adds one bound value and returns its dialect marker.