Skip to content

Commit f9d8acd

Browse files
authored
Document that an in-memory database can be destroyed if a process dies (#135)
More details are available at: #134
1 parent 47c6d96 commit f9d8acd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/ecto/adapters/sqlite3.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ defmodule Ecto.Adapters.SQLite3 do
9999
is encouraged to also view the guidance on [when to use SQLite][4] provided
100100
by the SQLite documentation, as well.
101101
102+
### In memory robustness
103+
104+
When using the Ecto SQLite3 adapter with the database set to `:memory` it
105+
is possible that a crash in a process performing a query in the Repo will
106+
cause the database to be destroyed. This makes the `:memory` function
107+
unsuitable when it is expected to survive potential process crashes (for
108+
example a crash in a Phoenix request)
109+
102110
### Async Sandbox testing
103111
104112
The Ecto SQLite3 adapter does not support async tests when used with

0 commit comments

Comments
 (0)