Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Conversation

alexjpwalker
Copy link
Member

What is the goal of this PR?

As we close transactions on commit at the server end, it makes sense to also close transactions when they are committed at client side. This change does that. Additionally, for user experience reasons, "isX" functions have been added to the Concept interface to determine what variety of Concept an object represents.

What are the changes implemented in this PR?

We added a try/finally to commit() that closes the transaction when it completes or fails.
We added is[Concept] functions to all Concepts indicating if the current Concept is an instance of that Concept variety.

@alexjpwalker alexjpwalker marked this pull request as ready for review January 4, 2021 16:08
Copy link
Contributor

@Phillammon Phillammon left a comment

Choose a reason for hiding this comment

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

Looks good to me! Fire away.

@lolski lolski merged commit 4b22935 into typedb:master Jan 4, 2021
@alexjpwalker alexjpwalker deleted the api-cleanup branch January 4, 2021 16:44
@lolski lolski modified the milestones: 2.0.0, 2.0.0-alpha-3 Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants