Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Dec 1, 2024
1 parent 6f27f3d commit 87008a5
Show file tree
Hide file tree
Showing 3 changed files with 1,327 additions and 1,299 deletions.
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,41 @@
},
"homepage": "https://github.com/uwdata/falcon#readme",
"dependencies": {
"@duckdb/duckdb-wasm": "^1.20.0",
"@duckdb/duckdb-wasm": "^1.29.0",
"@heavyai/connector": "^7.0.0",
"apache-arrow": "^18.0.0",
"apache-arrow": "^17.0.0",
"cwise": "^1.0.10",
"d3": "^7.8.5",
"d3": "^7.9.0",
"ndarray": "^1.0.19",
"ndarray-imshow": "git+https://github.com/domoritz/ndarray-imshow.git",
"ndarray-linear-interpolate": "^1.0.0",
"ndarray-ops": "^1.2.2",
"ndarray-prefix-sum": "^1.0.0",
"vega": "^5.22.1"
"vega": "^5.30.0"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.9",
"@parcel/config-default": "^2.11.0",
"@parcel/core": "^2.11.0",
"@parcel/transformer-raw": "^2.11.0",
"@parcel/transformer-sass": "^2.11.0",
"@babel/core": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@babel/runtime": "^7.26.0",
"@parcel/config-default": "^2.13.2",
"@parcel/core": "^2.13.2",
"@parcel/transformer-raw": "^2.13.2",
"@parcel/transformer-sass": "^2.13.2",
"@types/cwise": "^1.0.6",
"@types/d3": "^7.4.3",
"@types/jest": "^28.1.7",
"@types/jest": "^29.5.14",
"@types/ndarray": "1.0.14",
"@types/ndarray-ops": "^1.2.7",
"babel-preset-env": "^1.7.0",
"buffer": "^6.0.3",
"gh-pages": "^6.1.1",
"jest": "^28.1.3",
"node-sass": "^8.0.0",
"parcel": "2.11.0",
"prettier": "^3.2.4",
"gh-pages": "^6.2.0",
"jest": "^29.7.0",
"node-sass": "^9.0.0",
"parcel": "2.13.2",
"prettier": "^3.4.1",
"process": "^0.11.10",
"ts-jest": "^28.0.8",
"typescript": "^5.0.4"
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
},
"browserslist": "last 2 Chrome versions, last 2 Firefox versions"
}
8 changes: 6 additions & 2 deletions src/db/duckdb.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import * as duckdb from "@duckdb/duckdb-wasm";
import { Table } from "apache-arrow";
import { compactQuery } from "../util";
import { SQLDB } from "./sql";

export class DuckDB<V extends string, D extends string> extends SQLDB<V, D> {
private db: duckdb.AsyncDuckDB;

constructor(private dataUrl: string, nameMap?: Map<D, string>) {
constructor(
private dataUrl: string,
nameMap?: Map<D, string>
) {
super("data", nameMap);
}

Expand All @@ -31,7 +35,7 @@ export class DuckDB<V extends string, D extends string> extends SQLDB<V, D> {
c.close();
}

protected async query(q: string) {
protected async query(q: string): Promise<Table<any>> {
const t0 = performance.now();

q = q.replaceAll("count(*)", "count(*)::INT");
Expand Down
Loading

0 comments on commit 87008a5

Please sign in to comment.