- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
collectionOptions
Call Signature#
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & NonSingleResult;Defined in: packages/db/src/client.ts:203
Type Parameters#
T#
T extends StandardSchemaV1<unknown, unknown>
TKey#
TKey extends string | number
TUtils#
TUtils extends UtilsRecord
Parameters#
options#
CollectionConfig<InferSchemaOutput<T>, TKey, T, TUtils> & object & NonSingleResult
Returns#
CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & NonSingleResult
Call Signature#
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & SingleResult;Defined in: packages/db/src/client.ts:212
Type Parameters#
T#
T extends StandardSchemaV1<unknown, unknown>
TKey#
TKey extends string | number
TUtils#
TUtils extends UtilsRecord
Parameters#
options#
CollectionConfig<InferSchemaOutput<T>, TKey, T, TUtils> & object & SingleResult
Returns#
CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & SingleResult
Call Signature#
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<T, TKey, never, TUtils> & NonSingleResult;Defined in: packages/db/src/client.ts:221
Type Parameters#
T#
T extends object
TKey#
TKey extends string | number = string | number
TUtils#
TUtils extends UtilsRecord = UtilsRecord
Parameters#
options#
CollectionConfig<T, TKey, never, TUtils> & object & NonSingleResult
Returns#
CollectionOptions<T, TKey, never, TUtils> & NonSingleResult
Call Signature#
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<T, TKey, never, TUtils> & SingleResult;Defined in: packages/db/src/client.ts:230
Type Parameters#
T#
T extends object
TKey#
TKey extends string | number = string | number
TUtils#
TUtils extends UtilsRecord = UtilsRecord
Parameters#
options#
CollectionConfig<T, TKey, never, TUtils> & object & SingleResult
Returns#
CollectionOptions<T, TKey, never, TUtils> & SingleResult
Call Signature#
function collectionOptions<TConfig>(id, factory): DescriptorFromConfig<TConfig>;Defined in: packages/db/src/client.ts:239
Type Parameters#
TConfig#
TConfig extends AnyCollectionConfig
Parameters#
id#
string
factory#
(client) => TConfig
Returns#
DescriptorFromConfig<TConfig>