Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that an in-memory database can be destroyed if a process dies #135

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/ecto/adapters/sqlite3.ex
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ defmodule Ecto.Adapters.SQLite3 do
is encouraged to also view the guidance on [when to use SQLite][4] provided
by the SQLite documentation, as well.

### In memory robustness

When using the Ecto SQLite3 adapter with the database set to `:memory` it
is possible that a crash in a process performing a query in the Repo will
cause the database to be destroyed. This makes the `:memory` function
unsuitable when it is expected to survive potential process crashes (for
example a crash in a Phoenix request)

### Async Sandbox testing

The Ecto SQLite3 adapter does not support async tests when used with
Expand Down
Loading