diff --git a/docs/classes/Database.html b/docs/classes/Database.html
index 0e5386b9..3c952d7c 100644
--- a/docs/classes/Database.html
+++ b/docs/classes/Database.html
@@ -1,4 +1,4 @@
-
Database | @fireproof/monorepo Type Parameters
- DT extends DocTypes = NonNullable<unknown>
Index
Constructors
constructor
+
Database | @fireproof/monorepo Type Parameters
- DT extends DocTypes = NonNullable<unknown>
Constructors
constructor
- new Database<DT extends {} = {}>(name?: string, opts?: ConfigOpts): Database<DT>
Parameters
Optional
name: stringOptional
opts: ConfigOpts
Properties
Readonly
_listeners
_listeners: Set<ListenerFn<DT>> = ... _listening
_listening: boolean = false
Readonly
_noupdate_listeners
_noupdate_listeners: Set<ListenerFn<DT>> = ... Readonly
_ready
_ready: ResolveOnce<void, void> = ...
Readonly
_writeQueue
_writeQueue: WriteQueue<DT> Readonly
blockstore
blockstore: BaseBlockstore
Readonly
logger
logger: Logger
Optional
Readonly
name
name?: string
Readonly
opts
opts: ConfigOpts = {}
Readonly
sthis
sthis: SuperThis
Static
databases
databases: Map<string, Database<{}>> = ... Methods
_no_update_notify
- _no_update_notify(): Promise<void>
Returns Promise<void>
_notify
- _notify(updates: DocUpdate<{}>[]): Promise<void>
Returns Promise<void>
allDocs
- allDocs<T extends {}>(opts?: AllDocsQueryOpts): Promise<AllDocsResponse<T>>
Parameters
- opts: AllDocsQueryOpts = {}
Returns Promise<AllDocsResponse<T>>
allDocuments
- allDocuments<T extends {}>(): Promise<
{ clock: ClockHead; rows: { key: string; value: DocWithId<T> }[] },
> Returns Promise<{ clock: ClockHead; rows: { key: string; value: DocWithId<T> }[] }>
changes
- changes<T extends {}>(
since?: ClockHead,
opts?: ChangesOptions,
): Promise<ChangesResponse<T>> Parameters
- since: ClockHead = []
- opts: ChangesOptions = {}
Returns Promise<ChangesResponse<T>>
close
- close(): Promise<void>
Returns Promise<void>
compact
- compact(): Promise<void>
Returns Promise<void>
del
- del(id: string): Promise<DocResponse>
Returns Promise<DocResponse>
destroy
- destroy(): Promise<void>
Returns Promise<void>
get
- get<T extends {}>(id: string): Promise<DocWithId<T>>
Constructors
constructor
- new Database<DT extends {} = {}>(name?: string, opts?: ConfigOpts): Database<DT>
Parameters
Optional
name: stringOptional
opts: ConfigOpts
Properties
Readonly
_listeners
_listeners: Set<ListenerFn<DT>> = ... _listening
_listening: boolean = false
Readonly
_noupdate_listeners
_noupdate_listeners: Set<ListenerFn<DT>> = ... Readonly
_ready
_ready: ResolveOnce<void, void> = ...
Readonly
_writeQueue
_writeQueue: WriteQueue<DT> Readonly
blockstore
blockstore: BaseBlockstore
Readonly
logger
logger: Logger
Optional
Readonly
name
name?: string
Readonly
opts
opts: ConfigOpts = {}
Readonly
sthis
sthis: SuperThis
Static
databases
databases: Map<string, Database<{}>> = ... Methods
_no_update_notify
- _no_update_notify(): Promise<void>
Returns Promise<void>
_notify
- _notify(updates: DocUpdate<{}>[]): Promise<void>
Returns Promise<void>
allDocs
- allDocs<T extends {}>(opts?: AllDocsQueryOpts): Promise<AllDocsResponse<T>>
Parameters
- opts: AllDocsQueryOpts = {}
Returns Promise<AllDocsResponse<T>>
allDocuments
- allDocuments<T extends {}>(): Promise<
{ clock: ClockHead; rows: { key: string; value: DocWithId<T> }[] },
> Returns Promise<{ clock: ClockHead; rows: { key: string; value: DocWithId<T> }[] }>
changes
- changes<T extends {}>(
since?: ClockHead,
opts?: ChangesOptions,
): Promise<ChangesResponse<T>> Parameters
- since: ClockHead = []
- opts: ChangesOptions = {}
Returns Promise<ChangesResponse<T>>
close
- close(): Promise<void>
Returns Promise<void>
compact
- compact(): Promise<void>
Returns Promise<void>
destroy
- destroy(): Promise<void>
Returns Promise<void>
put
- put<T extends {}>(doc: DocSet<T>): Promise<DocResponse>
query
- query<K extends IndexKeyType, T extends {}, R extends DocFragment = T>(
field: string | MapFn<T>,
opts?: QueryOpts<K>,
): Promise<IndexRows<K, T, R>> 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>>
ready
- ready(): Promise<void>
Returns Promise<void>
subscribe
- subscribe<T extends {}>(listener: ListenerFn<T>, updates?: boolean): () => void
Parameters
- listener: ListenerFn<T>
Optional
updates: boolean
Returns () => void
+query
- query<K extends IndexKeyType, T extends {}, R extends DocFragment = T>(
field: string | MapFn<T>,
opts?: QueryOpts<K>,
): Promise<IndexRows<K, T, R>> 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>>
ready
- ready(): Promise<void>
Returns Promise<void>
subscribe
- subscribe<T extends {}>(listener: ListenerFn<T>, updates?: boolean): () => void
Parameters
- listener: ListenerFn<T>
Optional
updates: boolean
Returns () => void
diff --git a/docs/functions/fireproof.html b/docs/functions/fireproof.html
index 5f4aa683..06d28c5c 100644
--- a/docs/functions/fireproof.html
+++ b/docs/functions/fireproof.html
@@ -1 +1 @@
-fireproof | @fireproof/monorepo- fireproof(name: string, opts?: ConfigOpts): Database
Parameters
- name: string
Optional
opts: ConfigOpts
+fireproof | @fireproof/monorepo- fireproof(name: string, opts?: ConfigOpts): Database
Parameters
- name: string
Optional
opts: ConfigOpts
Close the database and release resources
-