prorm API Reference
    Preparing search index...

    Interface CacheEntry

    Cached prepared statement entry

    interface CacheEntry {
        key: string;
        sql: string;
        compiled: any;
        createdAt: number;
        hitCount: number;
        lastUsedAt: number;
    }
    Index
    key: string

    Unique key for the cache entry

    sql: string

    The SQL statement

    compiled: any

    Caller-supplied metadata about the statement shape (e.g. parameter count, normalized SQL). This is NOT a real driver-level prepared-statement handle: Dialect.query() in this codebase always takes the full SQL text plus a replacements/bind array/object and does its own placeholder substitution or binds per-call - there is no separate "prepare" step whose handle could be cached and reused across calls. See the PreparedStatementCache class doc for details. Defaults to {} if the caller doesn't pass anything meaningful.

    createdAt: number

    Timestamp when the entry was created

    hitCount: number

    Number of times this statement was used

    lastUsedAt: number

    Last time the statement was used