Documentation ¶
Overview ¶
Package upgrade defines the graph with the dependencies needed to execute the db migrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Libraries configuration Libraries LibrariesConfig `valid:"required"` }
Config of the application
type LibrariesConfig ¶
type LibrariesConfig struct { // PersistenceFw persistence framework configuration PersistenceFw PersistenceFwConfig `valid:"required"` }
LibrariesConfig configuration of the different libraries used by the signare
type PersistenceFwConfig ¶
type PersistenceFwConfig struct { // PostgreSQL configuration to connect to a PostgreSQL database PostgreSQL *PostgresSQLConfig `valid:"optional"` // SQLite configuration to connect to a SQLite database. SQLite must be used just for testing purposes and not in a production environment. SQLite *SQLiteConfig `valid:"optional"` }
PersistenceFwConfig persistence framework configuration
type PostgresSQLConfig ¶
type PostgresSQLConfig struct { // Host of database system Host string `valid:"required"` // Port of database system. Default value is 5432 Port *int `valid:"optional"` // Scheme of database system. Default value is "postgres" Scheme *string `valid:"optional"` // Username to use in database system Username string `valid:"required"` // Password to use with username in database system Password string `valid:"required"` // SSLMode to use in database system. Default value is "disable", however, it is advised to enable SSL for security reasons SSLMode string `valid:"optional"` // Database to access to in the database system Database string `valid:"required"` }
PostgresSQLConfig configuration to connect to a PostgreSQL database
type UpgradeGraph ¶
type UpgradeGraph struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config) (*UpgradeGraph, error)
func (*UpgradeGraph) PersistenceFwConnection ¶
func (graph *UpgradeGraph) PersistenceFwConnection() sql.Connection
Click to show internal directories.
Click to hide internal directories.