@polyglot-sql/sdk 0.3.2 → 0.3.4
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/cdn/polyglot.esm.js +1803 -1803
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/polyglot_sql_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1728,6 +1728,10 @@ declare type ColumnDef = {
|
|
|
1728
1728
|
* MySQL: ON UPDATE expression (e.g., ON UPDATE CURRENT_TIMESTAMP)
|
|
1729
1729
|
*/
|
|
1730
1730
|
on_update?: Expression | null;
|
|
1731
|
+
/**
|
|
1732
|
+
* MySQL: column VISIBLE/INVISIBLE modifier.
|
|
1733
|
+
*/
|
|
1734
|
+
visible?: boolean | null;
|
|
1731
1735
|
/**
|
|
1732
1736
|
* Named constraint for UNIQUE (e.g., CONSTRAINT must_be_different UNIQUE)
|
|
1733
1737
|
*/
|
|
@@ -2325,6 +2329,10 @@ declare type CreateFunction = {
|
|
|
2325
2329
|
* Original order of function properties (SET, AS, LANGUAGE, etc.)
|
|
2326
2330
|
*/
|
|
2327
2331
|
property_order?: Array<FunctionPropertyKind>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Hive: USING JAR|FILE|ARCHIVE '...'
|
|
2334
|
+
*/
|
|
2335
|
+
using_resources?: Array<FunctionUsingResource>;
|
|
2328
2336
|
/**
|
|
2329
2337
|
* Databricks: ENVIRONMENT (dependencies = '...', environment_version = '...')
|
|
2330
2338
|
*/
|
|
@@ -2333,6 +2341,18 @@ declare type CreateFunction = {
|
|
|
2333
2341
|
* HANDLER 'handler_function' clause (Databricks)
|
|
2334
2342
|
*/
|
|
2335
2343
|
handler?: string | null;
|
|
2344
|
+
/**
|
|
2345
|
+
* True when the HANDLER clause used Snowflake-style `HANDLER = 'fn'`
|
|
2346
|
+
*/
|
|
2347
|
+
handler_uses_eq?: boolean;
|
|
2348
|
+
/**
|
|
2349
|
+
* Snowflake: RUNTIME_VERSION='3.11'
|
|
2350
|
+
*/
|
|
2351
|
+
runtime_version?: string | null;
|
|
2352
|
+
/**
|
|
2353
|
+
* Snowflake: PACKAGES=('pkg1', 'pkg2')
|
|
2354
|
+
*/
|
|
2355
|
+
packages?: Array<string> | null;
|
|
2336
2356
|
/**
|
|
2337
2357
|
* PARAMETER STYLE clause (e.g., PANDAS for Databricks)
|
|
2338
2358
|
*/
|
|
@@ -2546,6 +2566,10 @@ declare type CreateTable = {
|
|
|
2546
2566
|
* Whether this is a SHALLOW CLONE (Databricks/Delta Lake)
|
|
2547
2567
|
*/
|
|
2548
2568
|
shallow_clone: boolean;
|
|
2569
|
+
/**
|
|
2570
|
+
* Whether this is an explicit DEEP CLONE (Databricks/Delta Lake)
|
|
2571
|
+
*/
|
|
2572
|
+
deep_clone: boolean;
|
|
2549
2573
|
/**
|
|
2550
2574
|
* Leading comments before the statement
|
|
2551
2575
|
*/
|
|
@@ -2741,6 +2765,10 @@ declare type CreateView = {
|
|
|
2741
2765
|
* Snowflake: COMMENT = 'text'
|
|
2742
2766
|
*/
|
|
2743
2767
|
comment?: string | null;
|
|
2768
|
+
/**
|
|
2769
|
+
* Snowflake: WITH ROW ACCESS POLICY ... clause
|
|
2770
|
+
*/
|
|
2771
|
+
row_access_policy?: string | null;
|
|
2744
2772
|
/**
|
|
2745
2773
|
* Snowflake: TAG (name='value', ...)
|
|
2746
2774
|
*/
|
|
@@ -3367,6 +3395,7 @@ export declare function del(tableName: string): DeleteBuilder;
|
|
|
3367
3395
|
*/
|
|
3368
3396
|
declare type Delete = {
|
|
3369
3397
|
table: TableRef;
|
|
3398
|
+
hint: Hint | null;
|
|
3370
3399
|
/**
|
|
3371
3400
|
* ClickHouse: ON CLUSTER clause for distributed DDL
|
|
3372
3401
|
*/
|
|
@@ -6517,7 +6546,7 @@ declare type FunctionParameter = {
|
|
|
6517
6546
|
/**
|
|
6518
6547
|
* Types of properties in CREATE FUNCTION for tracking their original order
|
|
6519
6548
|
*/
|
|
6520
|
-
declare type FunctionPropertyKind = "Set" | "As" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "ParameterStyle";
|
|
6549
|
+
declare type FunctionPropertyKind = "Set" | "As" | "Using" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "RuntimeVersion" | "Packages" | "ParameterStyle";
|
|
6521
6550
|
|
|
6522
6551
|
/**
|
|
6523
6552
|
* Function security (DEFINER, INVOKER, or NONE)
|
|
@@ -6542,6 +6571,14 @@ declare type FunctionSetValue = {
|
|
|
6542
6571
|
};
|
|
6543
6572
|
} | "FromCurrent";
|
|
6544
6573
|
|
|
6574
|
+
/**
|
|
6575
|
+
* Hive CREATE FUNCTION resource in a USING clause
|
|
6576
|
+
*/
|
|
6577
|
+
declare type FunctionUsingResource = {
|
|
6578
|
+
kind: string;
|
|
6579
|
+
uri: string;
|
|
6580
|
+
};
|
|
6581
|
+
|
|
6545
6582
|
/**
|
|
6546
6583
|
* GapFill
|
|
6547
6584
|
*/
|
|
@@ -10498,6 +10535,10 @@ declare type Pragma = {
|
|
|
10498
10535
|
* Optional arguments for function-style pragmas (PRAGMA name(arg))
|
|
10499
10536
|
*/
|
|
10500
10537
|
args: Array<Expression>;
|
|
10538
|
+
/**
|
|
10539
|
+
* Whether this pragma should be generated using assignment syntax.
|
|
10540
|
+
*/
|
|
10541
|
+
use_assignment_syntax: boolean;
|
|
10501
10542
|
};
|
|
10502
10543
|
|
|
10503
10544
|
/**
|
|
@@ -13944,6 +13985,7 @@ declare type UnpivotColumns = {
|
|
|
13944
13985
|
*/
|
|
13945
13986
|
declare type Update = {
|
|
13946
13987
|
table: TableRef;
|
|
13988
|
+
hint: Hint | null;
|
|
13947
13989
|
/**
|
|
13948
13990
|
* Additional tables for multi-table UPDATE (MySQL syntax)
|
|
13949
13991
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1728,6 +1728,10 @@ declare type ColumnDef = {
|
|
|
1728
1728
|
* MySQL: ON UPDATE expression (e.g., ON UPDATE CURRENT_TIMESTAMP)
|
|
1729
1729
|
*/
|
|
1730
1730
|
on_update?: Expression | null;
|
|
1731
|
+
/**
|
|
1732
|
+
* MySQL: column VISIBLE/INVISIBLE modifier.
|
|
1733
|
+
*/
|
|
1734
|
+
visible?: boolean | null;
|
|
1731
1735
|
/**
|
|
1732
1736
|
* Named constraint for UNIQUE (e.g., CONSTRAINT must_be_different UNIQUE)
|
|
1733
1737
|
*/
|
|
@@ -2325,6 +2329,10 @@ declare type CreateFunction = {
|
|
|
2325
2329
|
* Original order of function properties (SET, AS, LANGUAGE, etc.)
|
|
2326
2330
|
*/
|
|
2327
2331
|
property_order?: Array<FunctionPropertyKind>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Hive: USING JAR|FILE|ARCHIVE '...'
|
|
2334
|
+
*/
|
|
2335
|
+
using_resources?: Array<FunctionUsingResource>;
|
|
2328
2336
|
/**
|
|
2329
2337
|
* Databricks: ENVIRONMENT (dependencies = '...', environment_version = '...')
|
|
2330
2338
|
*/
|
|
@@ -2333,6 +2341,18 @@ declare type CreateFunction = {
|
|
|
2333
2341
|
* HANDLER 'handler_function' clause (Databricks)
|
|
2334
2342
|
*/
|
|
2335
2343
|
handler?: string | null;
|
|
2344
|
+
/**
|
|
2345
|
+
* True when the HANDLER clause used Snowflake-style `HANDLER = 'fn'`
|
|
2346
|
+
*/
|
|
2347
|
+
handler_uses_eq?: boolean;
|
|
2348
|
+
/**
|
|
2349
|
+
* Snowflake: RUNTIME_VERSION='3.11'
|
|
2350
|
+
*/
|
|
2351
|
+
runtime_version?: string | null;
|
|
2352
|
+
/**
|
|
2353
|
+
* Snowflake: PACKAGES=('pkg1', 'pkg2')
|
|
2354
|
+
*/
|
|
2355
|
+
packages?: Array<string> | null;
|
|
2336
2356
|
/**
|
|
2337
2357
|
* PARAMETER STYLE clause (e.g., PANDAS for Databricks)
|
|
2338
2358
|
*/
|
|
@@ -2546,6 +2566,10 @@ declare type CreateTable = {
|
|
|
2546
2566
|
* Whether this is a SHALLOW CLONE (Databricks/Delta Lake)
|
|
2547
2567
|
*/
|
|
2548
2568
|
shallow_clone: boolean;
|
|
2569
|
+
/**
|
|
2570
|
+
* Whether this is an explicit DEEP CLONE (Databricks/Delta Lake)
|
|
2571
|
+
*/
|
|
2572
|
+
deep_clone: boolean;
|
|
2549
2573
|
/**
|
|
2550
2574
|
* Leading comments before the statement
|
|
2551
2575
|
*/
|
|
@@ -2741,6 +2765,10 @@ declare type CreateView = {
|
|
|
2741
2765
|
* Snowflake: COMMENT = 'text'
|
|
2742
2766
|
*/
|
|
2743
2767
|
comment?: string | null;
|
|
2768
|
+
/**
|
|
2769
|
+
* Snowflake: WITH ROW ACCESS POLICY ... clause
|
|
2770
|
+
*/
|
|
2771
|
+
row_access_policy?: string | null;
|
|
2744
2772
|
/**
|
|
2745
2773
|
* Snowflake: TAG (name='value', ...)
|
|
2746
2774
|
*/
|
|
@@ -3367,6 +3395,7 @@ export declare function del(tableName: string): DeleteBuilder;
|
|
|
3367
3395
|
*/
|
|
3368
3396
|
declare type Delete = {
|
|
3369
3397
|
table: TableRef;
|
|
3398
|
+
hint: Hint | null;
|
|
3370
3399
|
/**
|
|
3371
3400
|
* ClickHouse: ON CLUSTER clause for distributed DDL
|
|
3372
3401
|
*/
|
|
@@ -6517,7 +6546,7 @@ declare type FunctionParameter = {
|
|
|
6517
6546
|
/**
|
|
6518
6547
|
* Types of properties in CREATE FUNCTION for tracking their original order
|
|
6519
6548
|
*/
|
|
6520
|
-
declare type FunctionPropertyKind = "Set" | "As" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "ParameterStyle";
|
|
6549
|
+
declare type FunctionPropertyKind = "Set" | "As" | "Using" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "RuntimeVersion" | "Packages" | "ParameterStyle";
|
|
6521
6550
|
|
|
6522
6551
|
/**
|
|
6523
6552
|
* Function security (DEFINER, INVOKER, or NONE)
|
|
@@ -6542,6 +6571,14 @@ declare type FunctionSetValue = {
|
|
|
6542
6571
|
};
|
|
6543
6572
|
} | "FromCurrent";
|
|
6544
6573
|
|
|
6574
|
+
/**
|
|
6575
|
+
* Hive CREATE FUNCTION resource in a USING clause
|
|
6576
|
+
*/
|
|
6577
|
+
declare type FunctionUsingResource = {
|
|
6578
|
+
kind: string;
|
|
6579
|
+
uri: string;
|
|
6580
|
+
};
|
|
6581
|
+
|
|
6545
6582
|
/**
|
|
6546
6583
|
* GapFill
|
|
6547
6584
|
*/
|
|
@@ -10498,6 +10535,10 @@ declare type Pragma = {
|
|
|
10498
10535
|
* Optional arguments for function-style pragmas (PRAGMA name(arg))
|
|
10499
10536
|
*/
|
|
10500
10537
|
args: Array<Expression>;
|
|
10538
|
+
/**
|
|
10539
|
+
* Whether this pragma should be generated using assignment syntax.
|
|
10540
|
+
*/
|
|
10541
|
+
use_assignment_syntax: boolean;
|
|
10501
10542
|
};
|
|
10502
10543
|
|
|
10503
10544
|
/**
|
|
@@ -13944,6 +13985,7 @@ declare type UnpivotColumns = {
|
|
|
13944
13985
|
*/
|
|
13945
13986
|
declare type Update = {
|
|
13946
13987
|
table: TableRef;
|
|
13988
|
+
hint: Hint | null;
|
|
13947
13989
|
/**
|
|
13948
13990
|
* Additional tables for multi-table UPDATE (MySQL syntax)
|
|
13949
13991
|
*/
|
|
Binary file
|