Skip to content

Commit 2354574

Browse files
Merge branch 'main' into main
2 parents 7a9f33b + efd223e commit 2354574

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ function db(format, path) {
55
this.path = path || ".";
66

77
// add properties to this
8-
this.query = function (query, format) {
9-
return chdb.Execute(query, format || this.format);
10-
}.bind(this);
11-
12-
this.session = function (query, format, path) {
13-
return chdb.Session(query, format || this.format, path || this.path);
14-
}.bind(this);
8+
this.query = (query, format) => chdb.Execute(query, format || this.format);
9+
this.session = (query, format, path) => chdb.Session(query, format || this.format, path || this.path);
1510

1611
return this;
1712
}

0 commit comments

Comments
 (0)