@polyglot-sql/sdk 0.3.2 → 0.3.3
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 +1838 -1838
- package/dist/index.d.cts +39 -1
- package/dist/index.d.ts +39 -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
|
*/
|
|
@@ -2741,6 +2761,10 @@ declare type CreateView = {
|
|
|
2741
2761
|
* Snowflake: COMMENT = 'text'
|
|
2742
2762
|
*/
|
|
2743
2763
|
comment?: string | null;
|
|
2764
|
+
/**
|
|
2765
|
+
* Snowflake: WITH ROW ACCESS POLICY ... clause
|
|
2766
|
+
*/
|
|
2767
|
+
row_access_policy?: string | null;
|
|
2744
2768
|
/**
|
|
2745
2769
|
* Snowflake: TAG (name='value', ...)
|
|
2746
2770
|
*/
|
|
@@ -3367,6 +3391,7 @@ export declare function del(tableName: string): DeleteBuilder;
|
|
|
3367
3391
|
*/
|
|
3368
3392
|
declare type Delete = {
|
|
3369
3393
|
table: TableRef;
|
|
3394
|
+
hint: Hint | null;
|
|
3370
3395
|
/**
|
|
3371
3396
|
* ClickHouse: ON CLUSTER clause for distributed DDL
|
|
3372
3397
|
*/
|
|
@@ -6517,7 +6542,7 @@ declare type FunctionParameter = {
|
|
|
6517
6542
|
/**
|
|
6518
6543
|
* Types of properties in CREATE FUNCTION for tracking their original order
|
|
6519
6544
|
*/
|
|
6520
|
-
declare type FunctionPropertyKind = "Set" | "As" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "ParameterStyle";
|
|
6545
|
+
declare type FunctionPropertyKind = "Set" | "As" | "Using" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "RuntimeVersion" | "Packages" | "ParameterStyle";
|
|
6521
6546
|
|
|
6522
6547
|
/**
|
|
6523
6548
|
* Function security (DEFINER, INVOKER, or NONE)
|
|
@@ -6542,6 +6567,14 @@ declare type FunctionSetValue = {
|
|
|
6542
6567
|
};
|
|
6543
6568
|
} | "FromCurrent";
|
|
6544
6569
|
|
|
6570
|
+
/**
|
|
6571
|
+
* Hive CREATE FUNCTION resource in a USING clause
|
|
6572
|
+
*/
|
|
6573
|
+
declare type FunctionUsingResource = {
|
|
6574
|
+
kind: string;
|
|
6575
|
+
uri: string;
|
|
6576
|
+
};
|
|
6577
|
+
|
|
6545
6578
|
/**
|
|
6546
6579
|
* GapFill
|
|
6547
6580
|
*/
|
|
@@ -10498,6 +10531,10 @@ declare type Pragma = {
|
|
|
10498
10531
|
* Optional arguments for function-style pragmas (PRAGMA name(arg))
|
|
10499
10532
|
*/
|
|
10500
10533
|
args: Array<Expression>;
|
|
10534
|
+
/**
|
|
10535
|
+
* Whether this pragma should be generated using assignment syntax.
|
|
10536
|
+
*/
|
|
10537
|
+
use_assignment_syntax: boolean;
|
|
10501
10538
|
};
|
|
10502
10539
|
|
|
10503
10540
|
/**
|
|
@@ -13944,6 +13981,7 @@ declare type UnpivotColumns = {
|
|
|
13944
13981
|
*/
|
|
13945
13982
|
declare type Update = {
|
|
13946
13983
|
table: TableRef;
|
|
13984
|
+
hint: Hint | null;
|
|
13947
13985
|
/**
|
|
13948
13986
|
* Additional tables for multi-table UPDATE (MySQL syntax)
|
|
13949
13987
|
*/
|
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
|
*/
|
|
@@ -2741,6 +2761,10 @@ declare type CreateView = {
|
|
|
2741
2761
|
* Snowflake: COMMENT = 'text'
|
|
2742
2762
|
*/
|
|
2743
2763
|
comment?: string | null;
|
|
2764
|
+
/**
|
|
2765
|
+
* Snowflake: WITH ROW ACCESS POLICY ... clause
|
|
2766
|
+
*/
|
|
2767
|
+
row_access_policy?: string | null;
|
|
2744
2768
|
/**
|
|
2745
2769
|
* Snowflake: TAG (name='value', ...)
|
|
2746
2770
|
*/
|
|
@@ -3367,6 +3391,7 @@ export declare function del(tableName: string): DeleteBuilder;
|
|
|
3367
3391
|
*/
|
|
3368
3392
|
declare type Delete = {
|
|
3369
3393
|
table: TableRef;
|
|
3394
|
+
hint: Hint | null;
|
|
3370
3395
|
/**
|
|
3371
3396
|
* ClickHouse: ON CLUSTER clause for distributed DDL
|
|
3372
3397
|
*/
|
|
@@ -6517,7 +6542,7 @@ declare type FunctionParameter = {
|
|
|
6517
6542
|
/**
|
|
6518
6543
|
* Types of properties in CREATE FUNCTION for tracking their original order
|
|
6519
6544
|
*/
|
|
6520
|
-
declare type FunctionPropertyKind = "Set" | "As" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "ParameterStyle";
|
|
6545
|
+
declare type FunctionPropertyKind = "Set" | "As" | "Using" | "Language" | "Determinism" | "NullInput" | "Security" | "SqlDataAccess" | "Options" | "Environment" | "Handler" | "RuntimeVersion" | "Packages" | "ParameterStyle";
|
|
6521
6546
|
|
|
6522
6547
|
/**
|
|
6523
6548
|
* Function security (DEFINER, INVOKER, or NONE)
|
|
@@ -6542,6 +6567,14 @@ declare type FunctionSetValue = {
|
|
|
6542
6567
|
};
|
|
6543
6568
|
} | "FromCurrent";
|
|
6544
6569
|
|
|
6570
|
+
/**
|
|
6571
|
+
* Hive CREATE FUNCTION resource in a USING clause
|
|
6572
|
+
*/
|
|
6573
|
+
declare type FunctionUsingResource = {
|
|
6574
|
+
kind: string;
|
|
6575
|
+
uri: string;
|
|
6576
|
+
};
|
|
6577
|
+
|
|
6545
6578
|
/**
|
|
6546
6579
|
* GapFill
|
|
6547
6580
|
*/
|
|
@@ -10498,6 +10531,10 @@ declare type Pragma = {
|
|
|
10498
10531
|
* Optional arguments for function-style pragmas (PRAGMA name(arg))
|
|
10499
10532
|
*/
|
|
10500
10533
|
args: Array<Expression>;
|
|
10534
|
+
/**
|
|
10535
|
+
* Whether this pragma should be generated using assignment syntax.
|
|
10536
|
+
*/
|
|
10537
|
+
use_assignment_syntax: boolean;
|
|
10501
10538
|
};
|
|
10502
10539
|
|
|
10503
10540
|
/**
|
|
@@ -13944,6 +13981,7 @@ declare type UnpivotColumns = {
|
|
|
13944
13981
|
*/
|
|
13945
13982
|
declare type Update = {
|
|
13946
13983
|
table: TableRef;
|
|
13984
|
+
hint: Hint | null;
|
|
13947
13985
|
/**
|
|
13948
13986
|
* Additional tables for multi-table UPDATE (MySQL syntax)
|
|
13949
13987
|
*/
|
|
Binary file
|