public final class LazyCatalogSqlEnv extends Object
CatalogRuntimeToSQLEnvBridge for the lazy-mode
use case. Plan §13.3.
Two flavors:
from(CatalogRuntime) — wrap an already-built runtime as a
TSQLEnv that the legacy parser can consume.from(CatalogProvider, CatalogProviderConfig) — open the provider, build
a CatalogRuntime in LAZY mode, and wrap.
Vendor is read from the provider through a one-shot empty snapshot to keep the
facade ergonomic for callers that don't already have a runtime in hand.Both flavors carry no CatalogLoadOptions; callers that need defaults
(active catalog/schema, fetch caps, identifier overrides) should construct the
CatalogRuntimeToSQLEnvBridge directly with their CatalogLoadOptions
instead.
| Modifier and Type | Method and Description |
|---|---|
static TSQLEnv |
from(CatalogProvider provider,
CatalogProviderConfig config)
Open the provider, build a runtime in
LAZY mode at
vendor generic, and wrap. |
static TSQLEnv |
from(CatalogProvider provider,
CatalogProviderConfig config,
EDbVendor vendor)
Open the provider, build a runtime in LAZY mode for the given vendor, and wrap.
|
static TSQLEnv |
from(CatalogRuntime runtime)
Wrap an existing runtime as a
TSQLEnv. |
static TSQLEnv |
from(CatalogRuntime runtime,
CatalogLoadOptions options)
Wrap an existing runtime as a
TSQLEnv with the supplied options applied
(defaults / identifier config / fetch caps). |
public static TSQLEnv from(CatalogRuntime runtime)
TSQLEnv. The runtime owns its provider.public static TSQLEnv from(CatalogRuntime runtime, CatalogLoadOptions options)
TSQLEnv with the supplied options applied
(defaults / identifier config / fetch caps). Convenience for callers that already
have a CatalogLoadOptions in hand.public static TSQLEnv from(CatalogProvider provider, CatalogProviderConfig config)
LAZY mode at
vendor generic, and wrap. Mirrors
CatalogLoaders.fromProvider(CatalogProvider, CatalogProviderConfig) —
see that method's Javadoc for why the default vendor is generic. Most callers want
from(CatalogProvider, CatalogProviderConfig, EDbVendor) instead.public static TSQLEnv from(CatalogProvider provider, CatalogProviderConfig config, EDbVendor vendor)