public class YdbContext extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static YdbContext |
createContext(YdbConfig config) |
YdbExecutor |
createExecutor() |
void |
deregister() |
YdbQuery |
findOrParseYdbQuery(String sql) |
YdbPreparedQuery |
findOrPrepareParams(YdbQuery query,
YdbPrepareMode mode) |
int |
getConnectionsCount() |
String |
getDatabase() |
tech.ydb.core.grpc.GrpcTransport |
getGrpcTransport()
Grpc Transport for other API YDB server clients
|
YdbOperationProperties |
getOperationProperties() |
tech.ydb.query.QueryClient |
getQueryClient() |
tech.ydb.scheme.SchemeClient |
getSchemeClient() |
tech.ydb.table.TableClient |
getTableClient() |
String |
getUrl() |
String |
getUsername() |
boolean |
hasConnections() |
YdbQuery |
parseYdbQuery(String sql) |
void |
register() |
<T extends tech.ydb.table.settings.RequestSettings<?>> |
withDefaultTimeout(T settings) |
<T extends tech.ydb.core.settings.BaseRequestSettings.BaseBuilder<T>> |
withRequestTimeout(T builder) |
public tech.ydb.core.grpc.GrpcTransport getGrpcTransport()
public String getDatabase()
public tech.ydb.scheme.SchemeClient getSchemeClient()
public tech.ydb.table.TableClient getTableClient()
public tech.ydb.query.QueryClient getQueryClient()
public String getUrl()
public String getUsername()
public YdbExecutor createExecutor() throws SQLException
SQLExceptionpublic int getConnectionsCount()
public YdbOperationProperties getOperationProperties()
public void close()
close in interface AutoCloseablepublic boolean hasConnections()
public void register()
public void deregister()
public static YdbContext createContext(YdbConfig config) throws SQLException
SQLExceptionpublic <T extends tech.ydb.table.settings.RequestSettings<?>> T withDefaultTimeout(T settings)
public <T extends tech.ydb.core.settings.BaseRequestSettings.BaseBuilder<T>> T withRequestTimeout(T builder)
public YdbQuery parseYdbQuery(String sql) throws SQLException
SQLExceptionpublic YdbQuery findOrParseYdbQuery(String sql) throws SQLException
SQLExceptionpublic YdbPreparedQuery findOrPrepareParams(YdbQuery query, YdbPrepareMode mode) throws SQLException
SQLExceptionCopyright © 2024. All rights reserved.