module

Memo::Migration

Converts a database written by an earlier version of memo, once. The version a database is at is kept in memo_meta.

Constants

SCHEMA_VERSION = 1

1 (memo 0.13): each distinct text is stored once, in memo_contents, and sources and chunks point at it. Databases from before have no version.

Instance methods

run(db : DB::Database) : Nil

Runs in one transaction, so a failure leaves the database as it was. A second process opening the database meanwhile waits for it.

Source
version(db : DBHandle) : Int32
Source

Nested types