Documentation
¶
Overview ¶
Package authkitmigrate installs AuthKit's schema using the host's PostgreSQL connection configuration. Migrate is idempotent and returns only an error; Validate requires exact identity and content of every installed migration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Schema is the Postgres schema AuthKit's tables live in; it must match
// embedded.Config.Schema. Empty defaults to "profiles".
Schema string
}
Config configures a Migrator.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator applies AuthKit's Postgres migrations. Construct with New.
func New ¶
New returns a Migrator over the same pool the host passes to embedded.New. A nil config targets the default "profiles" schema.
Click to show internal directories.
Click to hide internal directories.