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
IOException
SQLException
public int getDelayCleanTableLock() throws IOException, SQLException
IOException
SQLException
public int getRowFormatVersion()
public boolean lockTableWriteLocal(String databaseName, String tableName) throws SQLException
SQLException
public boolean unlockTables() throws SQLException
SQLException
public boolean dropTable(String databaseName, String tableName) throws SQLException
SQLException
public boolean isClosed() throws SQLException
SQLException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2024 PingCAP. All rights reserved.