@aicacia/db
    Preparing search index...

    Class MemoryAdapter<T>

    In-memory collection adapter intended for tests and demos.

    Type Parameters

    • T extends Record<string, any>

    Implements

    Index

    Constructors

    Methods

    • Subscribe to raw document updates and return an unsubscribe function.

      Parameters

      • onUpdate: (docs: T[]) => void
      • onError: (error: Error) => void
      • Optionalquery: unknown

      Returns UnsubscribeFn