Skip to content

Conversation

@wojtekmach
Copy link
Member

No description provided.

### Example
{:ok, conn, _result} = DBConnection.begin(pool)
Copy link
Member Author

Choose a reason for hiding this comment

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

there's neither DBConnection.begin nor DBConnection.commit below in the example, need to update this.

Copy link
Member

Choose a reason for hiding this comment

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

It should be DBConnection.transaction.

Choose a reason for hiding this comment

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

Hi there - without begin/commit, how would one use non-closure based transactions, with the new DBConnection.html.transaction/3? This is a follow up to #87, which is closed now. Thank you!

Copy link
Member

Choose a reason for hiding this comment

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

It is not possible to have non-closure based transactions. It adds to many complications and possible failure scenarios, so we decided to not support it.

Choose a reason for hiding this comment

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

Understood. Thank you for your reply, José!

This callback is called when the control of the state is passed back
to the connection process. It should reverse any changes made in
`checkout/2`.
`c:checkout/1`.
Copy link
Member Author

@wojtekmach wojtekmach Sep 27, 2018

Choose a reason for hiding this comment

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

It should reverse any changes made in checkout/1

as in, any changes made to the connection state?

Copy link
Member

Choose a reason for hiding this comment

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

Yes.

@josevalim josevalim added this to the v2.0 milestone Sep 28, 2018
@josevalim josevalim merged commit aed02b9 into elixir-ecto:master Sep 28, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@wojtekmach wojtekmach deleted the wm-update-docs branch September 28, 2018 10:56
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