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

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

There is a newer version: 1.2.5
Show newest version
package com.crobox.clickhouse.dsl

case class SelectQuery(columns: Seq[Column], modifier: String = "") extends Query with OperationalQuery {
  override val internalQuery = InternalQuery(Some(this))

  def addColumn(column: Column): SelectQuery =
    if (columns.exists(_.name == column.name)) this else copy(columns = columns ++ Seq(column))

  def removeColumn(column: Column): SelectQuery =
    copy(columns = columns.filter(_.name != column.name))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy