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

Function buildRedshiftVersionString

backend/plugin/db/redshift/sync.go:719–721  ·  view source on GitHub ↗

buildRedshiftVersionString builds the Redshift version string, format is "Redshift based on PostgreSQL ".

(redshiftVersion, postgresVersion string)

Source from the content-addressed store, hash-verified

717
718// buildRedshiftVersionString builds the Redshift version string, format is "Redshift <redshiftVersion> based on PostgreSQL <postgresVersion>".
719func buildRedshiftVersionString(redshiftVersion, postgresVersion string) string {
720 return "Redshift " + redshiftVersion + " based on PostgreSQL " + postgresVersion
721}
722
723// getDatabases gets all databases of an instance.
724func (d *Driver) getDatabases(ctx context.Context) ([]*storepb.DatabaseSchemaMetadata, error) {

Callers 1

getVersionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected