@loaders.gl/sql 5.0.0-beta.1 → 5.0.0-beta.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/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.
@@ -41,8 +41,8 @@ export declare const DuckDBSQLSource: {
41
41
  };
42
42
  readonly defaultOptions: Omit<Required<{
43
43
  [x: string]: Required<Record<string, unknown> | AbortSignal | ((progress: import("@loaders.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
44
- signal?: Required<AbortSignal | undefined>;
45
44
  onProgress?: Required<((progress: import("@loaders.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
45
+ signal?: Required<AbortSignal | 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.1" !== 'undefined' ? "5.0.0-beta.1" : 'latest';
10
+ const VERSION = typeof "5.0.0-beta.4" !== 'undefined' ? "5.0.0-beta.4" : '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.1" : "latest";
3294
+ var VERSION2 = true ? "5.0.0-beta.4" : "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.1" : "latest";
3611
+ var VERSION3 = true ? "5.0.0-beta.4" : "latest";
3612
3612
  var SnowflakeSQLSource = {
3613
3613
  dataType: null,
3614
3614
  batchType: null,
@@ -40,8 +40,8 @@ export declare const SnowflakeSQLSource: {
40
40
  };
41
41
  readonly defaultOptions: Omit<Required<{
42
42
  [x: string]: Required<Record<string, unknown> | AbortSignal | ((progress: import("@loaders.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
43
- signal?: Required<AbortSignal | undefined>;
44
43
  onProgress?: Required<((progress: import("@loaders.gl/core/worker-utils").WorkerProgress) => void) | undefined>;
44
+ signal?: Required<AbortSignal | 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.1" !== 'undefined' ? "5.0.0-beta.1" : 'latest';
8
+ const VERSION = typeof "5.0.0-beta.4" !== 'undefined' ? "5.0.0-beta.4" : '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": "Framework-independent SQL data sources",
4
- "version": "5.0.0-beta.1",
3
+ "description": "DuckDB and Snowflake SQL data sources and portable SQL predicate parsing",
4
+ "version": "5.0.0-beta.4",
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": "89312301ed9e8ec89a58501c052a38284d1570c1"
73
+ "gitHead": "c9420f06e870fa353889d55b684e3588d24574c2"
73
74
  }