:param table_name: :param jdbc :return: 数据库结构信息
(self, jdbc, table_name)
| 246 | return None, None, None |
| 247 | |
| 248 | def get_db_structure_by_jdbc(self, jdbc, table_name): |
| 249 | """ |
| 250 | :param table_name: |
| 251 | :param jdbc |
| 252 | :return: 数据库结构信息 |
| 253 | """ |
| 254 | engine = self.connMap[jdbc] |
| 255 | metadata = MetaData() |
| 256 | metadata.bind = engine |
| 257 | table_obj = Table(table_name, metadata, autoload=True) |
| 258 | return table_obj.columns |
nothing calls this directly
no outgoing calls
no test coverage detected