Documentation
¶
Overview ¶
Package db opens the configured database (SQLite or Postgres) through GORM and runs migrations. SQLite uses the pure-Go glebarez driver so the final binary needs no cgo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
Migrate auto-migrates the core schema plus any extra (plugin) models, then runs one-off data migrations. Call this once, after every plugin has been registered, before serving traffic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.