Basic Datasource
Create a datasource with a schema and engine configuration:Schema Types
Uset.* validators to define column types:
String Types
Number Types
Date/Time Types
Complex Types
Type Modifiers
Engine Configuration
Choose the right engine for your use case:MergeTree (Default)
Best for most use cases:ReplacingMergeTree
For upserts and deduplication:SummingMergeTree
For pre-aggregating numeric columns:AggregatingMergeTree
For complex aggregates with aggregate functions:Secondary Indexes
Add secondary indexes for faster queries on non-sorting-key columns:Access Tokens
Control access to datasources with static tokens:READ- Query access to the datasourceAPPEND- Ingest/append data to the datasource
Complete Example
A fully-configured datasource with all options:Type Inference
Export row types for type-safe ingestion:Next Steps
Defining Pipes
Create SQL transformations and API endpoints
Type-Safe Client
Use the Tinybird client for queries and ingestion