@prisma-next/sql-operations 0.3.0-pr.99.4 → 0.3.0-pr.99.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/index.d.mts +17 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +17 -12
- package/src/index.ts +2 -2
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OperationRegistry, OperationSignature } from "@prisma-next/operations";
|
|
2
|
+
|
|
3
|
+
//#region src/index.d.ts
|
|
4
|
+
interface SqlLoweringSpec {
|
|
5
|
+
readonly targetFamily: 'sql';
|
|
6
|
+
readonly strategy: 'infix' | 'function';
|
|
7
|
+
readonly template: string;
|
|
8
|
+
}
|
|
9
|
+
interface SqlOperationSignature extends OperationSignature {
|
|
10
|
+
readonly lowering: SqlLoweringSpec;
|
|
11
|
+
}
|
|
12
|
+
type SqlOperationRegistry = OperationRegistry<SqlOperationSignature>;
|
|
13
|
+
declare function createSqlOperationRegistry(): SqlOperationRegistry;
|
|
14
|
+
declare function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { SqlLoweringSpec, SqlOperationRegistry, SqlOperationSignature, createSqlOperationRegistry, register };
|
|
17
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;UAMiB,eAAA;;EAAA,SAAA,QAAA,EAAe,OAAA,GAAA,UAAA;EAMf,SAAA,QAAA,EAAA,MAAsB;AAIvC;AAEgB,UANC,qBAAA,SAA8B,kBAMmB,CAAA;EAIlD,SAAA,QAAQ,EATH,eASc;;KANvB,oBAAA,GAAuB,kBAAkB;iBAErC,0BAAA,CAAA,GAA8B;iBAI9B,QAAA,WAAmB,iCAAiC"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createOperationRegistry } from "@prisma-next/operations";
|
|
2
|
+
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
function createSqlOperationRegistry() {
|
|
5
|
+
return createOperationRegistry();
|
|
6
|
+
}
|
|
7
|
+
function register(registry, signature) {
|
|
8
|
+
registry.register(signature);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createSqlOperationRegistry, register };
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type {\n OperationSignature as CoreOperationSignature,\n OperationRegistry,\n} from '@prisma-next/operations';\nimport { createOperationRegistry } from '@prisma-next/operations';\n\nexport interface SqlLoweringSpec {\n readonly targetFamily: 'sql';\n readonly strategy: 'infix' | 'function';\n readonly template: string;\n}\n\nexport interface SqlOperationSignature extends CoreOperationSignature {\n readonly lowering: SqlLoweringSpec;\n}\n\nexport type SqlOperationRegistry = OperationRegistry<SqlOperationSignature>;\n\nexport function createSqlOperationRegistry(): SqlOperationRegistry {\n return createOperationRegistry<SqlOperationSignature>();\n}\n\nexport function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void {\n registry.register(signature);\n}\n"],"mappings":";;;AAkBA,SAAgB,6BAAmD;AACjE,QAAO,yBAAgD;;AAGzD,SAAgB,SAAS,UAAgC,WAAwC;AAC/F,UAAS,SAAS,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,39 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-operations",
|
|
3
|
-
"version": "0.3.0-pr.99.
|
|
3
|
+
"version": "0.3.0-pr.99.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "SQL-specific operations for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.1.26",
|
|
9
|
-
"@prisma-next/operations": "0.3.0-pr.99.
|
|
9
|
+
"@prisma-next/operations": "0.3.0-pr.99.6"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"
|
|
12
|
+
"tsdown": "0.18.4",
|
|
13
13
|
"typescript": "5.9.3",
|
|
14
14
|
"vitest": "4.0.16",
|
|
15
|
-
"@prisma-next/emitter": "0.3.0-pr.99.
|
|
15
|
+
"@prisma-next/emitter": "0.3.0-pr.99.6",
|
|
16
16
|
"@prisma-next/test-utils": "0.0.1",
|
|
17
|
-
"@prisma-next/tsconfig": "0.0.0"
|
|
17
|
+
"@prisma-next/tsconfig": "0.0.0",
|
|
18
|
+
"@prisma-next/tsdown": "0.0.0"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist",
|
|
21
22
|
"src"
|
|
22
23
|
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20"
|
|
26
|
+
},
|
|
23
27
|
"exports": {
|
|
24
|
-
".":
|
|
25
|
-
|
|
26
|
-
"import": "./dist/index.js"
|
|
27
|
-
}
|
|
28
|
+
".": "./dist/index.mjs",
|
|
29
|
+
"./package.json": "./package.json"
|
|
28
30
|
},
|
|
31
|
+
"main": "./dist/index.mjs",
|
|
32
|
+
"module": "./dist/index.mjs",
|
|
33
|
+
"types": "./dist/index.d.mts",
|
|
29
34
|
"scripts": {
|
|
30
|
-
"build": "
|
|
35
|
+
"build": "tsdown",
|
|
31
36
|
"test": "vitest run --passWithNoTests",
|
|
32
37
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
33
|
-
"typecheck": "tsc --
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
34
39
|
"lint": "biome check . --error-on-warnings",
|
|
35
40
|
"lint:fix": "biome check --write .",
|
|
36
41
|
"lint:fix:unsafe": "biome check --write --unsafe .",
|
|
37
|
-
"clean": "rm -rf dist coverage .tmp-output"
|
|
42
|
+
"clean": "rm -rf dist dist-tsc dist-tsc-prod coverage .tmp-output"
|
|
38
43
|
}
|
|
39
44
|
}
|
package/src/index.ts
CHANGED
|
@@ -14,10 +14,10 @@ export interface SqlOperationSignature extends CoreOperationSignature {
|
|
|
14
14
|
readonly lowering: SqlLoweringSpec;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export type SqlOperationRegistry = OperationRegistry
|
|
17
|
+
export type SqlOperationRegistry = OperationRegistry<SqlOperationSignature>;
|
|
18
18
|
|
|
19
19
|
export function createSqlOperationRegistry(): SqlOperationRegistry {
|
|
20
|
-
return createOperationRegistry()
|
|
20
|
+
return createOperationRegistry<SqlOperationSignature>();
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void {
|
package/dist/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { OperationSignature as CoreOperationSignature, OperationRegistry } from '@prisma-next/operations';
|
|
2
|
-
export interface SqlLoweringSpec {
|
|
3
|
-
readonly targetFamily: 'sql';
|
|
4
|
-
readonly strategy: 'infix' | 'function';
|
|
5
|
-
readonly template: string;
|
|
6
|
-
}
|
|
7
|
-
export interface SqlOperationSignature extends CoreOperationSignature {
|
|
8
|
-
readonly lowering: SqlLoweringSpec;
|
|
9
|
-
}
|
|
10
|
-
export type SqlOperationRegistry = OperationRegistry;
|
|
11
|
-
export declare function createSqlOperationRegistry(): SqlOperationRegistry;
|
|
12
|
-
export declare function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,sBAAsB,EAC5C,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;CACpC;AAED,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AAErD,wBAAgB,0BAA0B,IAAI,oBAAoB,CAEjE;AAED,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,EAAE,qBAAqB,GAAG,IAAI,CAE/F"}
|
package/dist/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import { createOperationRegistry } from "@prisma-next/operations";
|
|
3
|
-
function createSqlOperationRegistry() {
|
|
4
|
-
return createOperationRegistry();
|
|
5
|
-
}
|
|
6
|
-
function register(registry, signature) {
|
|
7
|
-
registry.register(signature);
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
createSqlOperationRegistry,
|
|
11
|
-
register
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n OperationSignature as CoreOperationSignature,\n OperationRegistry,\n} from '@prisma-next/operations';\nimport { createOperationRegistry } from '@prisma-next/operations';\n\nexport interface SqlLoweringSpec {\n readonly targetFamily: 'sql';\n readonly strategy: 'infix' | 'function';\n readonly template: string;\n}\n\nexport interface SqlOperationSignature extends CoreOperationSignature {\n readonly lowering: SqlLoweringSpec;\n}\n\nexport type SqlOperationRegistry = OperationRegistry;\n\nexport function createSqlOperationRegistry(): SqlOperationRegistry {\n return createOperationRegistry() as SqlOperationRegistry;\n}\n\nexport function register(registry: SqlOperationRegistry, signature: SqlOperationSignature): void {\n registry.register(signature);\n}\n"],"mappings":";AAIA,SAAS,+BAA+B;AAcjC,SAAS,6BAAmD;AACjE,SAAO,wBAAwB;AACjC;AAEO,SAAS,SAAS,UAAgC,WAAwC;AAC/F,WAAS,SAAS,SAAS;AAC7B;","names":[]}
|