public class TiDBJDBCClient extends Object implements AutoCloseable
| Constructor and Description |
|---|
TiDBJDBCClient(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
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
IOExceptionSQLExceptionpublic 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 in interface AutoCloseableExceptionCopyright © 2025 PingCAP. All rights reserved.