Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

285
Vistas
What is "db" in Prisma datasource block?

In Prisma For MongogDB quick start guide, they wrote something like the following

datasource db {
provider = "mongodb"
url      = env("DATABASE_URL")
}

My question is what is "db" right after "datasource" keyword?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The value db is tied to the name of the datasource in your schema file.

datasource db is a convention - however, you can give your data source any name - for example, datasource mysql or datasource data.

Here's a reference for datasource which should be helpful.

In your schema file when using native database types you need to refer to the datasource name which is defined. So if your datasource is defined as data you would refer the native type as @data.String instead of conventional @db.String

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda