abla/sql/raw

Generated from source.

Source module; follow its importing module's re-export links.

Source: abla/sql/raw.ab

AblaSqlTemplate (class)

compile class AblaSqlTemplate(
    val parts: array<string> = [],
    val holes: array<SyntaxExpression> = [],
    val positions: array<int> = [],
    var size: int = 0
)

Holds SQL text fragments, interpolated expressions and their byte offsets.

AblaSqlTemplate.add (extension compile.fun)

compile fun AblaSqlTemplate.add(text: string): void

Appends a SQL text fragment and updates the template byte count.

AblaSqlTemplate.hole (extension compile.fun)

compile fun AblaSqlTemplate.hole(expression: SyntaxExpression): void

Records an interpolation and appends its numbered SQL parameter.

AblaSqlTemplate.withinLimits (extension compile.fun)

compile fun AblaSqlTemplate.withinLimits(cursor: ParserCursor): bool

Returns whether the template fits the size and parameter limits and reports an error through the cursor when it exceeds either.

ablaSqlRawQuote (compile.fun)

compile fun ablaSqlRawQuote(cursor: ParserCursor, var template: AblaSqlTemplate,
    quote: string, escaped: bool): bool

Consume a SQL quote without exposing its contents to the Abla parser. Escape validation belongs to ablaSqlCheck, which sees all the original bytes.

ablaSqlRawComment (compile.fun)

compile fun ablaSqlRawComment(cursor: ParserCursor, var template: AblaSqlTemplate): bool

Consumes a nested SQL block comment, returning false and reporting an error if it is unterminated or exceeds a parsing limit.

ablaSqlRawDollar (compile.fun)

compile fun ablaSqlRawDollar(cursor: ParserCursor, var template: AblaSqlTemplate): bool

The opening dollar was consumed. Scan the potential tag, leaving its delimiter untouched unless this is a dollar-quoted string.

ablaSqlReadBrace (compile.fun)

compile fun ablaSqlReadBrace(cursor: ParserCursor): AblaSqlTemplate

The boundary prepass and the handler must consume precisely the same bytes.

ablaSqlRawBoundary (compile.fun)

compile fun ablaSqlRawBoundary(cursor: ParserCursor): SyntaxExpression

Consumes a brace template in the boundary scan, returns a placeholder syntax node and reports malformed input through the cursor.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.