Skip to content

Conversation

@dimitri-yatsenko
Copy link
Member

@dimitri-yatsenko dimitri-yatsenko commented Dec 11, 2018

Also, add documentation for transactions, fixing https://github.com/datajoint/datajoint-docs/pull/201

Transactions are formed using the methods `startTransaction`, `cancelTransaction`, and `commitTransaction` of a connection object.
A connection object may obtained from any table object.

For example, the following code inserts mating entries for the master table `Session` and its part table `SessionExperimenter`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double backquotes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I assume you mean "matching entries".

end


Here, to external observers, both inserts will take effect together only upon exiting from the `try-catch` block or will not have any effect at all.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double backquotes

@austin-hilberg austin-hilberg merged commit 7dc34a9 into datajoint:master Dec 17, 2018
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.

3 participants