Skip to main content
Version: 0.17

Interface: IndexedDBSourceSettings<QO, TO, QB, TB, QRD, TRD>

Type parameters​

NameType
QOextends RequestOptions = RecordSourceQueryOptions
TOextends RequestOptions = RequestOptions
QBRecordQueryBuilder
TBRecordTransformBuilder
QRDunknown
TRDextends RecordCacheUpdateDetails = RecordCacheUpdateDetails

Hierarchy​

  • RecordSourceSettings<QO, TO, QB, TB>

    ↳ IndexedDBSourceSettings

Properties​

autoActivate​

• Optional autoActivate: boolean

Inherited from​

RecordSourceSettings.autoActivate

Defined in​

data/dist/modules/source.d.ts:12


autoUpgrade​

• Optional autoUpgrade: boolean

Automatically upgrade this source whenever its schema is upgraded.

Override the upgrade method to provide an upgrade implementation.

default true

Inherited from​

RecordSourceSettings.autoUpgrade

Defined in​

records/dist/modules/record-source.d.ts:43


autoValidate​

• Optional autoValidate: boolean

Automatically validate the contents of all requests.

If true, builds a validatorFor function if one has not been provided. This will include standard validators as well as any custom validators that may be provided.

default true

Inherited from​

RecordSourceSettings.autoValidate

Defined in​

records/dist/modules/record-source.d.ts:35


bucket​

• Optional bucket: Bucket<unknown>

Inherited from​

RecordSourceSettings.bucket

Defined in​

data/dist/modules/source.d.ts:9


cacheClass​

• Optional cacheClass: IndexedDBCacheClass<QO, TO, QB, TB, QRD, TRD>

Defined in​

indexeddb/src/indexeddb-source.ts:55


cacheSettings​

• Optional cacheSettings: Partial<IndexedDBCacheSettings<QO, TO, QB, TB>>

Defined in​

indexeddb/src/indexeddb-source.ts:56


defaultQueryOptions​

• Optional defaultQueryOptions: DefaultRequestOptions<QO>

Inherited from​

RecordSourceSettings.defaultQueryOptions

Defined in​

data/dist/modules/source.d.ts:15


defaultTransformOptions​

• Optional defaultTransformOptions: DefaultRequestOptions<TO>

Inherited from​

RecordSourceSettings.defaultTransformOptions

Defined in​

data/dist/modules/source.d.ts:16


keyMap​

• Optional keyMap: RecordKeyMap

Inherited from​

RecordSourceSettings.keyMap

Defined in​

records/dist/modules/record-source.d.ts:15


name​

• Optional name: string

Inherited from​

RecordSourceSettings.name

Defined in​

data/dist/modules/source.d.ts:8


namespace​

• Optional namespace: string

Defined in​

indexeddb/src/indexeddb-source.ts:54


normalizer​

• Optional normalizer: RecordNormalizer<string, RecordIdentity, UninitializedRecord>

Inherited from​

RecordSourceSettings.normalizer

Defined in​

records/dist/modules/record-source.d.ts:16


queryBuilder​

• Optional queryBuilder: QB

Inherited from​

RecordSourceSettings.queryBuilder

Defined in​

data/dist/modules/source.d.ts:10


requestQueueSettings​

• Optional requestQueueSettings: TaskQueueSettings<string, unknown, unknown>

Inherited from​

RecordSourceSettings.requestQueueSettings

Defined in​

data/dist/modules/source.d.ts:13


schema​

• schema: RecordSchema

Inherited from​

RecordSourceSettings.schema

Defined in​

records/dist/modules/record-source.d.ts:14


syncQueueSettings​

• Optional syncQueueSettings: TaskQueueSettings<string, unknown, unknown>

Inherited from​

RecordSourceSettings.syncQueueSettings

Defined in​

data/dist/modules/source.d.ts:14


transformBuilder​

• Optional transformBuilder: TB

Inherited from​

RecordSourceSettings.transformBuilder

Defined in​

data/dist/modules/source.d.ts:11


validatorFor​

• Optional validatorFor: ValidatorForFn<StandardValidator | StandardRecordValidator>

A completely custom set of validators.

Inherited from​

RecordSourceSettings.validatorFor

Defined in​

records/dist/modules/record-source.d.ts:20


validators​

• Optional validators: Dict<StandardValidator | StandardRecordValidator>

Custom validators to override, and be merged with, the standard ones which will be built as long as autoValidate !== false.

Inherited from​

RecordSourceSettings.validators

Defined in​

records/dist/modules/record-source.d.ts:25