Documentation
¶
Overview ¶
Package store owns the Postgres schema. It embeds the SQL migrations and applies them on Open, so every binary converges the database to the current schema at startup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
Migrate applies any migrations not yet recorded in schema_migrations, in filename order, all inside one transaction: either the database reaches the current schema or it is left untouched. (Consequence: a migration can never use statements Postgres forbids inside a transaction block, e.g. CREATE INDEX CONCURRENTLY — extend the migrator if that day comes.)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.