Skip to content

Commit 9ccfb19

Browse files
committed
fix outdated Pool::new usage
1 parent 45114fd commit 9ccfb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl SqliteSessionStore {
3939
/// # use async_sqlx_session::SqliteSessionStore;
4040
/// # use async_session::Result;
4141
/// # fn main() -> Result { async_std::task::block_on(async {
42-
/// let pool = sqlx::SqlitePool::new("sqlite:%3Amemory:").await.unwrap();
42+
/// let pool = sqlx::SqlitePool::connect("sqlite:%3Amemory:").await.unwrap();
4343
/// let store = SqliteSessionStore::from_client(pool)
4444
/// .with_table_name("custom_table_name");
4545
/// store.migrate().await;

0 commit comments

Comments
 (0)