Define your first query
In order to define a query which will be handled by Epsio, just call
epsio.create_view in your original database:
From that point on, Epsio will maintain the results of that query, updating it incrementally as changes are made.
In order to retrieve the results, just query your original database (which forwards the query to Epsio using the foreign data wrapper mechanism):
Since Epsio views function just like any other PostgreSQL view/table, you can also run more complex queries on top of the views you create: