/** * @pwngh/economy-lab * * Copyright (c) Preston Neal * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ /** * The stamped schema version. Both SQL schema files seed a `schema_meta` row with this value; * startup reads it back and fails fast on a mismatch (see {@link assertSchemaCurrent}). * * Bump this AND the matching `insert into schema_meta` in BOTH schema files * (db/postgresql-schema.sql, db/mysql-schema.sql) in the same change, whenever a running database * would need re-migrating to pick up the edit. * * @see {@link https://economy-lab-docs.pages.dev/economy/reference/configuration/ Configuration} * for schema versioning and drift guard. */ export declare const SCHEMA_VERSION = "17"; /** * Throws unless `found` (the database's `schema_meta` value) matches this build's * {@link SCHEMA_VERSION}. `found` is null when the table is absent: an un-migrated or * pre-versioning database. */ export declare function assertSchemaCurrent(found: string | null, backend: string): void; /** * Throws unless the live database passed the money conformance vectors at boot. `failures` is * the output of the vendored db carrier's provePostgres/proveMysql, run right after its * idempotent install — so a non-empty list means the engine's own arithmetic disagrees with * src/money.vendored.ts, and no posting is safe to trust to it. */ export declare function assertMoneyConformant(failures: readonly string[], backend: string): void;