fix disappearing db
This commit is contained in:
parent
ec2598a2cc
commit
83cd0d8121
1 changed files with 3 additions and 0 deletions
|
@ -96,7 +96,10 @@ pub async fn start_pool() -> Result<SqlitePool, ServerFnError> {
|
|||
db goin up"
|
||||
);
|
||||
|
||||
// https://github.com/launchbadge/sqlx/issues/1647
|
||||
let pool = SqlitePoolOptions::new()
|
||||
.max_lifetime(None)
|
||||
.idle_timeout(None)
|
||||
.connect("file::memory:?cache=shared")
|
||||
.await?;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue