Documentation ¶ Index ¶ func Migrate(ctx context.Context, l *zerolog.Logger) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Migrate ¶ func Migrate(ctx context.Context, l *zerolog.Logger) error Migrate streams all data from the Postgres database at cfg.DatabaseUrl() into the SQLite database at cfg.ConfigDir()/koito.db. It runs the SQLite schema migrations first, then aborts if the target already contains data. Types ¶ This section is empty. Source Files ¶ View all Source files migrate.go Click to show internal directories. Click to hide internal directories.