Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prisma/extension-accelerate

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/extension-accelerate - npm Package Compare versions

Comparing version 0.6.3 to 1.0.0

2

package.json
{
"name": "@prisma/extension-accelerate",
"type": "module",
"version": "0.6.3",
"version": "1.0.0",
"description": "Prisma Client extension for Accelerate",

@@ -6,0 +6,0 @@ "sideEffects": false,

# Accelerate Prisma Client extension
This is the package for the [Prisma Client extension](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions) that enables usage of Prisma Accelerate.
This is the package for the [Prisma Client extension](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions?utm_source=github&utm_medium=accelerate-readme) that enables usage of Prisma Accelerate.
[Prisma Accelerate](https://www.prisma.io/data-platform/accelerate) provides an external connection pool and global caching layer that you can use to speed up your database queries.
[Prisma Accelerate](https://www.prisma.io/data-platform/accelerate?utm_source=github&utm_medium=accelerate-readme) provides an external connection pool and global caching layer that you can use to speed up your database queries.
It is part of the [Prisma](https://www.prisma.io) ecosystem, alongside other tools such as:
It is part of the [Prisma](https://www.prisma.io?utm_source=github&utm_medium=accelerate-readme) ecosystem, alongside other tools such as:
- [Prisma ORM](https://github.com/prisma/prisma): Next-generation Node.js and TypeScript ORM, supporting PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, CockroachDB, and MongoDB.
- [Prisma Pulse](https://www.prisma.io/data-platform/pulse): Real-time database events with type-safe subscriptions.
- [Prisma Pulse](https://www.prisma.io/data-platform/pulse?utm_source=github&utm_medium=accelerate-readme): Real-time database events with type-safe subscriptions.
Prisma is leading Data DX, a philosophy that promotes simplicity in data-driven application development. Learn more on the [Data DX manifesto](https://www.datadx.io/).
Prisma is leading Data DX, a philosophy that promotes simplicity in data-driven application development. Learn more on the [Data DX manifesto](https://www.datadx.io/?utm_source=github&utm_medium=accelerate-readme).

@@ -20,6 +20,6 @@ ## Getting started with Accelerate

- [Get started](https://www.prisma.io/docs/data-platform/accelerate/getting-started)
- [Documentation](https://www.prisma.io/docs/data-platform/accelerate/what-is-accelerate)
- [Prisma Data Platform](https://console.prisma.io/login)
- [Accelerate Speed Test](https://accelerate-speed-test.prisma.io/)
- [Get started](https://www.prisma.io/docs/data-platform/accelerate/getting-started?utm_source=github&utm_medium=accelerate-readme)
- [Documentation](https://www.prisma.io/docs/data-platform/accelerate/what-is-accelerate?utm_source=github&utm_medium=accelerate-readme)
- [Prisma Data Platform](https://console.prisma.io/login?utm_source=github&utm_medium=accelerate-readme)
- [Accelerate Speed Test](https://accelerate-speed-test.prisma.io/?utm_source=github&utm_medium=accelerate-readme)

@@ -30,3 +30,3 @@ ### Using Accelerate

Log into [Prisma Data Platform](https://console.prisma.io/login) and enable Accelerate for your project.
Log into [Prisma Data Platform](https://console.prisma.io/login?utm_source=github&utm_medium=accelerate-readme) and enable Accelerate for your project.

@@ -61,6 +61,6 @@ #### 2. Add Accelerate to your application

```ts
import { PrismaClient } from '@prisma/client/edge'
import { withAccelerate } from '@prisma/extension-accelerate'
import { PrismaClient } from "@prisma/client/edge";
import { withAccelerate } from "@prisma/extension-accelerate";
const prisma = new PrismaClient().$extends(withAccelerate())
const prisma = new PrismaClient().$extends(withAccelerate());
```

@@ -74,7 +74,7 @@

await prisma.user.findMany({
cacheStrategy: {
cacheStrategy: {
ttl: 3_600,
swr: 500
swr: 500,
},
});
```
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc