MCPcopy Create free account
hub / github.com/bytebase/bytebase / isBackupTable

Function isBackupTable

backend/api/v1/sql_service.go:629–638  ·  view source on GitHub ↗
(engine storepb.Engine, column parserbase.ColumnResource)

Source from the content-addressed store, hash-verified

627}
628
629func isBackupTable(engine storepb.Engine, column parserbase.ColumnResource) bool {
630 switch engine {
631 case storepb.Engine_POSTGRES:
632 return column.Schema == common.BackupDatabaseNameOfEngine(storepb.Engine_POSTGRES)
633 case storepb.Engine_ORACLE:
634 return column.Database == common.BackupDatabaseNameOfEngine(storepb.Engine_ORACLE)
635 default:
636 return column.Database == common.BackupDatabaseNameOfEngine(engine)
637 }
638}
639
640func queryRetry(
641 ctx context.Context,

Callers 1

Calls 1

Tested by

no test coverage detected