MCPcopy Create free account
hub / github.com/coder/coder / pgTxnDriver

Struct pgTxnDriver

coderd/database/migrations/txnmigrator.go:24–28  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

22// their deployment if a migration fails, since the schema will simply revert
23// back to the previous version.
24type pgTxnDriver struct {
25 ctx context.Context
26 db *sql.DB
27 tx *sql.Tx
28}
29
30func (*pgTxnDriver) Open(string) (database.Driver, error) {
31 panic("not implemented")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected