corgidb.objects.Table.cols
this method will return table columns and dtype of each column
Parameters
dtype: str
choose default output for data type can be selected either
"Python"
or"SQL"
if selected python dtype out will be a type object and string for SQL., e.g.
"LONGTEXT"
withid: bool
to include
row_id
columns or not
Returns
out: dict
dictionary with columns name as key and datatype as value, e.g.
{"name": str}
,{"name":"LONGTEXT"}
Examples
Last updated