Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator runs database schema migrations using goose's Provider API.
func NewWithSessionLock ¶
func NewWithSessionLock(dsn string, driver string, fsys fs.FS, opts ...goose.ProviderOption) (*Migrator, error)
NewWithSessionLock creates a Migrator with a PostgreSQL advisory lock, suitable for in-process use where multiple pods may start concurrently. Only one pod will execute migrations; others block until it completes.
Extra provider options may be supplied; production callers pass none, while tests use them to apply migrations under the lock against an isolated tracking table rather than the production one.
Click to show internal directories.
Click to hide internal directories.