morio_bridge 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/morio_bridge.gemspec +4 -3
- data/server/bun.lock +116 -0
- data/server/db/pg-dev/client/client.ts +47 -0
- data/server/db/pg-dev/client/commonInputTypes.ts +141 -0
- data/server/db/pg-dev/client/enums.ts +13 -0
- data/server/db/pg-dev/client/index.ts +5 -0
- data/server/db/pg-dev/client/internal/class.ts +242 -0
- data/server/db/pg-dev/client/internal/prismaNamespace.ts +760 -0
- data/server/db/pg-dev/client/models/User.ts +1151 -0
- data/server/db/pg-dev/client/models.ts +11 -0
- data/server/db/pg-dev/schema.prisma +24 -0
- data/server/examples/commands.ts +95 -0
- data/server/examples/create-test.ts +21 -0
- data/server/index.ts +349 -0
- data/server/package.json +45 -0
- data/server/plugins/index.ts +26 -0
- data/server/plugins/lib/correct.schema.prisma +131 -0
- data/server/plugins/lib/schema-converter.ts +1393 -0
- data/server/plugins/lib/schema.ts +469 -0
- data/server/plugins/lib/util.ts +51 -0
- data/server/plugins/orm.ts +32 -0
- data/server/plugins/validator.ts +191 -0
- data/server/tsconfig.json +28 -0
- metadata +23 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0febf295d43a4a6be0c65b3c8f6e773c58589d163a2decc062bb75d7ec028769
|
4
|
+
data.tar.gz: dccc5ec68d920b3e8e65593765b131698e9d4fc145776c3d2c382feaf51df431
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30afdc6a70a812b4f2b609c28b90dc7273061bbff8d9f5a4246688e3f90f9b3e713cab301b482592caa6cf3daf72d62ec6356c3358ed6592c917a491c8383004
|
7
|
+
data.tar.gz: d0d18d687988a22155ae97d837e1d30ff186436336953a120e29268ac120c39006d69171551fba15ca5750c01dcfcb1b31437853cb6c4483c9cd666494c424dc
|
data/morio_bridge.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "morio_bridge"
|
5
|
-
spec.version = "0.1.
|
5
|
+
spec.version = "0.1.1"
|
6
6
|
spec.authors = ["r2g"]
|
7
7
|
spec.email = ["r2g.technology@gmail.com"]
|
8
8
|
spec.summary = "A simple Ruby gem with a post-install hook."
|
@@ -10,14 +10,15 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.homepage = "https://github.com/r2g/morio-bridge"
|
11
11
|
spec.license = "MIT"
|
12
12
|
|
13
|
-
# Specify which files to include in the gem
|
13
|
+
# Specify which files to include in the gem, ignore node_modules
|
14
14
|
spec.files = Dir[
|
15
15
|
"lib/**/*",
|
16
16
|
"bin/**/*",
|
17
|
+
"server/**/*",
|
17
18
|
"README.md",
|
18
19
|
"LICENSE.txt",
|
19
20
|
"*.gemspec"
|
20
|
-
]
|
21
|
+
].reject { |f| f.match?(%r{^(server|lib|bin)/.*node_modules/}) }
|
21
22
|
|
22
23
|
spec.require_paths = ["lib"]
|
23
24
|
spec.bindir = "exe"
|
data/server/bun.lock
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
{
|
2
|
+
"lockfileVersion": 1,
|
3
|
+
"workspaces": {
|
4
|
+
"": {
|
5
|
+
"name": "unix",
|
6
|
+
"dependencies": {
|
7
|
+
"@prisma/adapter-pg": "6.8.2",
|
8
|
+
"@prisma/client": "6.8.2",
|
9
|
+
"fastest-validator": "1.19.1",
|
10
|
+
"kleur": "^4.1.5",
|
11
|
+
"pg": "8.16.0",
|
12
|
+
"prisma": "6.8.2",
|
13
|
+
"yaml": "^2.8.0",
|
14
|
+
},
|
15
|
+
"devDependencies": {
|
16
|
+
"@types/bun": "latest",
|
17
|
+
"@types/pg": "8.15.2",
|
18
|
+
},
|
19
|
+
"peerDependencies": {
|
20
|
+
"typescript": "^5",
|
21
|
+
},
|
22
|
+
},
|
23
|
+
},
|
24
|
+
"trustedDependencies": [
|
25
|
+
"prisma",
|
26
|
+
"fastest-validator",
|
27
|
+
"@prisma/client",
|
28
|
+
"@prisma/adapter-pg",
|
29
|
+
"pg",
|
30
|
+
],
|
31
|
+
"packages": {
|
32
|
+
"@prisma/adapter-pg": ["@prisma/adapter-pg@6.8.2", "", { "dependencies": { "@prisma/driver-adapter-utils": "6.8.2", "postgres-array": "3.0.4" }, "peerDependencies": { "pg": "^8.11.3" } }, "sha512-T0c+oQsP0F47cTsoKPSEtPRmeuhFaCPcMFDev6N1QTnQZi+COkAiO6NKmblf1MM8D9ltYhs1PRsYBzPWB6QKwg=="],
|
33
|
+
|
34
|
+
"@prisma/client": ["@prisma/client@6.8.2", "", { "peerDependencies": { "prisma": "*", "typescript": ">=5.1.0" }, "optionalPeers": ["prisma", "typescript"] }, "sha512-5II+vbyzv4si6Yunwgkj0qT/iY0zyspttoDrL3R4BYgLdp42/d2C8xdi9vqkrYtKt9H32oFIukvyw3Koz5JoDg=="],
|
35
|
+
|
36
|
+
"@prisma/config": ["@prisma/config@6.8.2", "", { "dependencies": { "jiti": "2.4.2" } }, "sha512-ZJY1fF4qRBPdLQ/60wxNtX+eu89c3AkYEcP7L3jkp0IPXCNphCYxikTg55kPJLDOG6P0X+QG5tCv6CmsBRZWFQ=="],
|
37
|
+
|
38
|
+
"@prisma/debug": ["@prisma/debug@6.8.2", "", {}, "sha512-4muBSSUwJJ9BYth5N8tqts8JtiLT8QI/RSAzEogwEfpbYGFo9mYsInsVo8dqXdPO2+Rm5OG5q0qWDDE3nyUbVg=="],
|
39
|
+
|
40
|
+
"@prisma/driver-adapter-utils": ["@prisma/driver-adapter-utils@6.8.2", "", { "dependencies": { "@prisma/debug": "6.8.2" } }, "sha512-5+CzN/41gBsRmA3ekbVy1TXnSImSPBtMlxWAttVH6tg94bv4zGGRmyk5tUCdT83nl0hG1Sq2oMXR7ml6aqILvw=="],
|
41
|
+
|
42
|
+
"@prisma/engines": ["@prisma/engines@6.8.2", "", { "dependencies": { "@prisma/debug": "6.8.2", "@prisma/engines-version": "6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e", "@prisma/fetch-engine": "6.8.2", "@prisma/get-platform": "6.8.2" } }, "sha512-XqAJ//LXjqYRQ1RRabs79KOY4+v6gZOGzbcwDQl0D6n9WBKjV7qdrbd042CwSK0v0lM9MSHsbcFnU2Yn7z8Zlw=="],
|
43
|
+
|
44
|
+
"@prisma/engines-version": ["@prisma/engines-version@6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e", "", {}, "sha512-Rkik9lMyHpFNGaLpPF3H5q5TQTkm/aE7DsGM5m92FZTvWQsvmi6Va8On3pWvqLHOt5aPUvFb/FeZTmphI4CPiQ=="],
|
45
|
+
|
46
|
+
"@prisma/fetch-engine": ["@prisma/fetch-engine@6.8.2", "", { "dependencies": { "@prisma/debug": "6.8.2", "@prisma/engines-version": "6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e", "@prisma/get-platform": "6.8.2" } }, "sha512-lCvikWOgaLOfqXGacEKSNeenvj0n3qR5QvZUOmPE2e1Eh8cMYSobxonCg9rqM6FSdTfbpqp9xwhSAOYfNqSW0g=="],
|
47
|
+
|
48
|
+
"@prisma/get-platform": ["@prisma/get-platform@6.8.2", "", { "dependencies": { "@prisma/debug": "6.8.2" } }, "sha512-vXSxyUgX3vm1Q70QwzwkjeYfRryIvKno1SXbIqwSptKwqKzskINnDUcx85oX+ys6ooN2ATGSD0xN2UTfg6Zcow=="],
|
49
|
+
|
50
|
+
"@types/bun": ["@types/bun@1.2.13", "", { "dependencies": { "bun-types": "1.2.13" } }, "sha512-u6vXep/i9VBxoJl3GjZsl/BFIsvML8DfVDO0RYLEwtSZSp981kEO1V5NwRcO1CPJ7AmvpbnDCiMKo3JvbDEjAg=="],
|
51
|
+
|
52
|
+
"@types/node": ["@types/node@22.15.21", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-EV/37Td6c+MgKAbkcLG6vqZ2zEYHD7bvSrzqqs2RIhbA6w3x+Dqz8MZM3sP6kGTeLrdoOgKZe+Xja7tUB2DNkQ=="],
|
53
|
+
|
54
|
+
"@types/pg": ["@types/pg@8.15.2", "", { "dependencies": { "@types/node": "*", "pg-protocol": "*", "pg-types": "^4.0.1" } }, "sha512-+BKxo5mM6+/A1soSHBI7ufUglqYXntChLDyTbvcAn1Lawi9J7J9Ok3jt6w7I0+T/UDJ4CyhHk66+GZbwmkYxSg=="],
|
55
|
+
|
56
|
+
"bun-types": ["bun-types@1.2.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-rRjA1T6n7wto4gxhAO/ErZEtOXyEZEmnIHQfl0Dt1QQSB4QV0iP6BZ9/YB5fZaHFQ2dwHFrmPaRQ9GGMX01k9Q=="],
|
57
|
+
|
58
|
+
"fastest-validator": ["fastest-validator@1.19.1", "", {}, "sha512-eXiPCYOsuS5OWI+OVH9whu4LDGqO4cE7jUnZyQ8jV3rXfmC0OghQACOtYjTDxsVnblzvXIHGuizjFg0csiLE6g=="],
|
59
|
+
|
60
|
+
"jiti": ["jiti@2.4.2", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A=="],
|
61
|
+
|
62
|
+
"kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],
|
63
|
+
|
64
|
+
"obuf": ["obuf@1.1.2", "", {}, "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="],
|
65
|
+
|
66
|
+
"pg": ["pg@8.16.0", "", { "dependencies": { "pg-connection-string": "^2.9.0", "pg-pool": "^3.10.0", "pg-protocol": "^1.10.0", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.2.5" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-7SKfdvP8CTNXjMUzfcVTaI+TDzBEeaUnVwiVGZQD1Hh33Kpev7liQba9uLd4CfN8r9mCVsD0JIpq03+Unpz+kg=="],
|
67
|
+
|
68
|
+
"pg-cloudflare": ["pg-cloudflare@1.2.5", "", {}, "sha512-OOX22Vt0vOSRrdoUPKJ8Wi2OpE/o/h9T8X1s4qSkCedbNah9ei2W2765be8iMVxQUsvgT7zIAT2eIa9fs5+vtg=="],
|
69
|
+
|
70
|
+
"pg-connection-string": ["pg-connection-string@2.9.0", "", {}, "sha512-P2DEBKuvh5RClafLngkAuGe9OUlFV7ebu8w1kmaaOgPcpJd1RIFh7otETfI6hAR8YupOLFTY7nuvvIn7PLciUQ=="],
|
71
|
+
|
72
|
+
"pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="],
|
73
|
+
|
74
|
+
"pg-numeric": ["pg-numeric@1.0.2", "", {}, "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw=="],
|
75
|
+
|
76
|
+
"pg-pool": ["pg-pool@3.10.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-DzZ26On4sQ0KmqnO34muPcmKbhrjmyiO4lCCR0VwEd7MjmiKf5NTg/6+apUEu0NF7ESa37CGzFxH513CoUmWnA=="],
|
77
|
+
|
78
|
+
"pg-protocol": ["pg-protocol@1.10.0", "", {}, "sha512-IpdytjudNuLv8nhlHs/UrVBhU0e78J0oIS/0AVdTbWxSOkFUVdsHC/NrorO6nXsQNDTT1kzDSOMJubBQviX18Q=="],
|
79
|
+
|
80
|
+
"pg-types": ["pg-types@4.0.2", "", { "dependencies": { "pg-int8": "1.0.1", "pg-numeric": "1.0.2", "postgres-array": "~3.0.1", "postgres-bytea": "~3.0.0", "postgres-date": "~2.1.0", "postgres-interval": "^3.0.0", "postgres-range": "^1.1.1" } }, "sha512-cRL3JpS3lKMGsKaWndugWQoLOCoP+Cic8oseVcbr0qhPzYD5DWXK+RZ9LY9wxRf7RQia4SCwQlXk0q6FCPrVng=="],
|
81
|
+
|
82
|
+
"pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="],
|
83
|
+
|
84
|
+
"postgres-array": ["postgres-array@3.0.4", "", {}, "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ=="],
|
85
|
+
|
86
|
+
"postgres-bytea": ["postgres-bytea@3.0.0", "", { "dependencies": { "obuf": "~1.1.2" } }, "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw=="],
|
87
|
+
|
88
|
+
"postgres-date": ["postgres-date@2.1.0", "", {}, "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA=="],
|
89
|
+
|
90
|
+
"postgres-interval": ["postgres-interval@3.0.0", "", {}, "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw=="],
|
91
|
+
|
92
|
+
"postgres-range": ["postgres-range@1.1.4", "", {}, "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w=="],
|
93
|
+
|
94
|
+
"prisma": ["prisma@6.8.2", "", { "dependencies": { "@prisma/config": "6.8.2", "@prisma/engines": "6.8.2" }, "peerDependencies": { "typescript": ">=5.1.0" }, "optionalPeers": ["typescript"], "bin": { "prisma": "build/index.js" } }, "sha512-JNricTXQxzDtRS7lCGGOB4g5DJ91eg3nozdubXze3LpcMl1oWwcFddrj++Up3jnRE6X/3gB/xz3V+ecBk/eEGA=="],
|
95
|
+
|
96
|
+
"split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="],
|
97
|
+
|
98
|
+
"typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],
|
99
|
+
|
100
|
+
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
101
|
+
|
102
|
+
"xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="],
|
103
|
+
|
104
|
+
"yaml": ["yaml@2.8.0", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ=="],
|
105
|
+
|
106
|
+
"pg/pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="],
|
107
|
+
|
108
|
+
"pg/pg-types/postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="],
|
109
|
+
|
110
|
+
"pg/pg-types/postgres-bytea": ["postgres-bytea@1.0.0", "", {}, "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w=="],
|
111
|
+
|
112
|
+
"pg/pg-types/postgres-date": ["postgres-date@1.0.7", "", {}, "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q=="],
|
113
|
+
|
114
|
+
"pg/pg-types/postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="],
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
3
|
+
/* eslint-disable */
|
4
|
+
// @ts-nocheck
|
5
|
+
/**
|
6
|
+
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
7
|
+
*
|
8
|
+
* 🟢 You can import this file directly.
|
9
|
+
*/
|
10
|
+
|
11
|
+
import * as process from 'node:process'
|
12
|
+
import * as path from 'node:path'
|
13
|
+
import { fileURLToPath } from 'node:url'
|
14
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
15
|
+
|
16
|
+
import * as runtime from "@prisma/client/runtime/client"
|
17
|
+
import * as $Enums from "./enums.ts"
|
18
|
+
import * as $Class from "./internal/class.ts"
|
19
|
+
import * as Prisma from "./internal/prismaNamespace.ts"
|
20
|
+
|
21
|
+
export * as $Enums from './enums.ts'
|
22
|
+
/**
|
23
|
+
* ## Prisma Client
|
24
|
+
*
|
25
|
+
* Type-safe database client for TypeScript
|
26
|
+
* @example
|
27
|
+
* ```
|
28
|
+
* const prisma = new PrismaClient()
|
29
|
+
* // Fetch zero or more Users
|
30
|
+
* const users = await prisma.user.findMany()
|
31
|
+
* ```
|
32
|
+
*
|
33
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
34
|
+
*/
|
35
|
+
export const PrismaClient = $Class.getPrismaClientClass(__dirname)
|
36
|
+
export type PrismaClient<ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, Log = $Class.LogOptions<ClientOptions>, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<ClientOptions, Log, ExtArgs>
|
37
|
+
export { Prisma }
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Model User
|
43
|
+
*
|
44
|
+
*/
|
45
|
+
export type User = Prisma.UserModel
|
46
|
+
|
47
|
+
|
@@ -0,0 +1,141 @@
|
|
1
|
+
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
3
|
+
/* eslint-disable */
|
4
|
+
// @ts-nocheck
|
5
|
+
/**
|
6
|
+
* This file exports various common sort, input & filter types that are not directly linked to a particular model.
|
7
|
+
*
|
8
|
+
* 🟢 You can import this file directly.
|
9
|
+
*/
|
10
|
+
|
11
|
+
import * as runtime from "@prisma/client/runtime/client"
|
12
|
+
import * as $Enums from "./enums.ts"
|
13
|
+
import type * as Prisma from "./internal/prismaNamespace.ts"
|
14
|
+
|
15
|
+
|
16
|
+
export type StringFilter<$PrismaModel = never> = {
|
17
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
18
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
19
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
20
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
21
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
22
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
23
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
24
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
25
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
26
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
27
|
+
mode?: Prisma.QueryMode
|
28
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
29
|
+
}
|
30
|
+
|
31
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
32
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
33
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
34
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
35
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
36
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
37
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
38
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
39
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
40
|
+
}
|
41
|
+
|
42
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
43
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
44
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
45
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
46
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
47
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
48
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
49
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
50
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
51
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
52
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
53
|
+
mode?: Prisma.QueryMode
|
54
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
55
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
56
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
57
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
58
|
+
}
|
59
|
+
|
60
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
61
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
62
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
63
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
64
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
65
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
66
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
67
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
68
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
69
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
70
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
71
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
72
|
+
}
|
73
|
+
|
74
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
75
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
76
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
77
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
78
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
79
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
80
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
81
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
82
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
83
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
84
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
85
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
86
|
+
}
|
87
|
+
|
88
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
89
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
90
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
91
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
92
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
93
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
94
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
95
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
96
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string
|
97
|
+
}
|
98
|
+
|
99
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
100
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
101
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
102
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
103
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
104
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
105
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
106
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
107
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
108
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
109
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
110
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
111
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
112
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
113
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>
|
114
|
+
}
|
115
|
+
|
116
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
117
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
118
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
119
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
120
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
121
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
122
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
123
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
124
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number
|
125
|
+
}
|
126
|
+
|
127
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
128
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
129
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
130
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
131
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
132
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
133
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
134
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
135
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
|
136
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
137
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
138
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>
|
139
|
+
}
|
140
|
+
|
141
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
3
|
+
/* eslint-disable */
|
4
|
+
// @ts-nocheck
|
5
|
+
/**
|
6
|
+
* This file exports all enum related types from the schema.
|
7
|
+
*
|
8
|
+
* 🟢 You can import this file directly.
|
9
|
+
*/
|
10
|
+
|
11
|
+
|
12
|
+
// This file is empty because there are no enums in the schema.
|
13
|
+
export {}
|
@@ -0,0 +1,242 @@
|
|
1
|
+
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
3
|
+
/* eslint-disable */
|
4
|
+
// @ts-nocheck
|
5
|
+
/**
|
6
|
+
* WARNING: This is an internal file that is subject to change!
|
7
|
+
*
|
8
|
+
* 🛑 Under no circumstances should you import this file directly! 🛑
|
9
|
+
*
|
10
|
+
* Please import the `PrismaClient` class from the `client.ts` file instead.
|
11
|
+
*/
|
12
|
+
|
13
|
+
import * as runtime from "@prisma/client/runtime/client"
|
14
|
+
import type * as Prisma from "./prismaNamespace.ts"
|
15
|
+
|
16
|
+
|
17
|
+
const config: runtime.GetPrismaClientConfig = {
|
18
|
+
"generator": {
|
19
|
+
"name": "client",
|
20
|
+
"provider": {
|
21
|
+
"fromEnvVar": null,
|
22
|
+
"value": "prisma-client"
|
23
|
+
},
|
24
|
+
"output": {
|
25
|
+
"value": "/morio-rb/lib/morio/unix/src/db/pg-dev/client",
|
26
|
+
"fromEnvVar": null
|
27
|
+
},
|
28
|
+
"config": {
|
29
|
+
"runtime": "bun",
|
30
|
+
"moduleFormat": "esm",
|
31
|
+
"engineType": "client"
|
32
|
+
},
|
33
|
+
"binaryTargets": [
|
34
|
+
{
|
35
|
+
"fromEnvVar": null,
|
36
|
+
"value": "linux-musl-arm64-openssl-3.0.x",
|
37
|
+
"native": true
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"previewFeatures": [
|
41
|
+
"driverAdapters",
|
42
|
+
"queryCompiler"
|
43
|
+
],
|
44
|
+
"sourceFilePath": "/morio-rb/lib/morio/unix/src/db/pg-dev/schema.prisma",
|
45
|
+
"isCustomOutput": true
|
46
|
+
},
|
47
|
+
"relativePath": "..",
|
48
|
+
"clientVersion": "6.8.2",
|
49
|
+
"engineVersion": "2060c79ba17c6bb9f5823312b6f6b7f4a845738e",
|
50
|
+
"datasourceNames": [
|
51
|
+
"db"
|
52
|
+
],
|
53
|
+
"activeProvider": "postgresql",
|
54
|
+
"postinstall": false,
|
55
|
+
"inlineDatasources": {
|
56
|
+
"db": {
|
57
|
+
"url": {
|
58
|
+
"fromEnvVar": "DATABASE_URL",
|
59
|
+
"value": null
|
60
|
+
}
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client\"\n previewFeatures = [\"queryCompiler\", \"driverAdapters\"]\n output = \"./client\"\n runtime = \"bun\"\n moduleFormat = \"esm\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n email String\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@map(\"users\")\n}\n",
|
64
|
+
"inlineSchemaHash": "89ad3609496cb9725ffb381fe90c5c6a230265d4e5ededd01358917f0b95534e",
|
65
|
+
"copyEngine": true,
|
66
|
+
"runtimeDataModel": {
|
67
|
+
"models": {},
|
68
|
+
"enums": {},
|
69
|
+
"types": {}
|
70
|
+
},
|
71
|
+
"dirname": ""
|
72
|
+
}
|
73
|
+
|
74
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"users\"}},\"enums\":{},\"types\":{}}")
|
75
|
+
config.engineWasm = undefined
|
76
|
+
config.compilerWasm = {
|
77
|
+
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"),
|
78
|
+
|
79
|
+
getQueryCompilerWasmModule: async () => {
|
80
|
+
const { readFile } = await import('node:fs/promises')
|
81
|
+
const { createRequire } = await import('node:module')
|
82
|
+
const require = createRequire(import.meta.url)
|
83
|
+
|
84
|
+
const wasmModulePath = require.resolve("@prisma/client/runtime/query_compiler_bg.postgresql.wasm")
|
85
|
+
const wasmModuleBytes = await readFile(wasmModulePath)
|
86
|
+
|
87
|
+
return new globalThis.WebAssembly.Module(wasmModuleBytes)
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> =
|
95
|
+
'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never
|
96
|
+
|
97
|
+
export interface PrismaClientConstructor {
|
98
|
+
/**
|
99
|
+
* ## Prisma Client
|
100
|
+
*
|
101
|
+
* Type-safe database client for TypeScript
|
102
|
+
* @example
|
103
|
+
* ```
|
104
|
+
* const prisma = new PrismaClient()
|
105
|
+
* // Fetch zero or more Users
|
106
|
+
* const users = await prisma.user.findMany()
|
107
|
+
* ```
|
108
|
+
*
|
109
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
110
|
+
*/
|
111
|
+
|
112
|
+
new <
|
113
|
+
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
114
|
+
U = LogOptions<ClientOptions>,
|
115
|
+
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
116
|
+
>(options?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>): PrismaClient<ClientOptions, U, ExtArgs>
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* ## Prisma Client
|
121
|
+
*
|
122
|
+
* Type-safe database client for TypeScript
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* const prisma = new PrismaClient()
|
126
|
+
* // Fetch zero or more Users
|
127
|
+
* const users = await prisma.user.findMany()
|
128
|
+
* ```
|
129
|
+
*
|
130
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
131
|
+
*/
|
132
|
+
|
133
|
+
export interface PrismaClient<
|
134
|
+
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
135
|
+
U = LogOptions<ClientOptions>,
|
136
|
+
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
137
|
+
> {
|
138
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
139
|
+
|
140
|
+
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Connect with the database
|
144
|
+
*/
|
145
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Disconnect from the database
|
149
|
+
*/
|
150
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Add a middleware
|
154
|
+
* @deprecated since 4.16.0. For new code, prefer client extensions instead.
|
155
|
+
* @see https://pris.ly/d/extensions
|
156
|
+
*/
|
157
|
+
$use(cb: Prisma.Middleware): void
|
158
|
+
|
159
|
+
/**
|
160
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
161
|
+
* @example
|
162
|
+
* ```
|
163
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
164
|
+
* ```
|
165
|
+
*
|
166
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
167
|
+
*/
|
168
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Executes a raw query and returns the number of affected rows.
|
172
|
+
* Susceptible to SQL injections, see documentation.
|
173
|
+
* @example
|
174
|
+
* ```
|
175
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
176
|
+
* ```
|
177
|
+
*
|
178
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
179
|
+
*/
|
180
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
184
|
+
* @example
|
185
|
+
* ```
|
186
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
187
|
+
* ```
|
188
|
+
*
|
189
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
190
|
+
*/
|
191
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Performs a raw query and returns the `SELECT` data.
|
195
|
+
* Susceptible to SQL injections, see documentation.
|
196
|
+
* @example
|
197
|
+
* ```
|
198
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
199
|
+
* ```
|
200
|
+
*
|
201
|
+
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
|
202
|
+
*/
|
203
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
204
|
+
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
208
|
+
* @example
|
209
|
+
* ```
|
210
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
211
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
212
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
213
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
214
|
+
* ])
|
215
|
+
* ```
|
216
|
+
*
|
217
|
+
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
|
218
|
+
*/
|
219
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
|
220
|
+
|
221
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise<R>
|
222
|
+
|
223
|
+
|
224
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
|
225
|
+
extArgs: ExtArgs
|
226
|
+
}>>
|
227
|
+
|
228
|
+
/**
|
229
|
+
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
230
|
+
* Example usage:
|
231
|
+
* ```ts
|
232
|
+
* // Fetch zero or more Users
|
233
|
+
* const users = await prisma.user.findMany()
|
234
|
+
* ```
|
235
|
+
*/
|
236
|
+
get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
|
237
|
+
}
|
238
|
+
|
239
|
+
export function getPrismaClientClass(dirname: string): PrismaClientConstructor {
|
240
|
+
config.dirname = dirname
|
241
|
+
return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor
|
242
|
+
}
|