Eventually consistent external materialized views. (Note: Originally a fork of https://github.com/kirasystems/views)
Go to file
2014-06-11 17:31:59 +09:00
doc first commit; subscription code and view init code pulled out and tested; DE-specific code stripped 2014-06-06 19:58:08 +09:00
src/views Splits out checks/delta calculation into views.db.deltas ns. Anticipate this will get broken up further if I can tease apart checks and delta calculations cleanly. Also, renamed persistor -> persistence to avoid Java-isms...still not happy with the protocols in this lib though. 2014-06-11 17:31:59 +09:00
test/views Splits out checks/delta calculation into views.db.deltas ns. Anticipate this will get broken up further if I can tease apart checks and delta calculations cleanly. Also, renamed persistor -> persistence to avoid Java-isms...still not happy with the protocols in this lib though. 2014-06-11 17:31:59 +09:00
.gitignore first commit; subscription code and view init code pulled out and tested; DE-specific code stripped 2014-06-06 19:58:08 +09:00
LICENSE first commit; subscription code and view init code pulled out and tested; DE-specific code stripped 2014-06-06 19:58:08 +09:00
project.clj better testing documentation; adds basic subscription functionality back to base-subscribed-views; beginning of bulk update functionality; moved all database table creation into SQL script 2014-06-10 12:12:21 +09:00
README.md better testing documentation; adds basic subscription functionality back to base-subscribed-views; beginning of bulk update functionality; moved all database table creation into SQL script 2014-06-10 12:12:21 +09:00

views

Eventually consistent external materialized views for SQL databases.

Design

TODO

Usage

TODO

Testing

You will need to set up the test db to run the tests:

$ psql -Upostgres < test/views/test_db.sql
CREATE ROLE
CREATE DATABASE
$

This will create a role views_user and a database owned by that user called views_test.

(You can change the database settings if you'd like by editing that file and checking the config in test/views/fixtures.clj.)

Then, to run all tests in the repl:

user=> (require '[views.all-tests :as at])
user=> (at/run-all-tests)

License

Copyright © 2014 DiligenceEngine

Authors Dave Della Costa (https://github.com/ddellacosta) and Alex Hudek (https://github.com/akhudek)

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.