Package org.partiql.ast.helpers

Functions

Link copied to clipboard
fun Expr.toBinder(index: () -> Int): Identifier.Symbol

Produces a "binder" (AS alias) for an expression following the given rules:

fun Expr.toBinder(index: Int): Identifier.Symbol

Simple toBinder that uses an int literal rather than a closure.

Link copied to clipboard
fun AstNode.toLegacyAst(metas: Map<String, MetaContainer> = emptyMap()): PartiqlAst.PartiqlAstNode

Translates an AstNode tree to the legacy PIG AST.