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

Function BackupDatabaseNameOfEngine

backend/common/engine.go:391–431  ·  view source on GitHub ↗
(e storepb.Engine)

Source from the content-addressed store, hash-verified

389}
390
391func BackupDatabaseNameOfEngine(e storepb.Engine) string {
392 //exhaustive:enforce
393 switch e {
394 case
395 storepb.Engine_MYSQL,
396 storepb.Engine_MARIADB,
397 storepb.Engine_TIDB,
398 storepb.Engine_MSSQL,
399 storepb.Engine_POSTGRES:
400 return "bbdataarchive"
401 case
402 storepb.Engine_ORACLE:
403 return "BBDATAARCHIVE"
404 case
405 storepb.Engine_ENGINE_UNSPECIFIED,
406 storepb.Engine_SNOWFLAKE,
407 storepb.Engine_CASSANDRA,
408 storepb.Engine_SQLITE,
409 storepb.Engine_MONGODB,
410 storepb.Engine_REDIS,
411 storepb.Engine_CLICKHOUSE,
412 storepb.Engine_SPANNER,
413 storepb.Engine_BIGQUERY,
414 storepb.Engine_REDSHIFT,
415 storepb.Engine_OCEANBASE,
416 storepb.Engine_STARROCKS,
417 storepb.Engine_HIVE,
418 storepb.Engine_COCKROACHDB,
419 storepb.Engine_DORIS,
420 storepb.Engine_DYNAMODB,
421 storepb.Engine_ELASTICSEARCH,
422 storepb.Engine_DATABRICKS,
423 storepb.Engine_COSMOSDB,
424 storepb.Engine_TRINO:
425 // Fallback to the default name for other engines.
426 return "bbdataarchive"
427 default:
428 // Fallback to the default name for other engines.
429 return "bbdataarchive"
430 }
431}
432
433// TransactionMode represents the transaction execution mode for a migration script.
434type TransactionMode string

Callers 15

handleSQLScriptExitMethod · 0.92
CheckMethod · 0.92
CheckMethod · 0.92
CheckMethod · 0.92
CheckMethod · 0.92
CheckMethod · 0.92
executeGhostMigrationFunction · 0.92
backupDataMethod · 0.92
RunForTargetMethod · 0.92

Calls

no outgoing calls