# Functions
AnalyzeError inspects an error returned from Cloud Spanner and adds information about potential root causes e.g.
CheckEqualSets checks if the set of values in a and b are equal.
Close closes file.
CompareSchema compares the spanner schema of two conv objects and returns specific error if they don't match.
No description provided by the author
No description provided by the author
DownloadFromGCS returns the dump file that is downloaded from GCS.
No description provided by the author
GetBanner prints banner message after command line process is finished.
GetClient returns a new Spanner client.
GetDatabaseName generates database name with driver_date prefix.
No description provided by the author
GetInstance returns the Spanner instance we should use for creating DBs.
No description provided by the author
No description provided by the author
GetProject returns the cloud project we should use for accessing Spanner.
No description provided by the author
No description provided by the author
No description provided by the author
NewDatabaseAdminClient returns a new db-admin client.
NewInstanceAdminClient returns a new instance-admin client.
NewIOStreams returns a new IOStreams struct such that input stream is set to open file descriptor for dumpFile if driver is PGDUMP or MYSQLDUMP.
NewSpannerClient returns a new Spanner client.
No description provided by the author
No description provided by the author
PreloadGCSFiles downloads gcs files to tmp and updates the file paths in manifest with the local path.
PrintPermissionsWarning prints permission warning.
No description provided by the author
ReadSpannerSchema fills conv by querying Spanner infoschema treating Spanner as both the source and dest.
SetupLogFile configures the file used for logs.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
IOStreams is a struct that contains the file descriptor for dumpFile.
Harbourbridge accepts a manifest file in the form of a json which unmarshalls into the ManifestTables struct.