AliasState

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.

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

Value members

Concrete methods

Update state to reflect a defining occurence of a column

Update state to reflect a defining occurence of a column

Source:
SqlMapping.scala

Yields the possibly aliased name of the supplied column

Yields the possibly aliased name of the supplied column

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

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

Source:
SqlMapping.scala

Update state to reflect a defining occurence of a table

Update state to reflect a defining occurence of a table

Source:
SqlMapping.scala

Yields the possibly aliased name of the supplied table

Yields the possibly aliased name of the supplied table

Source:
SqlMapping.scala

Inherited methods

Inherited from:
Product