hypermodel.model package

Submodules

hypermodel.model.table_schema module

class hypermodel.model.table_schema.SqlColumn(column_name: str, column_type: str, nullable: bool)

Bases: object

A simple class to model a Column in a Table within a DataWarehouse or DataMart

to_sql() → str

Generate an SQL snippet for the definition of this column.

Returns:An SQL string with the columns definition, suitable for including in a Create Table script
class hypermodel.model.table_schema.SqlTable(dataset_id: str, table_id: str, columns: List[hypermodel.model.table_schema.SqlColumn] = [])

Bases: object

A simple class to model a Column in a Table within a DataWarehouse or DataMart

to_sql() → str

Generate a “CREATE TABLE” script for the table defined in this object

Returns:An SQL string with the create table script

Module contents