Interface DatasourceRpc
public interface DatasourceRpc
Provides RPC methods for working with datasources. Includes methods for working with
DatasourceMeta
- Transactions
- Stored Procedures
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
static final record
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbeginTransaction
(String datasource, int isolationLevel, long timeout) void
closeTransaction
(String txId) void
commitTransaction
(String txId) getColumnQuoteChar
(String dataSource) getDatasourceName
(String txId) getTableInfo
(String dataSource, String tableName, TableType type) listColumns
(@Nullable String dsn, @NotNull String tableName) listTables
(@Nullable String dsn) void
rollbackTransaction
(String txId)
-
Field Details
-
SERIALIZER
-
-
Method Details
-
getConnections
List<RpcDatasourceMeta> getConnections() -
getTables
- Throws:
Exception
-
getTableInfo
- Throws:
Exception
-
getColumnQuoteChar
-
call
- Throws:
Exception
-
beginTransaction
- Throws:
Exception
-
commitTransaction
- Throws:
Exception
-
rollbackTransaction
- Throws:
Exception
-
closeTransaction
- Throws:
Exception
-
getDatasourceName
- Returns:
- the datasource that a transaction is running under. If the transaction no longer exists, then an empty String is returned.
-
getDatasources
List<DatasourceRpc.DatasourceMetaInfo> getDatasources() -
listTables
- Throws:
Exception
-
listColumns
List<DatasourceRpc.ColumnMetaInfo> listColumns(@Nullable @Nullable String dsn, @NotNull @NotNull String tableName) throws Exception - Throws:
Exception
-