use database connection pool
All checks were successful
deploy / build-and-deploy (push) Successful in 29s
All checks were successful
deploy / build-and-deploy (push) Successful in 29s
This commit is contained in:
parent
2a89c49f4e
commit
84bea0feee
@ -127,12 +127,12 @@ export class Database {
|
||||
}
|
||||
|
||||
static async init(databaseUri: string) {
|
||||
const connection = await mysql.createConnection({
|
||||
const connectionPool = mysql.createPool({
|
||||
uri: databaseUri
|
||||
});
|
||||
|
||||
const db = drizzle({
|
||||
client: connection,
|
||||
client: connectionPool,
|
||||
schema: {
|
||||
admin,
|
||||
team,
|
||||
|
Loading…
x
Reference in New Issue
Block a user