All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.crobox.clickhouse.dsl.FromQuery.scala Maven / Gradle / Ivy

The newest version!
package com.crobox.clickhouse.dsl

sealed trait FromQuery extends Query with OperationalQuery {
  override val internalQuery: InternalQuery = InternalQuery(from = Some(this))
  val alias: Option[String]
  val finalized: Boolean
}

sealed case class InnerFromQuery(innerQuery: OperationalQuery, alias: Option[String] = None) extends FromQuery {

  /** Queries can never have 'final' clause: Illegal FINAL */
  override val finalized = false
}

sealed case class TableFromQuery[T <: Table](table: T, alias: Option[String] = None, finalized: Boolean = false)
    extends FromQuery




© 2015 - 2024 Weber Informatics LLC | Privacy Policy