(self)
| 66 | self.args = args |
| 67 | |
| 68 | def get_table_stmt(self) -> Query: |
| 69 | fields = sql.SQL(", ").join( |
| 70 | [sql.SQL(f"f{i} text") for i in range(self.args.nfields)] |
| 71 | ) |
| 72 | stmt = sql.SQL("""\ |
| 73 | create temp table testcopy (id serial primary key, {}) |
| 74 | """).format(fields) |
| 75 | return stmt |
| 76 | |
| 77 | def get_copy_stmt(self) -> Query: |
| 78 | fields = sql.SQL(", ").join( |
no test coverage detected