Skip to content

Commit 5deed19

Browse files
committed
Upgrade chDB version to v3.6.0
1 parent 5eb8870 commit 5deed19

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
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

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)