Database.get_list_columns¶
- Database.get_list_columns(table_name: str) → List[List[str]][source]¶
Fetches the list of columns in a given table.
- Returns
Column data: list of pairs <name, type>.
- Return type
List[List[str]]
- Raises
psycopg2.Error – Base exception for all kind of database errors. In particular, it is raised if the table does not exist or the aggregate view could not be created.