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
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

Yields the possibly aliased name of the supplied column

Yields the possibly aliased name of the supplied column

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

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

Update state to reflect a defining occurence of a table

Update state to reflect a defining occurence of a table

Yields the possibly aliased name of the supplied table

Yields the possibly aliased name of the supplied table

Inherited methods

Inherited from:
Product