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

com.crobox.clickhouse.dsl.schemabuilder.DistributedDdlSupport.scala Maven / Gradle / Ivy

package com.crobox.clickhouse.dsl.schemabuilder

import com.crobox.clickhouse.dsl.ClickhouseStatement

trait DistributedDdlSupport {

  val clusterName : Option[String]

  protected[schemabuilder] def printOnCluster() : String = {
    clusterName.map(cluster => s" ON CLUSTER ${ClickhouseStatement.quoteIdentifier(cluster)}").getOrElse("")
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy