@earth-app/collegedb
    Preparing search index...

    Interface EnsureSchemaOptions

    Options for ensureSchema.

    1.2.4

    interface EnsureSchemaOptions {
        once?: boolean;
        version?: string;
        versionKey?: string;
    }
    Index
    once?: boolean

    Skip re-running when the same schema has already been applied to the same set of shards in this process. DDL is idempotent (IF NOT EXISTS), so this is a latency optimization, not a correctness gate.

    version?: string

    Version value paired with versionKey (default: '1')

    versionKey?: string

    KV key holding an applied-schema version marker. When the stored value equals version, schema creation is skipped entirely; otherwise the schema runs and the marker is written. Persists across processes.