AliasState

edu.gemini.grackle.sql.SqlMappingLike.AliasState
See theAliasState companion object
case class AliasState(next: Int, seenTables: Set[String], tableAliases: Map[(List[String], String), String], seenColumns: Set[String], columnAliases: Map[(List[String], String), String], ownerChain: List[ColumnOwner])

State required to assign table and column aliases.

Used when rendering an SqlQuery as a Fragment. Table aliases are assigned as needed for recursive queries. Column aliases are assigned to disambiguate collections of columns generated by subqueries and unions.

Attributes

Companion:
object
Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Update state to reflect a defining occurence of a column

Update state to reflect a defining occurence of a column

Attributes

Source:
SqlMapping.scala

Yields the possibly aliased name of the supplied column

Yields the possibly aliased name of the supplied column

Attributes

Source:
SqlMapping.scala

Update state to restore the current column owner while traversing the SqlQuery being rendered

Update state to restore the current column owner while traversing the SqlQuery being rendered

Attributes

Source:
SqlMapping.scala

Update state to reflect the current column owner while traversing the SqlQuery being rendered

Update state to reflect the current column owner while traversing the SqlQuery being rendered

Attributes

Source:
SqlMapping.scala

Update state to reflect a defining occurence of a table

Update state to reflect a defining occurence of a table

Attributes

Source:
SqlMapping.scala

Yields the possibly aliased name of the supplied table

Yields the possibly aliased name of the supplied table

Attributes

Source:
SqlMapping.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product