Back to Prisma

Data sources

apps/docs/content/docs/orm/prisma-schema/overview/data-sources.mdx

latest1.5 KB
Original Source

A data source determines how Prisma ORM connects to your database, and is represented by the datasource block in the Prisma schema. Connection details (such as the database URL) are configured in Prisma Config. The following data source uses the postgresql provider:

prisma
datasource db {
  provider = "postgresql"
}

A Prisma schema can only have one data source. However, you can:

Securing database connections

Some data source providers allow you to configure your connection with SSL/TLS by specifying certificate locations in your connection configuration.

See the database-specific documentation above for examples of SSL/TLS connection configuration in Prisma Config.