Package herddb.utils
Class SQLUtils
- java.lang.Object
-
- herddb.utils.SQLUtils
-
public class SQLUtils extends Object
Utility- Author:
- enrico.olivelli, diego.salvi
-
-
Constructor Summary
Constructors Constructor Description SQLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringescape(String s)static intfindQueryStart(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
-
-
-
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
-
-