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

com.alpine.sql.SQLGenerator.scala Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
/*
 * COPYRIGHT (C) Jan 26 2016 Alpine Data Labs Inc. All Rights Reserved.
 */
package com.alpine.sql

trait SQLGenerator {
  def dbType: DatabaseType.TypeValue

  def quoteChar: Char

  def useAliasForSelectSubQueries: Boolean

  /**
    * Wraps a column name in the appropriate quote character to preserver case and special characters.
    * If there is no quoting mechanism for this database type, just return the argument.
    *
    * @param s name to be escaped.
    * @return
    */
  def escapeColumnName(s: String): String
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy