(self, sql, result)
| 144 | self.columnsList[jdbc + "_" + table] = [column for column in inspector.get_columns(table)] |
| 145 | |
| 146 | def process_result(self, sql, result): |
| 147 | operator_type = get_db_operation_class(sql) |
| 148 | if operator_type == self.sql_class.INSERT: |
| 149 | pass |
| 150 | elif operator_type == self.sql_class.SELECT: |
| 151 | for col in result: |
| 152 | print(col) |
| 153 | print('\n') |
| 154 | pass |
| 155 | elif operator_type == self.sql_class.UPDATE: |
| 156 | pass |
| 157 | elif operator_type == self.sql_class.ALTER: |
| 158 | pass |
| 159 | elif operator_type == self.sql_class.CREATE: |
| 160 | pass |
| 161 | elif operator_type == self.sql_class.DELETE: |
| 162 | pass |
| 163 | elif operator_type == self.sql_class.DROP: |
| 164 | pass |
| 165 | elif operator_type == self.sql_class.TRANSACTION: |
| 166 | pass |
| 167 | else: |
| 168 | logging.error("process operate error, the operate type not found.") |
| 169 | |
| 170 | return result |
| 171 | |
| 172 | def operate_SQL(self, sql): |
| 173 | # SQL包含表名以及数据库名称 |
no test coverage detected