Skip to content

Commit

Permalink
Added compose query
Browse files Browse the repository at this point in the history
  • Loading branch information
gicaz committed Nov 21, 2016
1 parent 00ebc55 commit a6a2682
Show file tree
Hide file tree
Showing 4 changed files with 667 additions and 147 deletions.
6 changes: 6 additions & 0 deletions lib/crud/WtCrudManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"use strict";

let WtKnexCrudStrategy = require("./WtCrudStrategies.js").WtKnexCrudStrategy;
let WtPromiseCrudStrategy = require("./WtCrudStrategies.js").WtPromiseCrudStrategy;

/**
* @class
Expand All @@ -24,6 +25,7 @@ class WtCrudManager {
strategy = new WtKnexCrudStrategy(fileSystemConnection);
}
this.strategy = strategy;
this.streamStrategy = new WtPromiseCrudStrategy(fileSystemConnection);
}

/**
Expand Down Expand Up @@ -134,6 +136,10 @@ class WtCrudManager {
}

}

queryStream(queryObj, next){
return this.streamStrategy.queryStream(queryObj.statement, queryObj.parameters, next);
}
}

module.exports = WtCrudManager;
Loading

0 comments on commit a6a2682

Please sign in to comment.