Skip to content

Commit

Permalink
Updated action literals doc with vase.datomic/vase.datomic.cloud lite…
Browse files Browse the repository at this point in the history
…rals.
  • Loading branch information
ddeaguiar committed Feb 8, 2019
1 parent d2f6e3a commit 72218cc
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions docs/action_literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ the context.

## #vase/query

Run a datalog query and return the results as JSON
Run a datalog query using the [Datomic API](https://docs.datomic.com/on-prem/clojure/index.html)
and return the results as JSON.

| Param | Meaning |
|-------------|------------------------------------------------------------------------------------------------------------------ |
Expand All @@ -83,11 +84,20 @@ If this is the last interceptor in the chain, it generates a response.
If this is not the last interceptor in the chain, it attaches the
query results to the context map at the `:to` key

## #vase.datomic/query

Same as `#vase/query`.

## #vase.datomic.cloud/query

Like `#vase.datomic/query` but runs a datalog query using the [Datomic Cloud Client API](https://docs.datomic.com/client-api/datomic.client.api.html).


## #vase/transact

Execute a Datomic transaction. Return the results (the tx-result) as
JSON. The new database value will be used for any subsequent datalog
queries.
Execute a Datomic transaction [DatomicAPI](https://docs.datomic.com/on-prem/clojure/index.html).
Return the results (the tx-result) as JSON. The new database value
will be used for any subsequent datalog queries.

| Param | Meaning |
|-------------|--------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -102,6 +112,14 @@ If this is the last interceptor in the chain, it generates a response.
If this is not the last interceptor in the chain, it attaches the
transaction result to the context map at the `:to` key.

## #vase.datomic/transact

Same as `#vase/transact`.

## #vase.datomic.cloud/transact

Like `#vase.datomic/transact` but runs a Datomic transaction using the [Datomic Client API](https://docs.datomic.com/client-api/datomic.client.api.html).

## #vase/intercept

Define an interceptor, given code in the descriptor file. The form
Expand Down

0 comments on commit 72218cc

Please sign in to comment.