Documentation
¶
Overview ¶
Package db implements a Postgres client for applying, querying, and recording migrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a migration database connection.
func (*Client) Exec ¶
ApplyMigration executes the given statements against the database, and then records that the migration has been applied.
func (*Client) GetMigrations ¶
GetMigrations returns all migrations that have been applied to the database.
func (*Client) LogCompletedMigration ¶
Click to show internal directories.
Click to hide internal directories.