Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Fix typo in the previous commit
天舟3f26f92f74e6
diff --git a/bin/bb/cmd/dump.go b/bin/bb/cmd/dump.goindex 7b1aaba901..25e530a86f 100644--- a/bin/bb/cmd/dump.go+++ b/bin/bb/cmd/dump.go@@ -77,7 +77,7 @@ func dumpDatabase(ctx context.Context, databaseType, username, password, hostnamif err != nil {return err}- defer db.Close()+ defer db.Close(ctx)out := os.Stdoutif file != "" {@@ -86,7 +86,7 @@ func dumpDatabase(ctx context.Context, databaseType, username, password, hostnamreturn fmt.Errorf("failed to create dump file %s, got error: %w", file, err)}}- defer out.Close(ctx)+ defer out.Close()if err := db.Dump(ctx, database, out, schemaOnly); err != nil {return fmt.Errorf("failed to create dump %s, got error: %w", file, err)