Class ClickHouseSqlUtils


  • public final class ClickHouseSqlUtils
    extends Object
    • Method Detail

      • 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