@vibeorm/sql 2.0.0-alpha.8 → 2.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.
@@ -0,0 +1,10 @@
1
+ import type { ColRef } from "./ast.ts";
2
+ /** PostgreSQL FUNC_MAX_ARGS: each json_build_array call accepts at most 100 values. */
3
+ export declare const JSON_TRANSPORT: Readonly<{
4
+ chunkSize: number;
5
+ }>;
6
+ /** The name visible through a subselect, matching the projection renderer's alias rules. */
7
+ export declare function projectionOutputName(params: {
8
+ column: ColRef;
9
+ }): string;
10
+ //# sourceMappingURL=json-transport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-transport.d.ts","sourceRoot":"","sources":["../src/json-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,uFAAuF;AACvF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAqC,CAAC;AAEjG,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAGvE"}
@@ -0,0 +1,14 @@
1
+ /** Render encoded elements as a postgres array literal (`{A,"B,C",NULL}`). */
2
+ export declare function toPgArrayLiteral(params: {
3
+ values: readonly unknown[];
4
+ }): string;
5
+ /**
6
+ * Parse a postgres array literal into its elements, or `null` when the text is
7
+ * not a literal (defensive — the value then passes through untouched).
8
+ * Unquoted `NULL` is SQL NULL; postgres quotes any element that could be
9
+ * mistaken for it.
10
+ */
11
+ export declare function parsePgArrayLiteral(params: {
12
+ literal: string;
13
+ }): (string | null)[] | null;
14
+ //# sourceMappingURL=pg-array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pg-array.d.ts","sourceRoot":"","sources":["../src/pg-array.ts"],"names":[],"mappings":"AAGA,8EAA8E;AAC9E,w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AAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,cAAc,CAAC;CAC3B,GAAG,MAAM,CAaT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeorm/sql",
3
- "version": "2.0.0-alpha.8",
3
+ "version": "2.0.1",
4
4
  "description": "Dialect-aware SQL layer for VibeORM v2 — SQL AST, renderers and capability tables for postgres, sqlite and mysql",
5
5
  "keywords": [
6
6
  "orm",
@@ -44,7 +44,7 @@
44
44
  "bun": ">=1.2.0"
45
45
  },
46
46
  "dependencies": {
47
- "@vibeorm/schema": "2.0.0-alpha.8"
47
+ "@vibeorm/schema": "2.0.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"