Liking cljdoc? Tell your friends :D

Transactions

Unless you are programming :const forms, you will need to manipulate tables and state in order to say anything useful.

In relic, you manipulate your database with transact.

transact is a function that accepts a database and a set of 'transaction ops', returning a new database with the ops applied.

A key idea with relic is that you can only manipulate tables, and you try to keep data in tables to a minimum, rederiving everything else with queries. materialization enables high performance in the face of this.

Ops

You basic operations mirror the SQL ones, see the linked docs for more info.

See also change tracking, constraints.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close