Replies: 3 comments 2 replies
-
Please see the docs: https://docs.rs/sqlx/latest/sqlx/pool/struct.PoolOptions.html#tymethod.min_connections It exists for a Pool, but not for a connection. |
Beta Was this translation helpful? Give feedback.
-
@CommanderStorm fixed. thx! |
Beta Was this translation helpful? Give feedback.
-
@CommanderStorm now i have new problem. what's the proper way to create the mysql pool? use std::error::Error as StdError; // Define a OnceCell to hold the connection pool async fn initialize_pool() -> Result<Arc, SqlxError> {
} pub async fn get_connection_pool() -> Result<Arc, SqlxError> { |
Beta Was this translation helpful? Give feedback.
-
can someone pls post mysql way to do pool? thx
#3232
this is my current messy way to do it with sonnet / chatgpt4 's "problem"
min_connections is not found
Beta Was this translation helpful? Give feedback.
All reactions