Skip to content

Add transaction functions#7

Merged
tonsky merged 2 commits intotonsky:masterfrom
thegeez:transact-fns
Apr 29, 2014
Merged

Add transaction functions#7
tonsky merged 2 commits intotonsky:masterfrom
thegeez:transact-fns

Conversation

@thegeez
Copy link
Copy Markdown

@thegeez thegeez commented Apr 28, 2014

Database functions/transaction functions.

No need to install functions in database of course. [:db.fn/call f args] will be called in the transaction with the current value of db as the first argument to f. Throwing an Error in f will abort the transaction. See test for an example.

tonsky added a commit that referenced this pull request Apr 29, 2014
@tonsky tonsky merged commit b3152ac into tonsky:master Apr 29, 2014
@tonsky
Copy link
Copy Markdown
Owner

tonsky commented Apr 29, 2014

Nice patch, thanks!

tonsky added a commit that referenced this pull request Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants