snowshu.core.models.data_types

class snowshu.core.models.data_types.DataType(name: str, requires_quotes: Optional[bool] = True, sqlalchemy_type: Optional[Any] = None)

Bases: object

The SnowShu type primative.

TODO: This should ideally inherit the intended sqlalchemy type instead of composing it as an attribute.

Parameters
  • name (-) – the common name of the type class

  • requires_quotes (-) – indicates if the data type should be quoted

  • sqlalchemy_type (-) – and instance of sqlalchemy.types.TypeEngine lineage.

name: str = None
requires_quotes: Optional[bool] = True
sqlalchemy_type: Optional[Any] = None
snowshu.core.models.data_types.build_typeclass(class_name, sql_data_type, quoted)