@prisma/extension-accelerate
Advanced tools
Comparing version 0.6.3 to 1.0.0
{ | ||
"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, | ||
}, | ||
}); | ||
``` |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
62787
1