(self, table)
| 171 | return [TriggerMetadata(*row) for row in cursor.fetchall()] |
| 172 | |
| 173 | def get_table_sql(self, table): |
| 174 | if not table: |
| 175 | return |
| 176 | |
| 177 | cursor = self.query( |
| 178 | 'SELECT sql FROM sqlite_master ' |
| 179 | 'WHERE tbl_name = ? AND type IN (?, ?)', |
| 180 | [table, 'table', 'view']) |
| 181 | res = cursor.fetchone() |
| 182 | if res is not None: |
| 183 | return res[0] |
| 184 | |
| 185 | def get_view(self, name): |
| 186 | cursor = self.query( |
no outgoing calls
no test coverage detected