Skip to content

Commit

Permalink
Document that an in-memory database can be destroyed if a process dies (
Browse files Browse the repository at this point in the history
#135)

More details are available at:

#134
  • Loading branch information
Gazler authored Oct 24, 2023
1 parent 47c6d96 commit f9d8acd
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit f9d8acd

Please sign in to comment.