dd_scenario.TableType

class dd_scenario.TableType(json=None, id=None, **kwargs)

The class for container table types.

TableType stores the types for all the columns of a table.

Example

Displays all data types for each column of a table:

types = container.get_table_type(table)
for i,t in enumerate(types):
    print("[%s] type=%s key=%s" % (i, t.dataType, t.key))
__init__(json=None, id=None, **kwargs)

Creates a TableType.

Parameters:
  • id (string) – The name of the table.
  • json (dict) – The dict describing the asset.
  • **kwargs (optional) – kwargs to override container attributes. Attributes specified here will override those of json.