public class Main extends Object
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CreateTable(String file,
String savePath,
String tableName,
String host,
String port) |
static boolean |
CreateValueTable(String host,
String port) |
static void |
main(String[] args) |
static void |
printData(ResultSet rs) |
static void |
TestAutomaticSwitchingNode() |
static void |
TestDatabaseMetaData(String url,
String sql) |
static void |
TestPreparedStatement(String url,
String loadTable,
String select,
String preSql,
Object[] objects) |
static void |
TestPreparedStatementBatch(String url,
String loadTable,
String select,
String batchSql,
Object[] objects) |
static void |
TestPreparedStatementBatch1(String url,
Object[] objects) |
static void |
TestPreparedStatementBatch2(String url,
Object[] objects) |
static void |
TestPreparedStatementBatch3(String url,
Object[] objects) |
static void |
TestResultSetDelete(String url,
String loadTable,
String select,
int row,
boolean isDelete) |
static void |
TestResultSetInsert(String url,
String loadTable,
String select,
Object[] objects,
boolean isInsert) |
static void |
TestResultSetUpdate(String url,
String loadTable,
String select,
Object[] objects,
boolean isUpdate) |
static void |
TestStatementExecute(String url,
String sql) |
static void |
TestTypeCast(int type) |
public static boolean CreateTable(String file, String savePath, String tableName, String host, String port)
public static void TestStatementExecute(String url, String sql) throws Exception
Exceptionpublic static void TestPreparedStatement(String url, String loadTable, String select, String preSql, Object[] objects) throws Exception
Exceptionpublic static void TestPreparedStatementBatch1(String url, Object[] objects) throws Exception
Exceptionpublic static void TestPreparedStatementBatch2(String url, Object[] objects) throws Exception
Exceptionpublic static void TestPreparedStatementBatch3(String url, Object[] objects) throws Exception
Exceptionpublic static void TestPreparedStatementBatch(String url, String loadTable, String select, String batchSql, Object[] objects) throws Exception
Exceptionpublic static void TestResultSetInsert(String url, String loadTable, String select, Object[] objects, boolean isInsert) throws Exception
Exceptionpublic static void TestResultSetUpdate(String url, String loadTable, String select, Object[] objects, boolean isUpdate) throws Exception
Exceptionpublic static void TestResultSetDelete(String url, String loadTable, String select, int row, boolean isDelete) throws Exception
Exceptionpublic static void TestDatabaseMetaData(String url, String sql) throws Exception
Exceptionpublic static void printData(ResultSet rs) throws SQLException
SQLExceptionCopyright © 2023 dolphindb. All rights reserved.