Package com.databend.jdbc.parser
Class BatchInsertUtils
java.lang.Object
com.databend.jdbc.parser.BatchInsertUtils
-
Method Summary
Modifier and TypeMethodDescriptionvoidclean()getSql()String[]saveBatchToCSV(List<String[]> values) saveBatchToCSV(List<String[]> values, File file) voidsetPlaceHolderValue(int index, String value) static Optional<BatchInsertUtils>tryParseInsertSql(String sql) Parse the sql to get insert AST
-
Method Details
-
tryParseInsertSql
Parse the sql to get insert AST- Parameters:
sql- candidate sql- Returns:
- BatchInertUtils if the sql is a batch insert sql
-
getSql
-
getDatabaseTableName
-
setPlaceHolderValue
- Throws:
IllegalArgumentException
-
getValues
-
saveBatchToCSV
-
saveBatchToCSV
-
clean
public void clean()
-