@prisma/adapter-mariadb 6.16.0-dev.32 → 6.16.0-dev.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -26
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -8,38 +8,15 @@ This package contains the driver adapter for Prisma ORM that enables usage of th
8
8
 
9
9
  This section explains how you can use it with Prisma ORM and the `@prisma/adapter-mariadb` driver adapter. Be sure that the `DATABASE_URL` environment variable is set to your MariaDB/MySQL connection string (e.g. in a `.env` file).
10
10
 
11
- ### 1. Enable the `driverAdapters` Preview feature flag
11
+ ### 1. Install the dependencies
12
12
 
13
- Since driver adapters are currently in Preview, you need to enable its feature flag on the `datasource` block in your Prisma schema:
14
-
15
- ```prisma
16
- // schema.prisma
17
- generator client {
18
- provider = "prisma-client-js"
19
- previewFeatures = ["driverAdapters"]
20
- }
21
-
22
- datasource db {
23
- provider = "mysql"
24
- url = env("DATABASE_URL")
25
- }
26
- ```
27
-
28
- Once you have added the feature flag to your schema, re-generate Prisma Client:
29
-
30
- ```
31
- npx prisma generate
32
- ```
33
-
34
- ### 2. Install the dependencies
35
-
36
- Next, install the MariaDB Prisma ORM driver adapter:
13
+ Install the MariaDB Prisma ORM driver adapter:
37
14
 
38
15
  ```
39
16
  npm install @prisma/adapter-mariadb
40
17
  ```
41
18
 
42
- ### 3. Instantiate Prisma Client using the driver adapter
19
+ ### 2. Instantiate Prisma Client using the driver adapter
43
20
 
44
21
  ```ts
45
22
  import { PrismaMariaDb } from '@prisma/adapter-mariadb'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/adapter-mariadb",
3
- "version": "6.16.0-dev.32",
3
+ "version": "6.16.0-dev.34",
4
4
  "description": "Prisma's driver adapter for \"mariadb\"",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,7 +32,7 @@
32
32
  "sideEffects": false,
33
33
  "dependencies": {
34
34
  "mariadb": "3.4.5",
35
- "@prisma/driver-adapter-utils": "6.16.0-dev.32"
35
+ "@prisma/driver-adapter-utils": "6.16.0-dev.34"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "DEV=true tsx helpers/build.ts",