Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/chdb-node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [16.x, 18.x]
node-version: [18.x, 20.x, 22.x]
steps:
- name: Use Python 3.11
uses: actions/setup-python@v2
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Run tests
run: npm run test
- name: Publish to npm
if: github.ref == 'refs/heads/main' && matrix.node-version == '16.x' && matrix.os == 'ubuntu-latest'
if: github.ref == 'refs/heads/main' && matrix.node-version == '18.x' && matrix.os == 'ubuntu-latest'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ build
.vscode/
libchdb.so
chdb.h
chdb.hpp
60 changes: 36 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chdb",
"version": "1.3.0",
"version": "1.4.0",
"description": "chDB bindings for nodejs",
"main": "index.js",
"repository": {
Expand All @@ -19,6 +19,9 @@
"email": "[email protected]"
},
"license": "Apache-2.0",
"engines": {
"node": ">=18.0.0"
},
"devDependencies": {
"chai": "^4.5.0",
"mocha": "^10.7.3",
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('chDB Queries', function () {

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

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

it('should return result of the query made using bind parameters', () => {
const ret = session.queryBind("SELECT * from testtable where id > {id: UInt32}", { id: 2}, "CSV");
const ret = session.queryBind("SELECT * from testdb.testtable where id > {id: UInt32}", { id: 2}, "CSV");
console.log("Bind Session result:", ret);
expect(ret).to.not.include('1');
expect(ret).to.not.include('2');
Expand Down
2 changes: 1 addition & 1 deletion update_libchdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd "$(dirname "$0")"

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

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