Package herddb.utils

Class SQLUtils


  • public class SQLUtils
    extends Object
    Utility
    Author:
    enrico.olivelli, diego.salvi
    • Constructor Detail

      • SQLUtils

        public SQLUtils()
    • Method Detail

      • findQueryStart

        public static final int findQueryStart​(String query)
        Search where the real SQL query starts skipping empty prefixes:
        • whitespaces
        • tabs
        • carriage returns
        • new lines
        • multi line comments: /* comment */
        • single line comments: -- comment
        Parameters:
        query -
        Returns:
        index of the first not empty character or -1 if the query contains only empty characters