-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add env-variable for db max connections
- Loading branch information
Showing
6 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ RUST_LOG=debug | |
MINT_APP_ENV=dev | ||
# connection string for the postgres database | ||
MINT_DB_URL=postgres://postgres:[email protected]/moksha-mint | ||
# Set the maximum number of connections that the pool should maintain (default 5) (optional) | ||
MINT_DB_MAX_CONNECTIONS=5 | ||
# the private key of the mint | ||
MINT_PRIVATE_KEY=superprivatesecretkey | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -744,6 +744,7 @@ mod tests { | |
&format!("postgres://postgres:[email protected]:{}/postgres", port); | ||
let db = PostgresDB::new(&DatabaseConfig { | ||
db_url: connection_string.to_owned(), | ||
..Default::default() | ||
}) | ||
.await?; | ||
db.migrate().await; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -443,6 +443,7 @@ mod tests { | |
&format!("postgres://postgres:[email protected]:{}/postgres", port); | ||
let db = PostgresDB::new(&DatabaseConfig { | ||
db_url: connection_string.to_owned(), | ||
..Default::default() | ||
}) | ||
.await?; | ||
db.migrate().await; | ||
|