Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add documentation about transaction modes#155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@egze
Copy link
Contributor

@egzeegze commentedNov 4, 2024

Added docs how to use different transaction modes:

  1. Passmode: :immediate toRepo.transaction/2: Use this approach to set the transaction mode for individual transactions.
  2. Define custom transaction functions: Create wrappers, such asRepo.immediate_transaction/2 orRepo.deferred_transaction/2, to easily apply different modes where needed.
  3. Set a global default: Configure:default_transaction_mode to apply a preferred mode for all transactions.

@egze
Copy link
ContributorAuthor

egze commentedNov 4, 2024

@warmwaffles Seems like a flaky test is broken

@warmwaffleswarmwaffles merged commit97c9cb4 intoelixir-sqlite:mainNov 4, 2024
13 checks passed
@egzeegze deleted the default_transaction_mode branchNovember 4, 2024 13:57
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@warmwaffleswarmwaffleswarmwaffles left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@egze@warmwaffles

[8]ページ先頭

©2009-2025 Movatter.jp