Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: ping ctx (#15331)
Danny Xu8828be541065
diff --git a/backend/plugin/db/cosmosdb/cosmosdb.go b/backend/plugin/db/cosmosdb/cosmosdb.goindex 41136f81fc..5b4d0c62e6 100644--- a/backend/plugin/db/cosmosdb/cosmosdb.go+++ b/backend/plugin/db/cosmosdb/cosmosdb.go@@ -61,10 +61,10 @@ func (*Driver) Close(_ context.Context) error {}// Ping pings the database.-func (driver *Driver) Ping(_ context.Context) error {+func (driver *Driver) Ping(ctx context.Context) error {queryPager := driver.client.NewQueryDatabasesPager("select 1", nil)for queryPager.More() {- _, err := queryPager.NextPage(context.Background())+ _, err := queryPager.NextPage(ctx)if err != nil {// TODO(zp): Deserialize the error into azcore.ResponseErrorreturn errors.Wrapf(err, "failed to ping CosmosDB")