Socket
Socket
Sign inDemoInstall

@prisma/engines

Package Overview
Dependencies
4
Maintainers
6
Versions
5161
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @prisma/engines

This package is intended for Prisma's internal use


Version published
Maintainers
6
Install size
34.4 MB
Created

Package description

What is @prisma/engines?

The @prisma/engines package is part of the Prisma ecosystem, which provides a set of tools for database access and management in Node.js and TypeScript applications. It includes the core functionalities required for the Prisma Client and Prisma Migrate to interact with various databases. This package is responsible for executing queries, migrations, and other database operations, abstracting the complexity of direct database access.

What are @prisma/engines's main functionalities?

Query Execution

Enables the execution of queries against the database using Prisma Client. This feature allows developers to perform CRUD operations in a type-safe manner.

"const { PrismaClient } = require('@prisma/client');\nconst prisma = new PrismaClient();\nasync function main() {\n  const allUsers = await prisma.user.findMany();\n  console.log(allUsers);\n}\nmain();"

Schema Migration

Facilitates database schema migrations with Prisma Migrate. Developers can define their database schema in Prisma Schema Language (PSL) and apply changes to their databases in a controlled and versioned manner.

"npx prisma migrate dev --name init\n"

Introspection

Generates a Prisma schema from an existing database schema. This is useful for integrating Prisma into projects with pre-existing databases, allowing for a smooth transition to Prisma's workflow.

"npx prisma introspect\n"

Other packages similar to @prisma/engines

Readme

Source

@prisma/engines

⚠️ Warning: This package is intended for Prisma's internal use. Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning.

The postinstall hook of this package downloads all Prisma engines available for the current platform, namely the Query Engine and the Schema Engine from the Prisma CDN.

The engines version to be downloaded is directly determined by the version of its @prisma/engines-version dependency.

You should probably not use this package directly, but instead use one of these:

  • prisma CLI
  • @prisma/client

FAQs

Last updated on 14 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc