Session concept #57
Replies: 1 comment
-
A session is like a container for a set of transactions here in Nitrite. A transaction can be created and tracked by a session. If you close a session all transactions started by it will be closed automatically and all opened transaction will be rolled back. Of course, transaction could be created directly from Nitrite, but as a separation of concern I introduced session. One example is session close. You can close all opened transactions without closing the database. In future also we can introduce such common methods in session to manage a set of transactions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Architecturally, what is the role of the Session type? Why does it exist? I mean, Transactions could be created directly from the Nitrite
Beta Was this translation helpful? Give feedback.
All reactions