in shardingsphere-benchmark/src/main/java/org/apache/shardingsphere/benchmark/jmeter/JMeterBenchmarkBase.java [146:166]
public static void initDbSqls(){
InputStream in = PropertiesUtil.class.getResourceAsStream("/config/benchmark.sql");
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String line = "";
try {
while ((line = br.readLine()) != null) {
initDbSqlList.add(line);
}
} catch(IOException exception){
exception.printStackTrace();
} catch (Exception exception){
exception.printStackTrace();
} finally {
try {
br.close();
} catch (IOException exception) {
exception.printStackTrace();
}
}
}