public class TiDBJDBCClient extends Object implements AutoCloseable
| 构造器和说明 |
|---|
TiDBJDBCClient(Connection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
dropTable(String databaseName,
String tableName) |
int |
getDelayCleanTableLock()
get enable-table-lock config from tidb
|
int |
getRowFormatVersion()
get row format version from tidb
|
boolean |
isClosed() |
boolean |
isEnableTableLock() |
boolean |
lockTableWriteLocal(String databaseName,
String tableName) |
boolean |
unlockTables() |
public TiDBJDBCClient(Connection connection)
public boolean isEnableTableLock()
throws IOException,
SQLException
public int getDelayCleanTableLock()
throws IOException,
SQLException
IOExceptionSQLExceptionpublic int getRowFormatVersion()
public boolean lockTableWriteLocal(String databaseName, String tableName) throws SQLException
SQLExceptionpublic boolean unlockTables()
throws SQLException
SQLExceptionpublic boolean dropTable(String databaseName, String tableName) throws SQLException
SQLExceptionpublic boolean isClosed()
throws SQLException
SQLExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2023 PingCAP. All rights reserved.