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

Method Dump

backend/plugin/db/oracle/dump.go:12–19  ·  view source on GitHub ↗

Dump dumps the database.

(_ context.Context, out io.Writer, metadata *storepb.DatabaseSchemaMetadata)

Source from the content-addressed store, hash-verified

10
11// Dump dumps the database.
12func (*Driver) Dump(_ context.Context, out io.Writer, metadata *storepb.DatabaseSchemaMetadata) error {
13 text, err := schema.GetDatabaseDefinition(storepb.Engine_ORACLE, schema.GetDefinitionContext{}, metadata)
14 if err != nil {
15 return err
16 }
17 _, _ = out.Write([]byte(text))
18 return nil
19}

Callers

nothing calls this directly

Implementers 15

MockDriverbackend/plugin/advisor/utils_for_tests
Driverbackend/plugin/db/bigquery/bigquery.go
Driverbackend/plugin/db/mongodb/mongodb.go
Driverbackend/plugin/db/trino/trino.go
Driverbackend/plugin/db/redshift/redshift.go
Driverbackend/plugin/db/oracle/oracle.go
Driverbackend/plugin/db/dynamodb/dynamodb.go
Driverbackend/plugin/db/cosmosdb/cosmosdb.go
Driverbackend/plugin/db/spanner/spanner.go
Driverbackend/plugin/db/mssql/mssql.go
Driverbackend/plugin/db/mysql/mysql.go
Driverbackend/plugin/db/pg/pg.go

Calls 1

GetDatabaseDefinitionFunction · 0.92

Tested by

no test coverage detected