DbOptions
Import
import { DbOptions } from "@hyper-fetch/db"
Source
Package
Preview
type DbOptions = DbNotation & { codecs?: readonly DbCodec[]; gcTime?: number; offline?: (boolean | DbOfflineOptions); persistence?: DbPersistenceOptions; state?: DehydratedDb; syncTimeout?: number; tabs?: (false | { channel?: DbChannel; locks?: DbLockManager }) };
Structure
DbOptions
| Name | Type | Description |
|---|---|---|
| where | | |
| codecs | | Value types to persist and dehydrate beyond
|
| gcTime | | How long a loaded subset no query uses is kept. Defaults to five minutes, like the core
|
| offline | | Sends every write through the outbox, so writes made offline are replayed when the connection returns |
| persistence | | Persists rows, loaded subsets and the outbox |
| state | | Rows and loaded subsets a server rendered with, from
|
| syncTimeout | | How long a write with
|
| tabs | | How tabs agree on which one replays the outbox. Defaults to Web Locks and
|
| orderBy | |
