Documentation
¶
Overview ¶
Package migrations contains functions to run migrations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyV0ToV1 ¶
ApplyV0ToV1 applies the v0 to v1 migration to the given database by iterating over all datafiles in the given directory and rewriting them in the new format. The temp directory is used as a temporary location to write the new datafiles to. The maxDatafileSize parameter is used to split large datafiles into smaller ones.
func ApplyV1ToV2 ¶
ApplyV1ToV2 applies the v1 to v2 migration to the given database by iterating over all datafiles in the given directory and rewriting them in the new format. The temp directory is used as a temporary location to write the new datafiles to. The maxDatafileSize parameter is used to split large datafiles into smaller ones.