Title: Database connections - Trigger.dev
Open Graph Title: Database connections - Trigger.dev
X Title: Database connections - Trigger.dev
Description: Connect a database to your tasks: where to create the client, how to size the pool for your provider's connection limit, and how to release connections so you don't run out.
Open Graph Description: Connect a database to your tasks: where to create the client, how to size the pool for your provider's connection limit, and how to release connections so you don't run out.
X Description: Connect a database to your tasks: where to create the client, how to size the pool for your provider's connection limit, and how to release connections so you don't run out.
Opengraph URL: https://trigger.dev/docs/database-connections
Generator: Mintlify
Domain: trigger.dev
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://trigger.dev/#organization","name":"Trigger.dev","url":"https://trigger.dev","logo":{"@type":"ImageObject","url":"https://mintlify.s3.us-west-1.amazonaws.com/trigger/logo/light.png"}},{"@type":"WebSite","@id":"https://trigger.dev/docs#website","name":"Trigger.dev","url":"https://trigger.dev/docs","publisher":{"@id":"https://trigger.dev/#organization"}},{"@type":"WebPage","@id":"https://trigger.dev/docs/database-connections#webpage","url":"https://trigger.dev/docs/database-connections","name":"Database connections","description":"Connect a database to your tasks: where to create the client, how to size the pool for your provider's connection limit, and how to release connections so you don't run out.","dateModified":"2026-11-12T00:51:52.788Z","isPartOf":{"@id":"https://trigger.dev/docs#website"},"breadcrumb":{"@id":"https://trigger.dev/docs/database-connections#breadcrumb"}},{"@type":"BreadcrumbList","@id":"https://trigger.dev/docs/database-connections#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Troubleshooting","item":"https://trigger.dev/docs/troubleshooting"},{"@type":"ListItem","position":2,"name":"Database connections","item":"https://trigger.dev/docs/database-connections"}]},{"@type":["Article","TechArticle"],"@id":"https://trigger.dev/docs/database-connections#article","headline":"Database connections","name":"Database connections","description":"Connect a database to your tasks: where to create the client, how to size the pool for your provider's connection limit, and how to release connections so you don't run out.","url":"https://trigger.dev/docs/database-connections","mainEntityOfPage":{"@id":"https://trigger.dev/docs/database-connections#webpage"},"dateModified":"2026-11-12T00:51:52.788Z","publisher":{"@id":"https://trigger.dev/#organization"},"isPartOf":{"@id":"https://trigger.dev/docs#website"}}]}
{"@context":"https://schema.org","@type":"WebSite","name":"Trigger.dev","publisher":{"@type":"Organization","name":"Trigger.dev"},"provider":{"@type":"Organization","name":"Mintlify","url":"https://mintlify.com"}}
| application-name | Trigger.dev |
| og:site_name | Trigger.dev |
| og:type | website |
| og:image | https://trigger.mintlify.site/docs/_mintlify/api/og/v2?division=Troubleshooting&title=Database+connections&description=Connect+a+database+to+your+tasks:+where+to+create+the+client,+how+to+size+the+pool+for+your+provider's+connection+limit,+and+how+to+release+connections+so+you+d&theme=a5bdee7a99608ff6863102f8&signature=2789f207c3255a4ee46828f30139bef05d74fc5d806f1e767af95b26209a9e35 |
| og:image:width | 1200 |
| og:image:height | 630 |
| twitter:card | summary_large_image |
| twitter:image | https://trigger.mintlify.site/docs/_mintlify/api/og/v2?division=Troubleshooting&title=Database+connections&description=Connect+a+database+to+your+tasks:+where+to+create+the+client,+how+to+size+the+pool+for+your+provider's+connection+limit,+and+how+to+release+connections+so+you+d&theme=a5bdee7a99608ff6863102f8&signature=2789f207c3255a4ee46828f30139bef05d74fc5d806f1e767af95b26209a9e35 |
| twitter:image:width | 1200 |
| twitter:image:height | 630 |
| msapplication-config | /docs/mintlify-assets/_mintlify/favicons/trigger/dAMCNvNG7r7-Ozw1/_generated/favicon/browserconfig.xml |
| apple-mobile-web-app-title | Trigger.dev |
| msapplication-TileColor | #A8FF53 |
Links:
Viewport: width=device-width, initial-scale=1, viewport-fit=cover