Documentation ¶
Overview ¶
Package goosex provides shared functions used with goose to help reduce code duplication. This provides the ability to import the migrate command into individual applications and run migrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateUpContext ¶ added in v0.4.0
MigrateUpContext will run migrations and is provided as an easy way to ensure migrations are ran in test suites
func RegisterCobraCommand ¶
RegisterCobraCommand will add a migrate command to the cobra command provided that provides a wrapper for running goose commands.
func SetBaseFS ¶
SetBaseFS accepts an embedded golang filesystem and sets that as the location for goose migration files.
func SetDBURI ¶
func SetDBURI(uri string)
SetDBURI accepts a URI and saves it for use by goose during migrations
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
SetLogger accepts a zap logger and sets it as the logger for goose output
Types ¶
This section is empty.