prisma-client-php 4.1.5 → 4.1.6
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.
- package/dist/prisma/seed.ts +4 -4
- package/package.json +1 -1
package/dist/prisma/seed.ts
CHANGED
|
@@ -26,18 +26,18 @@ import { PrismaClient } from "@prisma/client";
|
|
|
26
26
|
|
|
27
27
|
// --- OPTION C: MYSQL / MARIADB ------------------------------
|
|
28
28
|
// import { PrismaMariaDb } from "@prisma/adapter-mariadb";
|
|
29
|
-
// import {
|
|
29
|
+
// import { PoolConfig } from "mariadb";
|
|
30
30
|
|
|
31
31
|
// const connectionUrl = new URL(process.env.DATABASE_URL!);
|
|
32
|
-
// const
|
|
32
|
+
// const poolConfig: PoolConfig = {
|
|
33
33
|
// host: connectionUrl.hostname,
|
|
34
34
|
// port: Number(connectionUrl.port) || 3306,
|
|
35
35
|
// user: connectionUrl.username,
|
|
36
36
|
// password: connectionUrl.password,
|
|
37
37
|
// database: connectionUrl.pathname.slice(1),
|
|
38
38
|
// connectionLimit: 5,
|
|
39
|
-
// }
|
|
40
|
-
// const adapter = new PrismaMariaDb(
|
|
39
|
+
// };
|
|
40
|
+
// const adapter = new PrismaMariaDb(poolConfig);
|
|
41
41
|
// const prisma = new PrismaClient({ adapter });
|
|
42
42
|
// ------------------------------------------------------------
|
|
43
43
|
|
package/package.json
CHANGED