@malloydata/db-duckdb 0.0.79-dev230822044438 → 0.0.79-dev230822184259

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.
@@ -2,7 +2,7 @@ import { MalloyQueryData, PersistSQLResults, PooledConnection, QueryDataRow, Que
2
2
  export interface DuckDBQueryOptions {
3
3
  rowLimit: number;
4
4
  }
5
- export declare type QueryOptionsReader = Partial<DuckDBQueryOptions> | (() => Partial<DuckDBQueryOptions>);
5
+ export type QueryOptionsReader = Partial<DuckDBQueryOptions> | (() => Partial<DuckDBQueryOptions>);
6
6
  export declare abstract class DuckDBCommon implements TestableConnection, PersistSQLResults, StreamingConnection {
7
7
  private queryOptions?;
8
8
  static DEFAULT_QUERY_OPTIONS: DuckDBQueryOptions;
@@ -49,12 +49,6 @@ const unquoteName = (name) => {
49
49
  return name;
50
50
  };
51
51
  class DuckDBCommon {
52
- constructor(queryOptions) {
53
- this.queryOptions = queryOptions;
54
- this.schemaCache = new Map();
55
- this.sqlSchemaCache = new Map();
56
- this.name = 'duckdb_common';
57
- }
58
52
  get dialectName() {
59
53
  return 'duckdb';
60
54
  }
@@ -72,6 +66,12 @@ class DuckDBCommon {
72
66
  return options;
73
67
  }
74
68
  }
69
+ constructor(queryOptions) {
70
+ this.queryOptions = queryOptions;
71
+ this.schemaCache = new Map();
72
+ this.sqlSchemaCache = new Map();
73
+ this.name = 'duckdb_common';
74
+ }
75
75
  isPool() {
76
76
  return false;
77
77
  }
@@ -1,7 +1,7 @@
1
1
  import * as duckdb from '@malloydata/duckdb-wasm';
2
2
  import { QueryDataRow, RunSQLOptions, StructDef, SQLBlock } from '@malloydata/malloy';
3
3
  import { DuckDBCommon, QueryOptionsReader } from './duckdb_common';
4
- declare type RemoteFileCallback = (tableName: string) => Promise<Uint8Array | undefined>;
4
+ type RemoteFileCallback = (tableName: string) => Promise<Uint8Array | undefined>;
5
5
  export declare abstract class DuckDBWASMConnection extends DuckDBCommon {
6
6
  readonly name: string;
7
7
  private databasePath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-duckdb",
3
- "version": "0.0.79-dev230822044438",
3
+ "version": "0.0.79-dev230822184259",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@malloydata/duckdb-wasm": "0.0.2",
44
- "@malloydata/malloy": "^0.0.79-dev230822044438",
44
+ "@malloydata/malloy": "^0.0.79-dev230822184259",
45
45
  "apache-arrow": "^11.0.0",
46
46
  "duckdb": "0.8.1",
47
47
  "web-worker": "^1.2.0"