Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
require.resolve('@babel/preset-env'),
{
targets: {
node: '8',
node: '18',
},
},
],
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- name: Install dependencies
run: yarn install
- name: Compile
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 1.3.2
- v1.3.2 DuckDB Support

## 1.0.0
- v1.0.0 DuckDB Support

## 0.10.2
- v0.10.2 DuckDB support
- Changed semantic versioning to follow DuckDB's
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Query and explore [DuckDB](https://duckdb.org/) databases in VSCode.

## Latest DuckDB Support: v1.0.0
## Latest DuckDB Support: v1.3.2

A VSCode extension that extends [SQLTools](https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools), with a driver for DuckDB.

Expand All @@ -16,7 +16,7 @@ Install from the [VSCode Marketplace](https://marketplace.visualstudio.com/items

## Features

- Latest DuckDB support (currently 1.0.0)
- Latest DuckDB support (currently 1.3.2)
- **Connect** to a local, in-memory or MotherDuck (via service token) DuckDB instance
- **Run queries** against a DuckDB instance
- **Explore DB** tables and columns in the sidebar
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sqltools-duckdb-driver",
"displayName": "DuckDB Driver for SQLTools",
"description": "Latest DuckDB support: Run queries and explore your DuckDB Database in VSCode",
"version": "1.0.0",
"version": "1.3.2",
"engines": {
"vscode": "^1.87.0"
},
Expand Down Expand Up @@ -43,19 +43,19 @@
],
"main": "./out/extension.js",
"dependencies": {
"duckdb-async": "1.0.0"
"duckdb-async": "1.3.2"
},
"devDependencies": {
"@babel/preset-env": "^7.24.0",
"@mapbox/node-pre-gyp": "^1.0.11",
"@babel/preset-env": "^7.28.3",
"@mapbox/node-pre-gyp": "^2.0.0",
"@sqltools/base-driver": "latest",
"@sqltools/types": "latest",
"@types/node": "^20.11.23",
"@types/node": "^24.2.1",
"@types/vscode": "^1.87.0",
"esbuild": "^0.20.1",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"uuid": "^9.0.1",
"@vscode/vsce": "2.26.0"
"@vscode/vsce": "^3.6.0",
"esbuild": "^0.25.9",
"tsup": "^8.5.0",
"typescript": "^5.9.2",
"uuid": "^11.1.0"
}
}
}
16 changes: 15 additions & 1 deletion src/ls/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class DuckDBDriver extends AbstractDriver<DriverLib, DriverOption
public readonly deps: typeof AbstractDriver.prototype['deps'] = [{
type: AbstractDriver.CONSTANTS.DEPENDENCY_PACKAGE,
name: 'duckdb-async',
version: '0.10.2',
version: '1.3.2',
}];

queries = queries;
Expand Down Expand Up @@ -57,6 +57,20 @@ export default class DuckDBDriver extends AbstractDriver<DriverLib, DriverOption
if (typeof value === 'bigint') {
return Number(value);
}
if (Array.isArray(value)) {
// Recursively process arrays
return value.map(item => this.convertBigIntToNumber(item));
}
if (value !== null && typeof value === 'object') {
// Recursively process objects/structs
const converted = {};
for (const key in value) {
if (value.hasOwnProperty(key)) {
converted[key] = this.convertBigIntToNumber(value[key]);
}
}
return converted;
}
return value;
}

Expand Down
Loading