DB Docs
API Reference
- 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
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/Source.md
Source
ts
type Source = object;Defined in: packages/db/src/query/builder/types.ts:95
Source - Input definition for query builder from() and unionAll() clauses
Maps table aliases to either:
- CollectionImpl: A database collection/table
- QueryBuilder: A subquery that can be used as a table
Example: { users: usersCollection }
Index Signature#
ts
[alias: string]:
| CollectionOptionsIdentity<any, any, any, any, any>
| QueryBuilder<any>
| CollectionImpl<any, any, any, any, any>