(self)
| 75 | return stmt |
| 76 | |
| 77 | def get_copy_stmt(self) -> Query: |
| 78 | fields = sql.SQL(", ").join( |
| 79 | [sql.Identifier(f"f{i}") for i in range(self.args.nfields)] |
| 80 | ) |
| 81 | stmt = sql.SQL("""\ |
| 82 | copy testcopy ({}) from stdin |
| 83 | """).format(fields) |
| 84 | return stmt |
| 85 | |
| 86 | def get_record(self) -> tuple[Any, ...]: |
| 87 | return tuple("x" * self.args.colsize for _ in range(self.args.nfields)) |
no test coverage detected