gravitino.dto.rel.sql_representation_dto.SQLRepresentationDTO¶
- class gravitino.dto.rel.sql_representation_dto.SQLRepresentationDTO(_dialect: str, _sql: str, _type: str = 'sql')¶
Bases:
RepresentationDTODTO for SQL view representations.
- __init__(_dialect: str, _sql: str, _type: str = 'sql') None¶
Methods
__init__(_dialect, _sql[, _type])dialect()Returns the SQL dialect.
from_dict(kvs, *[, infer_missing])from_json(s, *[, parse_float, parse_int, ...])schema(*[, infer_missing, only, exclude, ...])sql()Returns the SQL text.
to_dict([encode_json])to_json(*[, skipkeys, ensure_ascii, ...])type()Returns the representation type.
validate()Validates the representation DTO.
Attributes
TYPE_SQLdataclass_json_config- dialect() str¶
Returns the SQL dialect.
- sql() str¶
Returns the SQL text.
- type() str¶
Returns the representation type.
- validate() None¶
Validates the representation DTO.