@effectify/prisma 0.1.2 → 1.0.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.
- package/dist/src/cli.d.ts +1 -1
- package/dist/src/cli.js +9 -9
- package/dist/src/commands/init.d.ts +1 -1
- package/dist/src/commands/init.js +0 -2
- package/dist/src/commands/prisma.d.ts +5 -0
- package/dist/src/commands/prisma.js +35 -0
- package/dist/src/generators/sql-schema-generator.d.ts +9 -0
- package/dist/src/generators/sql-schema-generator.js +50 -58
- package/dist/src/services/generator-context.d.ts +6 -0
- package/dist/src/services/generator-context.js +3 -0
- package/dist/src/services/generator-service.d.ts +14 -0
- package/dist/src/services/generator-service.js +121 -0
- package/dist/src/services/render-service.d.ts +10 -0
- package/dist/src/services/render-service.js +23 -0
- package/{src → dist/src}/templates/index-default.eta +1 -1
- package/dist/src/templates/model.eta +8 -0
- package/{src → dist/src}/templates/prisma-repository.eta +7 -7
- package/package.json +15 -11
- package/dist/src/commands/generate-effect.d.ts +0 -2
- package/dist/src/commands/generate-effect.js +0 -73
- package/dist/src/commands/generate-sql-schema.d.ts +0 -2
- package/dist/src/commands/generate-sql-schema.js +0 -72
- package/dist/src/effect-prisma.d.ts +0 -2
- package/dist/src/effect-prisma.js +0 -1771
- package/dist/src/generators/prisma-effect-generator.d.ts +0 -1
- package/dist/src/generators/prisma-effect-generator.js +0 -446
- package/prisma/dev.db +0 -0
- package/prisma/generated/client.d.ts +0 -1
- package/prisma/generated/client.js +0 -5
- package/prisma/generated/default.d.ts +0 -1
- package/prisma/generated/default.js +0 -5
- package/prisma/generated/edge.d.ts +0 -1
- package/prisma/generated/edge.js +0 -141
- package/prisma/generated/effect/index.ts +0 -392
- package/prisma/generated/effect/models/Todo.ts +0 -6
- package/prisma/generated/effect/prisma-repository.ts +0 -954
- package/prisma/generated/effect/prisma-schema.ts +0 -94
- package/prisma/generated/effect/schemas/enums.ts +0 -6
- package/prisma/generated/effect/schemas/index.ts +0 -2
- package/prisma/generated/effect/schemas/types.ts +0 -40
- package/prisma/generated/index-browser.js +0 -172
- package/prisma/generated/index.d.ts +0 -2376
- package/prisma/generated/index.js +0 -141
- package/prisma/generated/package.json +0 -144
- package/prisma/generated/query_compiler_bg.js +0 -2
- package/prisma/generated/query_compiler_bg.wasm +0 -0
- package/prisma/generated/query_compiler_bg.wasm-base64.js +0 -2
- package/prisma/generated/runtime/client.d.ts +0 -3180
- package/prisma/generated/runtime/client.js +0 -86
- package/prisma/generated/runtime/index-browser.d.ts +0 -87
- package/prisma/generated/runtime/index-browser.js +0 -6
- package/prisma/generated/runtime/wasm-compiler-edge.js +0 -76
- package/prisma/generated/schema.prisma +0 -31
- package/prisma/generated/wasm-edge-light-loader.mjs +0 -5
- package/prisma/generated/wasm-worker-loader.mjs +0 -5
- package/prisma/migrations/20250721164420_init/migration.sql +0 -9
- package/prisma/migrations/20250721191716_dumb/migration.sql +0 -49
- package/prisma/migrations/migration_lock.toml +0 -3
- package/prisma/schema.prisma +0 -31
- package/prisma.config.ts +0 -8
- package/project.json +0 -48
- package/scripts/cleanup-tests.ts +0 -26
- package/scripts/generate-test-files.ts +0 -93
- package/setup-tests.ts +0 -10
- package/src/cli.ts +0 -22
- package/src/commands/init.ts +0 -153
- package/src/commands/prisma.ts +0 -50
- package/src/generators/sql-schema-generator.ts +0 -66
- package/src/services/generator-context.ts +0 -4
- package/src/services/generator-service.ts +0 -178
- package/src/services/render-service.ts +0 -32
- package/src/templates/model.eta +0 -6
- package/test/prisma-model.test.ts +0 -340
- package/test/utils.ts +0 -10
- package/tsconfig.json +0 -20
- package/tsconfig.lib.json +0 -24
- package/tsconfig.spec.json +0 -15
- package/vitest.config.ts +0 -24
- /package/{src → dist/src}/templates/index-custom-error.eta +0 -0
- /package/{src → dist/src}/templates/prisma-raw-sql.eta +0 -0
- /package/{src → dist/src}/templates/prisma-schema.eta +0 -0
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// biome-ignore-all lint: generated file
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
PrismaClientKnownRequestError,
|
|
10
|
-
PrismaClientUnknownRequestError,
|
|
11
|
-
PrismaClientRustPanicError,
|
|
12
|
-
PrismaClientInitializationError,
|
|
13
|
-
PrismaClientValidationError,
|
|
14
|
-
getPrismaClient,
|
|
15
|
-
sqltag,
|
|
16
|
-
empty,
|
|
17
|
-
join,
|
|
18
|
-
raw,
|
|
19
|
-
skip,
|
|
20
|
-
Decimal,
|
|
21
|
-
Debug,
|
|
22
|
-
DbNull,
|
|
23
|
-
JsonNull,
|
|
24
|
-
AnyNull,
|
|
25
|
-
NullTypes,
|
|
26
|
-
makeStrictEnum,
|
|
27
|
-
Extensions,
|
|
28
|
-
warnOnce,
|
|
29
|
-
defineDmmfProperty,
|
|
30
|
-
Public,
|
|
31
|
-
getRuntime,
|
|
32
|
-
createParam,
|
|
33
|
-
} = require('./runtime/client.js')
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const Prisma = {}
|
|
37
|
-
|
|
38
|
-
exports.Prisma = Prisma
|
|
39
|
-
exports.$Enums = {}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Prisma Client JS version: 7.2.0
|
|
43
|
-
* Query Engine version: 0c8ef2ce45c83248ab3df073180d5eda9e8be7a3
|
|
44
|
-
*/
|
|
45
|
-
Prisma.prismaVersion = {
|
|
46
|
-
client: "7.2.0",
|
|
47
|
-
engine: "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
51
|
-
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
52
|
-
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
53
|
-
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
54
|
-
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
55
|
-
Prisma.Decimal = Decimal
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Re-export of sql-template-tag
|
|
59
|
-
*/
|
|
60
|
-
Prisma.sql = sqltag
|
|
61
|
-
Prisma.empty = empty
|
|
62
|
-
Prisma.join = join
|
|
63
|
-
Prisma.raw = raw
|
|
64
|
-
Prisma.validator = Public.validator
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Extensions
|
|
68
|
-
*/
|
|
69
|
-
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
70
|
-
Prisma.defineExtension = Extensions.defineExtension
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Shorthand utilities for JSON filtering
|
|
74
|
-
*/
|
|
75
|
-
Prisma.DbNull = DbNull
|
|
76
|
-
Prisma.JsonNull = JsonNull
|
|
77
|
-
Prisma.AnyNull = AnyNull
|
|
78
|
-
|
|
79
|
-
Prisma.NullTypes = NullTypes
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const path = require('path')
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Enums
|
|
88
|
-
*/
|
|
89
|
-
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
90
|
-
Serializable: 'Serializable'
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
exports.Prisma.TodoScalarFieldEnum = {
|
|
94
|
-
id: 'id',
|
|
95
|
-
title: 'title',
|
|
96
|
-
content: 'content',
|
|
97
|
-
published: 'published',
|
|
98
|
-
authorId: 'authorId'
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
exports.Prisma.SortOrder = {
|
|
102
|
-
asc: 'asc',
|
|
103
|
-
desc: 'desc'
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
exports.Prisma.NullsOrder = {
|
|
107
|
-
first: 'first',
|
|
108
|
-
last: 'last'
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
exports.Prisma.ModelName = {
|
|
113
|
-
Todo: 'Todo'
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* Create the Client
|
|
117
|
-
*/
|
|
118
|
-
const config = {
|
|
119
|
-
"previewFeatures": [],
|
|
120
|
-
"clientVersion": "7.2.0",
|
|
121
|
-
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
122
|
-
"activeProvider": "sqlite",
|
|
123
|
-
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"./generated\"\n}\n\ngenerator effect_schemas {\n provider = \"prisma-effect-kysely\"\n output = \"./generated/effect/schemas\"\n}\n\ngenerator effect {\n provider = \"tsx ./src/cli.ts\"\n output = \"./generated/effect\"\n clientImportPath = \"@prisma/client\"\n importFileExtension = \"js\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n}\n\nmodel Todo {\n id Int @id @default(autoincrement())\n title String\n content String?\n published Boolean @default(false)\n authorId Int\n}\n"
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"Todo\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"published\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"authorId\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
|
127
|
-
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
128
|
-
config.compilerWasm = {
|
|
129
|
-
getRuntime: async () => require('./query_compiler_bg.js'),
|
|
130
|
-
getQueryCompilerWasmModule: async () => {
|
|
131
|
-
const { Buffer } = require('node:buffer')
|
|
132
|
-
const { wasm } = require('./query_compiler_bg.wasm-base64.js')
|
|
133
|
-
const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64')
|
|
134
|
-
|
|
135
|
-
return new WebAssembly.Module(queryCompilerWasmFileBytes)
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const PrismaClient = getPrismaClient(config)
|
|
140
|
-
exports.PrismaClient = PrismaClient
|
|
141
|
-
Object.assign(exports, Prisma)
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "prisma-client-c2036edccdea0fc0f3eabd0a7a86ac999c01bb6043fee901fc5748228f0d90d3",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"types": "index.d.ts",
|
|
5
|
-
"browser": "default.js",
|
|
6
|
-
"exports": {
|
|
7
|
-
"./client": {
|
|
8
|
-
"require": {
|
|
9
|
-
"node": "./index.js",
|
|
10
|
-
"edge-light": "./edge.js",
|
|
11
|
-
"workerd": "./edge.js",
|
|
12
|
-
"worker": "./edge.js",
|
|
13
|
-
"browser": "./index-browser.js",
|
|
14
|
-
"default": "./index.js"
|
|
15
|
-
},
|
|
16
|
-
"import": {
|
|
17
|
-
"node": "./index.js",
|
|
18
|
-
"edge-light": "./edge.js",
|
|
19
|
-
"workerd": "./edge.js",
|
|
20
|
-
"worker": "./edge.js",
|
|
21
|
-
"browser": "./index-browser.js",
|
|
22
|
-
"default": "./index.js"
|
|
23
|
-
},
|
|
24
|
-
"default": "./index.js"
|
|
25
|
-
},
|
|
26
|
-
"./package.json": "./package.json",
|
|
27
|
-
".": {
|
|
28
|
-
"require": {
|
|
29
|
-
"node": "./index.js",
|
|
30
|
-
"edge-light": "./edge.js",
|
|
31
|
-
"workerd": "./edge.js",
|
|
32
|
-
"worker": "./edge.js",
|
|
33
|
-
"browser": "./index-browser.js",
|
|
34
|
-
"default": "./index.js"
|
|
35
|
-
},
|
|
36
|
-
"import": {
|
|
37
|
-
"node": "./index.js",
|
|
38
|
-
"edge-light": "./edge.js",
|
|
39
|
-
"workerd": "./edge.js",
|
|
40
|
-
"worker": "./edge.js",
|
|
41
|
-
"browser": "./index-browser.js",
|
|
42
|
-
"default": "./index.js"
|
|
43
|
-
},
|
|
44
|
-
"default": "./index.js"
|
|
45
|
-
},
|
|
46
|
-
"./extension": {
|
|
47
|
-
"types": "./extension.d.ts",
|
|
48
|
-
"require": "./extension.js",
|
|
49
|
-
"import": "./extension.js",
|
|
50
|
-
"default": "./extension.js"
|
|
51
|
-
},
|
|
52
|
-
"./index-browser": {
|
|
53
|
-
"types": "./index.d.ts",
|
|
54
|
-
"require": "./index-browser.js",
|
|
55
|
-
"import": "./index-browser.js",
|
|
56
|
-
"default": "./index-browser.js"
|
|
57
|
-
},
|
|
58
|
-
"./index": {
|
|
59
|
-
"types": "./index.d.ts",
|
|
60
|
-
"require": "./index.js",
|
|
61
|
-
"import": "./index.js",
|
|
62
|
-
"default": "./index.js"
|
|
63
|
-
},
|
|
64
|
-
"./edge": {
|
|
65
|
-
"types": "./edge.d.ts",
|
|
66
|
-
"require": "./edge.js",
|
|
67
|
-
"import": "./edge.js",
|
|
68
|
-
"default": "./edge.js"
|
|
69
|
-
},
|
|
70
|
-
"./runtime/client": {
|
|
71
|
-
"types": "./runtime/client.d.ts",
|
|
72
|
-
"node": {
|
|
73
|
-
"require": "./runtime/client.js",
|
|
74
|
-
"default": "./runtime/client.js"
|
|
75
|
-
},
|
|
76
|
-
"require": "./runtime/client.js",
|
|
77
|
-
"import": "./runtime/client.mjs",
|
|
78
|
-
"default": "./runtime/client.mjs"
|
|
79
|
-
},
|
|
80
|
-
"./runtime/wasm-compiler-edge": {
|
|
81
|
-
"types": "./runtime/wasm-compiler-edge.d.ts",
|
|
82
|
-
"require": "./runtime/wasm-compiler-edge.js",
|
|
83
|
-
"import": "./runtime/wasm-compiler-edge.mjs",
|
|
84
|
-
"default": "./runtime/wasm-compiler-edge.mjs"
|
|
85
|
-
},
|
|
86
|
-
"./runtime/index-browser": {
|
|
87
|
-
"types": "./runtime/index-browser.d.ts",
|
|
88
|
-
"require": "./runtime/index-browser.js",
|
|
89
|
-
"import": "./runtime/index-browser.mjs",
|
|
90
|
-
"default": "./runtime/index-browser.mjs"
|
|
91
|
-
},
|
|
92
|
-
"./generator-build": {
|
|
93
|
-
"require": "./generator-build/index.js",
|
|
94
|
-
"import": "./generator-build/index.js",
|
|
95
|
-
"default": "./generator-build/index.js"
|
|
96
|
-
},
|
|
97
|
-
"./sql": {
|
|
98
|
-
"require": {
|
|
99
|
-
"types": "./sql.d.ts",
|
|
100
|
-
"node": "./sql.js",
|
|
101
|
-
"default": "./sql.js"
|
|
102
|
-
},
|
|
103
|
-
"import": {
|
|
104
|
-
"types": "./sql.d.ts",
|
|
105
|
-
"node": "./sql.mjs",
|
|
106
|
-
"default": "./sql.mjs"
|
|
107
|
-
},
|
|
108
|
-
"default": "./sql.js"
|
|
109
|
-
},
|
|
110
|
-
"./*": "./*"
|
|
111
|
-
},
|
|
112
|
-
"version": "7.2.0",
|
|
113
|
-
"sideEffects": false,
|
|
114
|
-
"dependencies": {
|
|
115
|
-
"@prisma/client-runtime-utils": "7.2.0"
|
|
116
|
-
},
|
|
117
|
-
"imports": {
|
|
118
|
-
"#wasm-compiler-loader": {
|
|
119
|
-
"edge-light": "./wasm-edge-light-loader.mjs",
|
|
120
|
-
"workerd": "./wasm-worker-loader.mjs",
|
|
121
|
-
"worker": "./wasm-worker-loader.mjs",
|
|
122
|
-
"default": "./wasm-worker-loader.mjs"
|
|
123
|
-
},
|
|
124
|
-
"#main-entry-point": {
|
|
125
|
-
"require": {
|
|
126
|
-
"node": "./index.js",
|
|
127
|
-
"edge-light": "./edge.js",
|
|
128
|
-
"workerd": "./edge.js",
|
|
129
|
-
"worker": "./edge.js",
|
|
130
|
-
"browser": "./index-browser.js",
|
|
131
|
-
"default": "./index.js"
|
|
132
|
-
},
|
|
133
|
-
"import": {
|
|
134
|
-
"node": "./index.js",
|
|
135
|
-
"edge-light": "./edge.js",
|
|
136
|
-
"workerd": "./edge.js",
|
|
137
|
-
"worker": "./edge.js",
|
|
138
|
-
"browser": "./index-browser.js",
|
|
139
|
-
"default": "./index.js"
|
|
140
|
-
},
|
|
141
|
-
"default": "./index.js"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var h=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var n in t)h(e,n,{get:t[n],enumerable:!0})},O=(e,t,n,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of M(t))!j.call(e,r)&&r!==n&&h(e,r,{get:()=>t[r],enumerable:!(_=T(t,r))||_.enumerable});return e};var B=e=>O(h({},"__esModule",{value:!0}),e);var xe={};D(xe,{QueryCompiler:()=>F,__wbg_Error_e83987f665cf5504:()=>q,__wbg_Number_bb48ca12f395cd08:()=>C,__wbg_String_8f0eb39a4a4c2f66:()=>k,__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68:()=>W,__wbg___wbindgen_debug_string_df47ffb5e35e6763:()=>V,__wbg___wbindgen_in_bb933bd9e1b3bc0f:()=>z,__wbg___wbindgen_is_object_c818261d21f283a4:()=>L,__wbg___wbindgen_is_string_fbb76cb2940daafd:()=>P,__wbg___wbindgen_is_undefined_2d472862bd29a478:()=>Q,__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147:()=>Y,__wbg___wbindgen_number_get_a20bf9b85341449d:()=>G,__wbg___wbindgen_string_get_e4f06c90489ad01b:()=>J,__wbg___wbindgen_throw_b855445ff6a94295:()=>X,__wbg_entries_e171b586f8f6bdbf:()=>H,__wbg_getTime_14776bfb48a1bff9:()=>K,__wbg_get_7bed016f185add81:()=>Z,__wbg_get_with_ref_key_1dc361bd10053bfe:()=>v,__wbg_instanceof_ArrayBuffer_70beb1189ca63b38:()=>ee,__wbg_instanceof_Uint8Array_20c8e73002f7af98:()=>te,__wbg_isSafeInteger_d216eda7911dde36:()=>ne,__wbg_length_69bca3cb64fc8748:()=>re,__wbg_length_cdd215e10d9dd507:()=>_e,__wbg_new_0_f9740686d739025c:()=>oe,__wbg_new_1acc0b6eea89d040:()=>ce,__wbg_new_5a79be3ab53b8aa5:()=>ie,__wbg_new_68651c719dcda04e:()=>se,__wbg_new_e17d9f43105b08be:()=>ue,__wbg_prototypesetcall_2a6620b6922694b2:()=>fe,__wbg_set_3f1d0b984ed272ed:()=>be,__wbg_set_907fb406c34a251d:()=>de,__wbg_set_c213c871859d6500:()=>ae,__wbg_set_message_82ae475bb413aa5c:()=>ge,__wbg_set_wasm:()=>N,__wbindgen_cast_2241b6af4c4b2941:()=>le,__wbindgen_cast_4625c577ab2ec9ee:()=>we,__wbindgen_cast_9ae0607507abb057:()=>pe,__wbindgen_cast_d6cd19b81560fd6e:()=>ye,__wbindgen_init_externref_table:()=>me});module.exports=B(xe);var A=()=>{};A.prototype=A;let o;function N(e){o=e}let p=null;function a(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(o.memory.buffer)),p}let y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});y.decode();const U=2146435072;let S=0;function R(e,t){return S+=t,S>=U&&(y=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),y.decode(),S=t),y.decode(a().subarray(e,e+t))}function m(e,t){return e=e>>>0,R(e,t)}let f=0;const g=new TextEncoder;"encodeInto"in g||(g.encodeInto=function(e,t){const n=g.encode(e);return t.set(n),{read:e.length,written:n.length}});function l(e,t,n){if(n===void 0){const i=g.encode(e),d=t(i.length,1)>>>0;return a().subarray(d,d+i.length).set(i),f=i.length,d}let _=e.length,r=t(_,1)>>>0;const s=a();let c=0;for(;c<_;c++){const i=e.charCodeAt(c);if(i>127)break;s[r+c]=i}if(c!==_){c!==0&&(e=e.slice(c)),r=n(r,_,_=c+e.length*3,1)>>>0;const i=a().subarray(r+c,r+_),d=g.encodeInto(e,i);c+=d.written,r=n(r,_,c,1)>>>0}return f=c,r}let b=null;function u(){return(b===null||b.buffer.detached===!0||b.buffer.detached===void 0&&b.buffer!==o.memory.buffer)&&(b=new DataView(o.memory.buffer)),b}function x(e){return e==null}function I(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const r=e.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){const r=e.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(e)){const r=e.length;let s="[";r>0&&(s+=I(e[0]));for(let c=1;c<r;c++)s+=", "+I(e[c]);return s+="]",s}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(n&&n.length>1)_=n[1];else return toString.call(e);if(_=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
-
${e.stack}`:_}function $(e,t){return e=e>>>0,a().subarray(e/1,e/1+t)}function w(e){const t=o.__wbindgen_externrefs.get(e);return o.__externref_table_dealloc(e),t}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>o.__wbg_querycompiler_free(e>>>0,1));class F{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();o.__wbg_querycompiler_free(t,0)}compileBatch(t){const n=l(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=f,r=o.querycompiler_compileBatch(this.__wbg_ptr,n,_);if(r[2])throw w(r[1]);return w(r[0])}constructor(t){const n=o.querycompiler_new(t);if(n[2])throw w(n[1]);return this.__wbg_ptr=n[0]>>>0,E.register(this,this.__wbg_ptr,this),this}compile(t){const n=l(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=f,r=o.querycompiler_compile(this.__wbg_ptr,n,_);if(r[2])throw w(r[1]);return w(r[0])}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);function q(e,t){return Error(m(e,t))}function C(e){return Number(e)}function k(e,t){const n=String(t),_=l(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;u().setInt32(e+4*1,r,!0),u().setInt32(e+4*0,_,!0)}function W(e){const t=e,n=typeof t=="boolean"?t:void 0;return x(n)?16777215:n?1:0}function V(e,t){const n=I(t),_=l(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;u().setInt32(e+4*1,r,!0),u().setInt32(e+4*0,_,!0)}function z(e,t){return e in t}function L(e){const t=e;return typeof t=="object"&&t!==null}function P(e){return typeof e=="string"}function Q(e){return e===void 0}function Y(e,t){return e==t}function G(e,t){const n=t,_=typeof n=="number"?n:void 0;u().setFloat64(e+8*1,x(_)?0:_,!0),u().setInt32(e+4*0,!x(_),!0)}function J(e,t){const n=t,_=typeof n=="string"?n:void 0;var r=x(_)?0:l(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=f;u().setInt32(e+4*1,s,!0),u().setInt32(e+4*0,r,!0)}function X(e,t){throw new Error(m(e,t))}function H(e){return Object.entries(e)}function K(e){return e.getTime()}function Z(e,t){return e[t>>>0]}function v(e,t){return e[t]}function ee(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function te(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function ne(e){return Number.isSafeInteger(e)}function re(e){return e.length}function _e(e){return e.length}function oe(){return new Date}function ce(){return new Object}function ie(e){return new Uint8Array(e)}function se(){return new Map}function ue(){return new Array}function fe(e,t,n){Uint8Array.prototype.set.call($(e,t),n)}function be(e,t,n){e[t]=n}function de(e,t,n){return e.set(t,n)}function ae(e,t,n){e[t>>>0]=n}function ge(e,t){global.PRISMA_WASM_PANIC_REGISTRY.set_message(m(e,t))}function le(e,t){return m(e,t)}function we(e){return BigInt.asUintN(64,e)}function pe(e){return e}function ye(e){return e}function me(){const e=o.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}0&&(module.exports={QueryCompiler,__wbg_Error_e83987f665cf5504,__wbg_Number_bb48ca12f395cd08,__wbg_String_8f0eb39a4a4c2f66,__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68,__wbg___wbindgen_debug_string_df47ffb5e35e6763,__wbg___wbindgen_in_bb933bd9e1b3bc0f,__wbg___wbindgen_is_object_c818261d21f283a4,__wbg___wbindgen_is_string_fbb76cb2940daafd,__wbg___wbindgen_is_undefined_2d472862bd29a478,__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147,__wbg___wbindgen_number_get_a20bf9b85341449d,__wbg___wbindgen_string_get_e4f06c90489ad01b,__wbg___wbindgen_throw_b855445ff6a94295,__wbg_entries_e171b586f8f6bdbf,__wbg_getTime_14776bfb48a1bff9,__wbg_get_7bed016f185add81,__wbg_get_with_ref_key_1dc361bd10053bfe,__wbg_instanceof_ArrayBuffer_70beb1189ca63b38,__wbg_instanceof_Uint8Array_20c8e73002f7af98,__wbg_isSafeInteger_d216eda7911dde36,__wbg_length_69bca3cb64fc8748,__wbg_length_cdd215e10d9dd507,__wbg_new_0_f9740686d739025c,__wbg_new_1acc0b6eea89d040,__wbg_new_5a79be3ab53b8aa5,__wbg_new_68651c719dcda04e,__wbg_new_e17d9f43105b08be,__wbg_prototypesetcall_2a6620b6922694b2,__wbg_set_3f1d0b984ed272ed,__wbg_set_907fb406c34a251d,__wbg_set_c213c871859d6500,__wbg_set_message_82ae475bb413aa5c,__wbg_set_wasm,__wbindgen_cast_2241b6af4c4b2941,__wbindgen_cast_4625c577ab2ec9ee,__wbindgen_cast_9ae0607507abb057,__wbindgen_cast_d6cd19b81560fd6e,__wbindgen_init_externref_table});
|
|
Binary file
|