Interface: DBInstanceConfig
Defined in: db/db.ts:78
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
debug? | boolean | If true, the DB will be in debug mode. Defaults to false. | db/db.ts:124 |
mode? | DBMode | The mode of operation for this database instance. | db/db.ts:86 |
orgId? | string | Optional organization id used to sandbox the data of a specific organization in a multi-tenant deployment. Defaults to "localhost". | db/db.ts:91 |
path | string | Absolute path to the directory that'll store the DB's data. | db/db.ts:82 |
peers? | string | Iterable<string, any, any> | Absolute URLs of peer nodes to sync with. This option is only used for server cluster configurations, where multiple server nodes act as a single logical node in the network, sharing the same root session and cryptographic keys. In a server cluster, all peers listed here must share the same public/private root keys, and will coordinate as one logical entity. For client applications, this argument is not needed—React hooks and the client library automatically set up communication with the server as required. | db/db.ts:104 |
registry? | DataRegistry | Optional schema registry to use for this database instance. If not provided, the default global registry (DataRegistry.default) will be used. The registry contains all schema definitions and authorization rules that this database instance will work with. Authorization rules define who can read, write, or delete data based on user permissions and data properties. | db/db.ts:119 |
trusted? | boolean | If true, all security mechanisms are bypassed in favor of speed. Set this to true when running purely in a trusted backend environment. Defaults to false. | db/db.ts:110 |