package
2.0.0-beta-001+incompatible
Repository: https://github.com/cloudfoundry/stratos.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Down is executed when this migration is rolled back.
Down is executed when this migration is rolled back.
Down is executed when this migration is rolled back.
No description provided by the author
No description provided by the author
GetConnection returns a database connection to either PostgreSQL or SQLite.
No description provided by the author
ModifySQLStatement - Modify the given DB statement for the specified provider, as appropraite e.g Postgres uses $1, $2 etc SQLite uses ?.
NewDatabaseConnectionParametersFromConfig setup database connection parameters based on contents of config struct.
Discover cf db services via their 'uri' env var and apply settings to the DatabaseConfig objects.
Ping - ping the database to ensure the connection/pool works.

# Constants

No description provided by the author
DefaultConnectionTimeout is the default to timeout on connections.
Default database provider when not specified.
MYSQL DB Provider.
PGSQL DB Provider.
No description provided by the author
SQLite DB Provider.
SQLiteDatabaseFile - SQLite database file.
SQLiteSchemaFile - SQLite schema file.
SSLDisabled means no checking of SSL.
SSLRequired requires SSL without validation.
SSLVerifyCA verifies the CA certificate.
SSLVerifyFull verifies the certificate and hostname and the CA.
No description provided by the author
No description provided by the author
No description provided by the author
UniqueConstraintViolation is the error code for a unique constraint violation.
No description provided by the author
No description provided by the author

# Structs

DatabaseConfig represents the connection configuration parameters.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
SSLValidationMode is the PostgreSQL driver SSL validation modes.