MCPcopy Index your code
hub / github.com/bytebase/bytebase / changeDatabase

Method changeDatabase

backend/tests/rollout.go:16–19  ·  view source on GitHub ↗
(ctx context.Context, project *v1pb.Project, database *v1pb.Database, sheet *v1pb.Sheet, _ bool)

Source from the content-addressed store, hash-verified

14)
15
16func (ctl *controller) changeDatabase(ctx context.Context, project *v1pb.Project, database *v1pb.Database, sheet *v1pb.Sheet, _ bool) error {
17 _, err := ctl.changeDatabaseAndReturnRollout(ctx, project, database, sheet)
18 return err
19}
20
21func (ctl *controller) changeDatabaseAndReturnRollout(ctx context.Context, project *v1pb.Project, database *v1pb.Database, sheet *v1pb.Sheet) (*v1pb.Rollout, error) {
22 spec := &v1pb.Plan_Spec{

Callers 15

TestSyncSchemaFunction · 0.95
TestSyncerForPostgreSQLFunction · 0.95
TestSyncerForMySQLFunction · 0.95
TestSQLAdminQueryFunction · 0.95
TestGhostSchemaUpdateFunction · 0.95
TestSQLQueryStopOnErrorFunction · 0.95
TestSQLExportFunction · 0.95

Calls 1

Tested by 15

TestSyncSchemaFunction · 0.76
TestSyncerForPostgreSQLFunction · 0.76
TestSyncerForMySQLFunction · 0.76
TestSQLAdminQueryFunction · 0.76
TestGhostSchemaUpdateFunction · 0.76
TestSQLQueryStopOnErrorFunction · 0.76
TestSQLExportFunction · 0.76