@hedhog/prisma 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prisma.service.d.ts","sourceRoot":"","sources":["../src/prisma.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBACa,aAAc,SAAQ,YAAa,YAAW,YAAY;IAC/D,YAAY;IAIlB,WAAW;
|
1
|
+
{"version":3,"file":"prisma.service.d.ts","sourceRoot":"","sources":["../src/prisma.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBACa,aAAc,SAAQ,YAAa,YAAW,YAAY;IAC/D,YAAY;IAIlB,WAAW;IAIX,UAAU;IAIV,OAAO;CAGR"}
|
package/dist/prisma.service.js
CHANGED
@@ -14,11 +14,10 @@ let PrismaService = class PrismaService extends client_1.PrismaClient {
|
|
14
14
|
await this.$connect();
|
15
15
|
}
|
16
16
|
getProvider() {
|
17
|
-
console.log('getProvider', this._engineConfig.activeProvider);
|
18
17
|
return this._engineConfig.activeProvider;
|
19
18
|
}
|
20
19
|
isPostgres() {
|
21
|
-
return this.getProvider() === '
|
20
|
+
return this.getProvider() === 'postgresql';
|
22
21
|
}
|
23
22
|
isMysql() {
|
24
23
|
return this.getProvider() === 'mysql';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prisma.service.js","sourceRoot":"","sources":["../src/prisma.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA0D;AAC1D,2CAA8C;AAGvC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qBAAY;IAC7C,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IAED,WAAW;QACT,
|
1
|
+
{"version":3,"file":"prisma.service.js","sourceRoot":"","sources":["../src/prisma.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA0D;AAC1D,2CAA8C;AAGvC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qBAAY;IAC7C,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;IAED,WAAW;QACT,OAAQ,IAAY,CAAC,aAAa,CAAC,cAAc,CAAC;IACpD,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,WAAW,EAAE,KAAK,YAAY,CAAC;IAC7C,CAAC;IAED,OAAO;QACL,OAAO,IAAI,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC;IACxC,CAAC;CACF,CAAA;AAhBY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAgBzB"}
|
package/package.json
CHANGED
package/src/prisma.service.ts
CHANGED
@@ -8,12 +8,11 @@ export class PrismaService extends PrismaClient implements OnModuleInit {
|
|
8
8
|
}
|
9
9
|
|
10
10
|
getProvider() {
|
11
|
-
console.log('getProvider', (this as any)._engineConfig.activeProvider);
|
12
11
|
return (this as any)._engineConfig.activeProvider;
|
13
12
|
}
|
14
13
|
|
15
14
|
isPostgres() {
|
16
|
-
return this.getProvider() === '
|
15
|
+
return this.getProvider() === 'postgresql';
|
17
16
|
}
|
18
17
|
|
19
18
|
isMysql() {
|