Skip to content

Commit

Permalink
add sslrootcert to arguments (#6432)
Browse files Browse the repository at this point in the history
* add sslrootcert to arguments

* duh moment
  • Loading branch information
jharrell authored Nov 14, 2024
1 parent 5af612b commit 5cf9e35
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
title: 'PostgreSQL'
metaTitle: 'PostgreSQL database connector'
metaDescription: 'This page explains how Prisma can connect to a PostgreSQL database using the PostgreSQL database connector.'
tocDepth: 3
---

<TopBlock>

The PostgreSQL data source connector connects Prisma ORM to a [PostgreSQL](https://www.postgresql.org/) database server.

By default, the PostgreSQL connector contains a database driver responsible for connecting to your database. You can use a [driver adapter](/orm/overview/databases/database-drivers#driver-adapters) (Preview) to connect to your database using a JavaScript database driver from Prisma Client.

</TopBlock>

## Example

To connect to a PostgreSQL database server, you need to configure a [`datasource`](/orm/prisma-schema/overview/data-sources) block in your [Prisma schema](/orm/prisma-schema):
Expand Down Expand Up @@ -149,6 +144,7 @@ The following arguments can be used:
| `pool_timeout` | No | `10` | Maximum number of seconds to wait for a new connection from the pool, `0` means no timeout |
| `sslmode` | No | `prefer` | Configures whether to use TLS. Possible values: `prefer`, `disable`, `require` |
| `sslcert` | No | | Path of the server certificate. Certificate paths are [resolved relative to the `./prisma folder`](/orm/prisma-schema/overview/data-sources#securing-database-connections) |
| `sslrootcert` | No | | Path of the root certificate. Certificate paths are [resolved relative to the `./prisma folder`](/orm/prisma-schema/overview/data-sources#securing-database-connections) |
| `sslidentity` | No | | Path to the PKCS12 certificate |
| `sslpassword` | No | | Password that was used to secure the PKCS12 file |
| `sslaccept` | No | `accept_invalid_certs` | Configures whether to check for missing values in the certificate. Possible values: `accept_invalid_certs`, `strict` |
Expand Down

0 comments on commit 5cf9e35

Please sign in to comment.