MCPcopy Create free account
hub / github.com/apecloud/myduckserver / UpdateAllSubscriptionStatus

Function UpdateAllSubscriptionStatus

pgserver/logrepl/subscription.go:116–119  ·  view source on GitHub ↗
(ctx *sql.Context, enabled bool)

Source from the content-addressed store, hash-verified

114}
115
116func UpdateAllSubscriptionStatus(ctx *sql.Context, enabled bool) error {
117 _, err := adapter.ExecCatalogInTxn(ctx, catalog.InternalTables.PgSubscription.UpdateAllStmt(statusValueColumns), enabled)
118 return err
119}
120
121func DeleteSubscription(ctx *sql.Context, name string) error {
122 _, err := adapter.ExecCatalogInTxn(ctx, catalog.InternalTables.PgSubscription.DeleteStmt(), name)

Callers 2

stopAllReplicationFunction · 0.92
startAllReplicationFunction · 0.92

Calls 2

ExecCatalogInTxnFunction · 0.92
UpdateAllStmtMethod · 0.80

Tested by

no test coverage detected