Trigger the GetTables() HS2 request on the given database (None means all dbs). Returns a list of (catalogName, dbName, tableName, tableType, tableComment).
(self, database=None)
| 647 | raise |
| 648 | |
| 649 | def get_tables(self, database=None): |
| 650 | """Trigger the GetTables() HS2 request on the given database (None means all dbs). |
| 651 | Returns a list of (catalogName, dbName, tableName, tableType, tableComment). |
| 652 | """ |
| 653 | self.log_client("getting tables for database: {0}".format(database)) |
| 654 | self.default_cursor().get_tables(database_name=database) |
| 655 | return self.default_cursor().fetchall() |
| 656 | |
| 657 | def close_query(self, operation_handle, fetch_profile_after_close=False): |
| 658 | self.log_handle(operation_handle, 'closing query for operation') |