Documentation
¶
Index ¶
Constants ¶
View Source
const SqlDbVersionTableCreate = "" /* 211-byte string literal not displayed */
tables
Variables ¶
This section is empty.
Functions ¶
func ConnectInitializedDatabase ¶
func ConnectInitializedDatabase(postgresDbConfig *postgresdb.Config, upgradeScripts []*UpgradeScript) (*sql.DB, error)
ConnectInitializedDatabase creates a database with the required metadata tables
Types ¶
type UpgradeScript ¶
type UpgradeScript struct {
// contains filtered or unexported fields
}
UpgradeScript encapsulates a script to be run to upgrade the database from one version to the next
func MakeUpgradeScript ¶
func MakeUpgradeScript(version uint32, command string, moreCommands ...string) *UpgradeScript
MakeUpgradeScript encapsulates a script to be run to upgrade the database from one version to the next
Click to show internal directories.
Click to hide internal directories.