Documentation ¶
Index ¶
Constants ¶
View Source
const ON_DROP = "When trying to drop DB"
View Source
const ON_NEW_INSTANCE = "On creating new instance"
View Source
const ON_UPGRADE = "When trying to upgrade database"
View Source
const ON_VERSION_CHECK = "On checking database version"
Variables ¶
This section is empty.
Functions ¶
func CheckUp ¶
func CheckUp(opts CheckUpOpts) (err error)
This function checks is it possible to do request to the DB. If it's not -- it returns error, overwise -- nil
Types ¶
type CheckUpOpts ¶
type MigrationErr ¶
type MigrationErr = errorsx.CustomErr[MigrationErrInfo]
func DoMigrate ¶
func DoMigrate(opts MigrationOpts) (uint, bool, MigrationErr)
func NewMigrateErr ¶
func NewMigrateErr(err string, info MigrationErrInfo) MigrationErr
type MigrationErrInfo ¶
type MigrationOpts ¶
type PingAdptrPgSQL ¶
type PingAdptrPgSQL struct { PingAdptr Conn *pgx.Conn }
type PingAdptrRds ¶
type PingAdptrRds struct { PingAdptr Conn *redis.Client }
Click to show internal directories.
Click to hide internal directories.