@lakeql/file-generator 0.1.5 → 0.1.7

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/config.d.mts CHANGED
@@ -17,6 +17,10 @@ interface StorageConfigProps {
17
17
  region?: string;
18
18
  /** Optional custom endpoint. */
19
19
  endpoint?: string;
20
+ /** Partitioning mode (true, false, or field name string). */
21
+ partitioning?: boolean | string;
22
+ /** Partition format granularity. */
23
+ partitioningFormat?: string;
20
24
  }
21
25
  /**
22
26
  * Parameters for generateConfig.
package/dist/config.mjs CHANGED
@@ -1 +1 @@
1
- import{asConst as e,exportedConstStatement as t,objectLiteral as n,property as r,stringLiteral as i}from"./ast-builders.mjs";import a from"typescript";function o({catalog:o,schema:s,tableName:c,queryName:l,mutationName:u,storageConfig:d}){let f=[t(`hiveConfig`,e(n([r(`catalog`,i(o)),r(`schema`,i(s)),r(`tableName`,i(c))]))),t(`docsConfig`,n([r(`query`,a.factory.createTrue()),r(`mutation`,u?.length?a.factory.createTrue():a.factory.createFalse()),r(`queryName`,i(l)),r(`mutationName`,u?.length?a.factory.createArrayLiteralExpression(u.map(e=>i(e)),!1):a.factory.createNull())]))];if(d){let a=[r(`loadStrategy`,i(d.loadStrategy)),r(`bucket`,i(d.bucket)),r(`basePath`,i(d.basePath))];d.type&&a.push(r(`type`,i(d.type))),d.region&&a.push(r(`region`,i(d.region))),d.endpoint&&a.push(r(`endpoint`,i(d.endpoint)));let o=t(`storageConfig`,e(n(a)));f.push(o)}return f}export{o as generateConfig};
1
+ import{asConst as e,exportedConstStatement as t,objectLiteral as n,property as r,stringLiteral as i}from"./ast-builders.mjs";import a from"typescript";function o({catalog:o,schema:s,tableName:c,queryName:l,mutationName:u,storageConfig:d}){let f=[t(`hiveConfig`,e(n([r(`catalog`,i(o)),r(`schema`,i(s)),r(`tableName`,i(c))]))),t(`docsConfig`,n([r(`query`,a.factory.createTrue()),r(`mutation`,u?.length?a.factory.createTrue():a.factory.createFalse()),r(`queryName`,i(l)),r(`mutationName`,u?.length?a.factory.createArrayLiteralExpression(u.map(e=>i(e)),!1):a.factory.createNull())]))];if(d){let o=[r(`loadStrategy`,i(d.loadStrategy)),r(`bucket`,i(d.bucket)),r(`basePath`,i(d.basePath))];d.type&&o.push(r(`type`,i(d.type))),d.region&&o.push(r(`region`,i(d.region))),d.endpoint&&o.push(r(`endpoint`,i(d.endpoint))),d.partitioning!==void 0&&(typeof d.partitioning==`boolean`?o.push(r(`partitioning`,d.partitioning?a.factory.createTrue():a.factory.createFalse())):o.push(r(`partitioning`,i(d.partitioning)))),d.partitioningFormat&&o.push(r(`partitioningFormat`,i(d.partitioningFormat)));let s=t(`storageConfig`,e(n(o)));f.push(s)}return f}export{o as generateConfig};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lakeql/file-generator",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Generates TypeScript source files from Trino table metadata",
5
5
  "keywords": [
6
6
  "ast",
@@ -60,16 +60,16 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "typescript": "6.0.3",
63
- "@lakeql/helpers": "0.1.2",
64
- "@lakeql/schema-generator": "0.3.0"
63
+ "@lakeql/schema-generator": "0.4.1",
64
+ "@lakeql/helpers": "0.1.3"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/node": "24.13.2",
68
68
  "lodash-es": "4.18.1",
69
69
  "tsdown": "0.22.2",
70
- "vitest": "4.1.8",
71
- "@lakeql/column-parser": "0.1.2",
72
- "@lakeql/tsconfig": "0.1.0"
70
+ "vitest": "4.1.9",
71
+ "@lakeql/tsconfig": "0.1.0",
72
+ "@lakeql/column-parser": "0.1.3"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsdown",