Nix shell, pg docker, fix paths, replaced make with just

This commit is contained in:
2025-03-05 21:56:41 +01:00
parent f7036a18a0
commit e4024d05f9
11 changed files with 127 additions and 40 deletions

View File

@ -3,8 +3,5 @@ use deadpool_diesel::postgres::BuildError;
use lib::diesel::pool::PgPool;
pub(crate) fn create_pool() -> Result<PgPool, BuildError> {
lib::diesel::pool::create_pool()
.url(config::DATABASE_URL)
.size(config::POOL_SIZE)
.call()
lib::diesel::pool::create_pool_from_url_with_size(config::DATABASE_URL, config::POOL_SIZE)
}