public final class SqlEnvCatalogBridge extends Object
TSQLEnv
from a manifest. Delegates to SQLEnvCatalogLoader.
Plan §13.4. The two factories serve the two common entry points: a programmatic
UnifiedCatalogModel and a file-based CatalogInputSource that the
registered CatalogInputReaders can read.
| Modifier and Type | Method and Description |
|---|---|
static TSQLEnv |
from(CatalogInputSource source,
CatalogLoadOptions options)
Read
source via the registered CatalogInputReader for its kind, then
apply the resulting UnifiedCatalogModel to a freshly-constructed
TSQLEnv. |
static TSQLEnv |
from(UnifiedCatalogModel model,
CatalogLoadOptions options)
Apply
model to a freshly-constructed TSQLEnv via
SQLEnvCatalogLoader.loadToSQLEnv(gudusoft.gsqlparser.catalog.input.model.UnifiedCatalogModel, gudusoft.gsqlparser.catalog.input.CatalogLoadOptions). |
public static TSQLEnv from(UnifiedCatalogModel model, CatalogLoadOptions options)
model to a freshly-constructed TSQLEnv via
SQLEnvCatalogLoader.loadToSQLEnv(gudusoft.gsqlparser.catalog.input.model.UnifiedCatalogModel, gudusoft.gsqlparser.catalog.input.CatalogLoadOptions). Throws CatalogException if the
model fails validation under options.public static TSQLEnv from(CatalogInputSource source, CatalogLoadOptions options)
source via the registered CatalogInputReader for its kind, then
apply the resulting UnifiedCatalogModel to a freshly-constructed
TSQLEnv. Wraps reader I/O failures as CatalogException so callers
have one exception type to catch.