gravitino.dto.function.function_impl_dto.SQLImplDTO¶
- class gravitino.dto.function.function_impl_dto.SQLImplDTO(_runtime: str, _sql: str, _language: str = 'SQL', _resources: FunctionResourcesDTO | None = None, _properties: Dict[str, str] | None = None)¶
Bases:
FunctionImplDTODTO for SQL function implementation.
- __init__(_runtime: str, _sql: str, _language: str = 'SQL', _resources: FunctionResourcesDTO | None = None, _properties: Dict[str, str] | None = None) None¶
Methods
__init__(_runtime, _sql[, _language, ...])from_dict(kvs, *[, infer_missing])from_function_impl(impl)Create a SQLImplDTO from a SQLImpl instance.
from_json(s, *[, parse_float, parse_int, ...])language()Returns the language of this implementation.
properties()resources()runtime()schema(*[, infer_missing, only, exclude, ...])sql()to_dict([encode_json])Convert this DTO to a FunctionImpl instance.
to_json(*[, skipkeys, ensure_ascii, ...])Attributes
dataclass_json_config- classmethod from_function_impl(impl) SQLImplDTO¶
Create a SQLImplDTO from a SQLImpl instance.
- to_function_impl() FunctionImpl¶
Convert this DTO to a FunctionImpl instance.