Rxdb Client

Interfaces

Interfaces

CollectionAccessor

Collection accessor interface

ReplicationManager

Replication state manager interface

IRxDBClient

Main client interface

Properties:

PropertyTypeRequiredDescription
replicationReplicationManager | undefinedNo

Query

Query selector for finding documents

Properties:

PropertyTypeRequiredDescription
selectorRecord<string, any> | undefinedNo
sortRecord<string, "asc" | "desc">[] | undefinedNo
limitnumber | undefinedNo
skipnumber | undefinedNo

BaseClientConfig

Common base configuration

Properties:

PropertyTypeRequiredDescription
serverUrlstringYes
authTokenstringYes
domainIdstringYes
collectionsCollectionDefinitions<TCollections>Yes
userIdstring | undefinedNo
orgIdstring | undefinedNo
databaseNamestring | undefinedNo

ReplicationConfig

Replication mode configuration

Properties:

PropertyTypeRequiredDescription
mode"replication"Yes
storage{ type?: "indexeddb" | "memory"; options?: Record<string, any>; } | undefinedNo
replication{ live?: boolean; batchSize?: number; waitForLeadership?: boolean; } | undefinedNo

RestConfig

REST mode configuration

Properties:

PropertyTypeRequiredDescription
mode"rest"Yes
rest{ timeout?: number; retryAttempts?: number; } | undefinedNo

LogModel

Stubbed Log Collection

The Log collection has been removed from db-collections. This stub maintains compatibility until a new logging system is implemented.

TODO: Replace with new logging system (e.g., observability platform integration)

Properties:

PropertyTypeRequiredDescription
idstringYes
messagestringYes
levelstringYes
sourcestring | undefinedNo
timestampstringYes
entityTypestring | undefinedNo
entityIdstring | undefinedNo
categorystring | undefinedNo
metadataRecord<string, unknown> | undefinedNo
orgIdstringYes
userIdstring | undefinedNo
workspaceIdstring | undefinedNo
parentLogIdstring | undefinedNo
trashedboolean | undefinedNo
createdAtstring | undefinedNo
updatedAtstring | undefinedNo
Previous
API Reference
Next
Types