Skip to content

Commit 11cd78e

Browse files
committed
Allow supplying own pool
1 parent befcb02 commit 11cd78e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

v-model/src/storage/postgres.rs

+6
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ impl PostgresStore {
8484
}
8585
}
8686

87+
impl From<DbPool> for PostgresStore {
88+
fn from(value: DbPool) -> Self {
89+
Self { pool: value }
90+
}
91+
}
92+
8793
#[async_trait]
8894
impl<T> ApiUserStore<T> for PostgresStore
8995
where

0 commit comments

Comments
 (0)