Back to Prisma1

Overview

docs/1.7/04-Reference/05-Prisma-Servers-&-DBs/02-Database-Connectors/01-Overview.md

1.34.121.0 KB
Original Source

Overview

Connectors are responsible for connecting your Prisma server to a database. There are two kinds of connectors:

  • Active: Manage and migrate the database schema
  • Passive: Read and write data only

Active connectors

Active connectors are used with new ("greenfield") databases that don't store any data and are not bound to a specific database schema. In these cases, the Prisma CLI will be the main interface to govern the structure of the database depending on the data model of your Prisma APIs.

Passive connectors

Passive connectors are mainly used for existing databases that already have a databse schema and/or store some data. In these cases, the Prisma CLI will use introspection to learn about the database schema and translate that into a corresponding data model for your Prisma API.

More info

You can learn more about connectors here and here.