MCPcopy Index your code
hub / github.com/coder/coder / Unlock

Method Unlock

coderd/database/migrations/txnmigrator.go:56–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (d *pgTxnDriver) Unlock() error {
57 err := d.tx.Commit()
58 d.tx = nil
59 if err != nil {
60 return xerrors.Errorf("commit tx on unlock: %w", err)
61 }
62 return nil
63}
64
65func (d *pgTxnDriver) Run(migration io.Reader) error {
66 migr, err := io.ReadAll(migration)

Callers 15

ensureVersionTableMethod · 0.95
CloseMethod · 0.45
GetListeningPortsMethod · 0.45
setPortsMethod · 0.45
TestReinitFunction · 0.45
SubscribeMethod · 0.45
handleEventMethod · 0.45
SetRejectMethod · 0.45
provisionerJobLogsMethod · 0.45
workspaceAgentLogsMethod · 0.45

Calls 2

CommitMethod · 0.80
ErrorfMethod · 0.45

Tested by 15

GetListeningPortsMethod · 0.36
setPortsMethod · 0.36
TestReinitFunction · 0.36
SubscribeMethod · 0.36
SetRejectMethod · 0.36
PingMethod · 0.36
CloseMethod · 0.36
requireNotClosedMethod · 0.36