pgTxnDriver is a Postgres migration driver that runs all migrations in a single transaction. This is done to prevent users from being locked out of their deployment if a migration fails, since the schema will simply revert back to the previous version.
| 22 | // their deployment if a migration fails, since the schema will simply revert |
| 23 | // back to the previous version. |
| 24 | type pgTxnDriver struct { |
| 25 | ctx context.Context |
| 26 | db *sql.DB |
| 27 | tx *sql.Tx |
| 28 | } |
| 29 | |
| 30 | func (*pgTxnDriver) Open(string) (database.Driver, error) { |
| 31 | panic("not implemented") |
nothing calls this directly
no outgoing calls
no test coverage detected