Documentation ¶
Index ¶
- Variables
- func GetDatabaseId(ctx context.Context, q pgxscan.Querier) (string, error)
- func GetDatabaseInfo(ctx context.Context, q pgxscan.Querier) model.DatabaseInfo
- func ValidatePostgresConnection(ctx context.Context, pool *pgxpool.Pool) error
- func ValidatePostgresVersion(ctx context.Context, pool *pgxpool.Pool) error
- type Executor
Constants ¶
This section is empty.
Variables ¶
View Source
var MinPostgresVersion = version.Must(version.NewVersion("10.0"))
Functions ¶
func GetDatabaseInfo ¶ added in v0.24.3
func ValidatePostgresConnection ¶
ValidatePostgresConnection validates that we can actually connect to the postgres database.
func ValidatePostgresVersion ¶
ValidatePostgresVersion checks that PostgreSQL instance version available through pool is not lower than wanted version. In this case it returns nil. Otherwise returns error describing current and desired version or any other error encountered during the check.
Types ¶
Click to show internal directories.
Click to hide internal directories.