Quickstart
Create a table, define a live view over it, and watch ReifyDB keep that view up to date as the data changes. Right here in your browser, nothing to install.
1. Create a table
Tables hold authoritative state. Every table lives in a namespace and is addressed as namespace::table:
2. Define a live view
A transactional view is derived state. You declare the query once; ReifyDB maintains the result incrementally, inside the same transaction as every write that affects it. No polling, no cache invalidation, no batch refresh:
The view tracks changes from the moment it is created, so we define it before inserting data.
3. Insert rows
INSERT takes an array of records:
4. Query the table
RQL queries are pipelines. Start with from, then chain steps; each line transforms the output of the line above it:
5. Query the view
The view already contains the two open orders. Nothing recomputed the query; the inserts themselves maintained it:
6. Change the data
Ship the keyboard order:
Then query the view again. The shipped order is gone, because the view's filter no longer matches it:
7. Aggregate
Pipelines end wherever you need them to. Group and aggregate with aggregate ... by:
Where next
- --RQL in five minutes - the query language, one concept at a time
- --Installation - run ReifyDB for real, embedded or as a server
- --Concepts - what an application state database is and when to use one
