@loaders.gl/sql 5.0.0-beta.1 → 5.0.0-beta.2
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/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @loaders.gl/sql
|
|
2
2
|
|
|
3
|
+
DuckDB and Snowflake SQL data sources and portable SQL predicate parsing.
|
|
4
|
+
|
|
5
|
+
Supported formats: SQL, Arrow.
|
|
6
|
+
|
|
3
7
|
This module contains SQL-oriented `DataSource` implementations for external and embedded databases.
|
|
4
8
|
It also provides a database-runtime-free parser for turning a small SQL `WHERE` expression into a
|
|
5
9
|
portable predicate AST.
|
|
@@ -40,9 +40,9 @@ export declare const DuckDBSQLSource: {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
readonly defaultOptions: Omit<Required<{
|
|
43
|
-
[x: string]: Required<Record<string, unknown> | AbortSignal | ((progress: import("@
|
|
43
|
+
[x: string]: Required<Record<string, unknown> | AbortSignal | ((progress: import("@math.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
|
|
44
44
|
signal?: Required<AbortSignal | undefined>;
|
|
45
|
-
onProgress?: Required<((progress: import("@
|
|
45
|
+
onProgress?: Required<((progress: import("@math.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
|
|
46
46
|
_scan?: Required<Readonly<{
|
|
47
47
|
predicate?: import("@loaders.gl/core/loader-utils").ColumnarPredicate;
|
|
48
48
|
columns?: readonly string[];
|
|
@@ -7,7 +7,7 @@ import { SQLDataSource, SQL_SOURCE_DEFAULT_OPTIONS } from "./sql-source.js";
|
|
|
7
7
|
import { convertRowsToArrowTable, convertSQLColumnsToSchema, escapeSqlString, isNodeRuntime } from "./sql-utils.js";
|
|
8
8
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
9
9
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
10
|
-
const VERSION = typeof "5.0.0-beta.
|
|
10
|
+
const VERSION = typeof "5.0.0-beta.2" !== 'undefined' ? "5.0.0-beta.2" : 'latest';
|
|
11
11
|
/** DuckDB-backed SQL source. */
|
|
12
12
|
export const DuckDBSQLSource = {
|
|
13
13
|
dataType: null,
|
package/dist/index.cjs
CHANGED
|
@@ -3291,7 +3291,7 @@ function throwIfAborted2(signal) {
|
|
|
3291
3291
|
|
|
3292
3292
|
// dist/duckdb-sql-source.js
|
|
3293
3293
|
var import_apache_arrow = require("apache-arrow");
|
|
3294
|
-
var VERSION2 = true ? "5.0.0-beta.
|
|
3294
|
+
var VERSION2 = true ? "5.0.0-beta.2" : "latest";
|
|
3295
3295
|
var DuckDBSQLSource = {
|
|
3296
3296
|
dataType: null,
|
|
3297
3297
|
batchType: null,
|
|
@@ -3608,7 +3608,7 @@ function getDuckDBDatabasePath(url, options) {
|
|
|
3608
3608
|
}
|
|
3609
3609
|
|
|
3610
3610
|
// dist/snowflake-sql-source.js
|
|
3611
|
-
var VERSION3 = true ? "5.0.0-beta.
|
|
3611
|
+
var VERSION3 = true ? "5.0.0-beta.2" : "latest";
|
|
3612
3612
|
var SnowflakeSQLSource = {
|
|
3613
3613
|
dataType: null,
|
|
3614
3614
|
batchType: null,
|
|
@@ -39,9 +39,9 @@ export declare const SnowflakeSQLSource: {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
readonly defaultOptions: Omit<Required<{
|
|
42
|
-
[x: string]: Required<Record<string, unknown> | AbortSignal | ((progress: import("@
|
|
42
|
+
[x: string]: Required<Record<string, unknown> | AbortSignal | ((progress: import("@math.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
|
|
43
43
|
signal?: Required<AbortSignal | undefined>;
|
|
44
|
-
onProgress?: Required<((progress: import("@
|
|
44
|
+
onProgress?: Required<((progress: import("@math.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
|
|
45
45
|
_scan?: Required<Readonly<{
|
|
46
46
|
predicate?: import("@loaders.gl/core/loader-utils").ColumnarPredicate;
|
|
47
47
|
columns?: readonly string[];
|
|
@@ -5,7 +5,7 @@ import { SQLDataSource, SQL_SOURCE_DEFAULT_OPTIONS } from "./sql-source.js";
|
|
|
5
5
|
import { convertRowsToArrowTable, convertSQLColumnsToSchema, getQualifiedTableName } from "./sql-utils.js";
|
|
6
6
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
7
7
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
8
|
-
const VERSION = typeof "5.0.0-beta.
|
|
8
|
+
const VERSION = typeof "5.0.0-beta.2" !== 'undefined' ? "5.0.0-beta.2" : 'latest';
|
|
9
9
|
/** Snowflake-backed SQL source. */
|
|
10
10
|
export const SnowflakeSQLSource = {
|
|
11
11
|
dataType: null,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/sql",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"description": "DuckDB and Snowflake SQL data sources and portable SQL predicate parsing",
|
|
4
|
+
"version": "5.0.0-beta.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"sql",
|
|
16
16
|
"duckdb",
|
|
17
17
|
"snowflake",
|
|
18
|
-
"arrow"
|
|
18
|
+
"arrow",
|
|
19
|
+
"loaders.gl"
|
|
19
20
|
],
|
|
20
21
|
"types": "dist/index.d.ts",
|
|
21
22
|
"main": "dist/index.cjs",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"@duckdb/node-api": "^1.5.2-r.1",
|
|
70
71
|
"zod": "^4.1.12"
|
|
71
72
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "d259e5bc74caf8d75e808314b7fef2fa1bd70ff7"
|
|
73
74
|
}
|