Decides what a store whose user_version reads version (an integer)
allows, given the store's own known version known
(knownLedgerVersion or knownLogVersion): below 0 is
StoreVersionInvalid, 0 is StoreUnstamped, from 1 up to,
not including, known is StoreOlderReadable, known is
StoreCurrent, and anything above is StoreNewer. Its
input is SQLite's user_version, a signed 32-bit integer, which
Runtime decodes with Schema.Int before calling it. The decision is
total over that range, from -2147483648 to 2147483647. A number that is
not an integer (NaN, 0.5) is outside the contract: the outcome's
Schema.Int field rejects it, and constructing a decision that carries
it raises a defect. No outcome lets a writer lower a version: a store
is stamped 1 when unstamped, and raised only by the first event that
needs the newer format.
Decides what a store whose
user_versionreadsversion(an integer) allows, given the store's own known versionknown(knownLedgerVersion or knownLogVersion): below 0 is StoreVersionInvalid, 0 is StoreUnstamped, from 1 up to, not including,knownis StoreOlderReadable,knownis StoreCurrent, and anything above is StoreNewer. Its input is SQLite'suser_version, a signed 32-bit integer, which Runtime decodes withSchema.Intbefore calling it. The decision is total over that range, from -2147483648 to 2147483647. A number that is not an integer (NaN, 0.5) is outside the contract: the outcome'sSchema.Intfield rejects it, and constructing a decision that carries it raises a defect. No outcome lets a writer lower a version: a store is stamped 1 when unstamped, and raised only by the first event that needs the newer format.