diff --git a/docs/classes/Database.html b/docs/classes/Database.html index 367be653..0e5386b9 100644 --- a/docs/classes/Database.html +++ b/docs/classes/Database.html @@ -25,10 +25,13 @@ query ready subscribe -

Constructors

  • Type Parameters

    • DT extends {} = {}

    Parameters

    • Optionalname: string
    • Optionalopts: ConfigOpts

    Returns Database<DT>

Properties

_crdt: CRDT<DT>
_listeners: Set<ListenerFn<DT>> = ...
_listening: boolean = false
_noupdate_listeners: Set<ListenerFn<DT>> = ...
_ready: ResolveOnce<void, void> = ...
_writeQueue: WriteQueue<DT>
blockstore: BaseBlockstore
logger: Logger
name?: string
opts: ConfigOpts = {}
sthis: SuperThis
databases: Map<string, Database<{}>> = ...

Methods

  • Returns Promise<void>

  • Parameters

    • updates: DocUpdate<{}>[]

    Returns Promise<void>

  • Type Parameters

    • T extends {}

    Parameters

    • opts: AllDocsQueryOpts = {}

    Returns Promise<AllDocsResponse<T>>

  • Type Parameters

    • T extends {}

    Returns Promise<{ clock: ClockHead; rows: { key: string; value: DocWithId<T> }[] }>

  • Type Parameters

    • T extends {}

    Parameters

    • since: ClockHead = []
    • opts: ChangesOptions = {}

    Returns Promise<ChangesResponse<T>>

  • Close the database and release resources

    -

    Returns Promise<void>

  • Parameters

    • id: string

    Returns Promise<DocResponse>

  • Destroy the database and release all resources

    +

Constructors

  • Type Parameters

    • DT extends {} = {}

    Parameters

    • Optionalname: string
    • Optionalopts: ConfigOpts

    Returns Database<DT>

Properties

_crdt: CRDT<DT>
_listeners: Set<ListenerFn<DT>> = ...
_listening: boolean = false
_noupdate_listeners: Set<ListenerFn<DT>> = ...
_ready: ResolveOnce<void, void> = ...
_writeQueue: WriteQueue<DT>
blockstore: BaseBlockstore
logger: Logger
name?: string
opts: ConfigOpts = {}
sthis: SuperThis
databases: Map<string, Database<{}>> = ...

Methods

  • Returns Promise<void>

  • Parameters

    • updates: DocUpdate<{}>[]

    Returns Promise<void>

  • Type Parameters

    • T extends {}

    Parameters

    • opts: AllDocsQueryOpts = {}

    Returns Promise<AllDocsResponse<T>>

  • Type Parameters

    • T extends {}

    Returns Promise<{ clock: ClockHead; rows: { key: string; value: DocWithId<T> }[] }>

  • Type Parameters

    • T extends {}

    Parameters

    • since: ClockHead = []
    • opts: ChangesOptions = {}

    Returns Promise<ChangesResponse<T>>

  • Close the database and release resources

    +

    Returns Promise<void>

  • Parameters

    • id: string

    Returns Promise<DocResponse>

  • Destroy the database and release all resources

    Returns Promise<void>

  • Get a document from the database

    Type Parameters

    • T extends {}

    Parameters

    • id: string

      the document id

    Returns Promise<DocWithId<T>>

    the document with the _id

    NotFoundError if the document is not found

    -
  • Type Parameters

    • T extends {}

    Parameters

    • doc: DocSet<T>

    Returns Promise<DocResponse>

  • Type Parameters

    • K extends IndexKeyType
    • T extends {}
    • R extends DocFragment = T

    Parameters

    • field: string | MapFn<T>
    • opts: QueryOpts<K> = {}

    Returns Promise<IndexRows<K, T, R>>

  • Type Parameters

    • T extends {}

    Parameters

    • listener: ListenerFn<T>
    • Optionalupdates: boolean

    Returns () => void

+
diff --git a/docs/functions/fireproof.html b/docs/functions/fireproof.html index e06c496c..5f4aa683 100644 --- a/docs/functions/fireproof.html +++ b/docs/functions/fireproof.html @@ -1 +1 @@ -fireproof | @fireproof/monorepo
+fireproof | @fireproof/monorepo