Skip to content

Commit efd223e

Browse files
authored
Merge pull request #2 from shengxinjing/main
2 parents 44723ee + cd6b254 commit efd223e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ function db(format, path) {
77
this.path = path || '.';
88

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

17-
return this; (implicitly)
13+
return this;
1814
}
1915

2016
module.exports = { chdb, db };

0 commit comments

Comments
 (0)