Skip to content

Commit 884d7b5

Browse files
authored
Merge pull request #28 from wudidapaopao/upgrade-chdb-version
Upgrade chDB version to v3.6.0
2 parents 5eb8870 + 24898e1 commit 884d7b5

File tree

6 files changed

+46
-30
lines changed

6 files changed

+46
-30
lines changed

.github/workflows/chdb-node-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest]
20-
node-version: [16.x, 18.x]
20+
node-version: [18.x, 20.x, 22.x]
2121
steps:
2222
- name: Use Python 3.11
2323
uses: actions/setup-python@v2
@@ -34,7 +34,7 @@ jobs:
3434
- name: Run tests
3535
run: npm run test
3636
- name: Publish to npm
37-
if: github.ref == 'refs/heads/main' && matrix.node-version == '16.x' && matrix.os == 'ubuntu-latest'
37+
if: github.ref == 'refs/heads/main' && matrix.node-version == '18.x' && matrix.os == 'ubuntu-latest'
3838
run: npm publish
3939
env:
4040
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build
55
.vscode/
66
libchdb.so
77
chdb.h
8+
chdb.hpp

package-lock.json

Lines changed: 36 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chdb",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "chDB bindings for nodejs",
55
"main": "index.js",
66
"repository": {
@@ -19,6 +19,9 @@
1919
"email": "auxten@clickhouse.com"
2020
},
2121
"license": "Apache-2.0",
22+
"engines": {
23+
"node": ">=18.0.0"
24+
},
2225
"devDependencies": {
2326
"chai": "^4.5.0",
2427
"mocha": "^10.7.3",

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('chDB Queries', function () {
7878

7979
session.query("USE testdb; INSERT INTO testtable VALUES (1), (2), (3);");
8080

81-
const ret = session.query("SELECT * FROM testtable;", "CSV");
81+
const ret = session.query("SELECT * FROM testdb.testtable;", "CSV");
8282
console.log("Session Query Result:", ret);
8383
expect(ret).to.be.a('string');
8484
expect(ret).to.include('1');
@@ -93,7 +93,7 @@ describe('chDB Queries', function () {
9393
});
9494

9595
it('should return result of the query made using bind parameters', () => {
96-
const ret = session.queryBind("SELECT * from testtable where id > {id: UInt32}", { id: 2}, "CSV");
96+
const ret = session.queryBind("SELECT * from testdb.testtable where id > {id: UInt32}", { id: 2}, "CSV");
9797
console.log("Bind Session result:", ret);
9898
expect(ret).to.not.include('1');
9999
expect(ret).to.not.include('2');

update_libchdb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd "$(dirname "$0")"
1010

1111
# Get the newest release version
1212
# LATEST_RELEASE=$(curl --silent "https://api.github.com/repos/chdb-io/chdb/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
13-
LATEST_RELEASE=v2.1.1
13+
LATEST_RELEASE=v3.6.0
1414

1515
# Download the correct version based on the platform
1616
case "$(uname -s)" in

0 commit comments

Comments
 (0)