Skip to main content
Version: v10.0.0

DbPersistenceOptions


Import
import { DbPersistenceOptions } from "@hyper-fetch/db"

Preview​

type DbPersistenceOptions = {
networkTimeout?: number;
scope?: string;
storage: DbStorage;
version?: string | number;
}

Structure​

DbPersistenceOptions
NameTypeDescription
networkTimeout
number

How long a query whose restore found no rows waits for the network before it shows an empty result

scope
string

Keeps one user's or tenant's data apart from another's, such as the user id

storage
DbStorage
version
string | number

Persisted rows of another version are cleared. The outbox is kept, because it holds the only copy of writes.