mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-22 18:09:39 +08:00
feat: use connection pooling (#102)
This commit is contained in:
@ -10,8 +10,11 @@ generator client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
provider = "postgresql"
|
provider = "postgresql"
|
||||||
url = env("DATABASE_URL")
|
// Connection pooling URL
|
||||||
|
url = env("DATABASE_URL")
|
||||||
|
// Connection pooling is not supported by Prisma migrate yet. So need to use directUrl
|
||||||
|
directUrl = env("DATABASE_DIRECT_URL")
|
||||||
}
|
}
|
||||||
|
|
||||||
model Chat {
|
model Chat {
|
||||||
|
Reference in New Issue
Block a user