Class ClickHouseSqlUtils

java.lang.Object
com.clickhouse.jdbc.parser.ClickHouseSqlUtils

public final class ClickHouseSqlUtils extends Object
  • Method Details

    • isQuote

      public static boolean isQuote(char ch)
    • escape

      public static String escape(String str, char quote)
      Escape quotes in given string.
      Parameters:
      str - string
      quote - quote to escape
      Returns:
      escaped string
    • unescape

      public static String unescape(String str)
      Unescape quoted string.
      Parameters:
      str - quoted string
      Returns:
      unescaped string