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

    Class InMemorySQLDatabase

    In-memory SQL backend used by tests and local sandboxes.

    Implements the SQLDatabase contract with a deliberately limited subset of SQLite-flavored SQL. See the file-level docstring for the exact features supported.

    Implements

    Index
    • Parameters

      • query: string | InMemoryDrizzleQuery
      • bindings: any[] = []

      Returns Promise<QueryResult<Record<string, unknown>>>

    • Parameters

      • query: string | InMemoryDrizzleQuery
      • bindings: any[] = []

      Returns Promise<QueryResult<Record<string, unknown>>>

    • Convenience wrapper kept for backwards compatibility. Routes SELECT statements through the emulator and rejects other statement kinds.

      Parameters

      • sql: string
      • bindings: any[]

      Returns Promise<QueryResult<Record<string, unknown>>>

    • Dispatches to the correct handler based on the SQL statement kind. Public so the prepared-statement wrapper can target it directly.

      Parameters

      • sql: string
      • bindings: any[]

      Returns Promise<QueryResult<Record<string, unknown>>>

    • Parameters

      • query: string | InMemoryDrizzleQuery
      • bindings: any[] = []

      Returns Promise<QueryResult<Record<string, unknown>>>

    • Parameters

      • query: string | InMemoryDrizzleQuery
      • bindings: any[] = []

      Returns Promise<QueryResult<Record<string, unknown>>>