Skip to content

Running sqlite inmemory for a long time #164

Answered by geofmureithi
IgnisDa asked this question in Q&A
Discussion options

You must be logged in to vote

The solution

let inner = sqlx::pool::PoolOptions::new()
    .max_lifetime(None)
    .idle_timeout(None)
    .connect(&std::env::var("DATABASE_URL")?)
    .await?;
let storage = SqliteStorage::new(inner);

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@IgnisDa
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by IgnisDa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #163 on September 08, 2023 06:41.