Expose dataview's methods to bypass concrete overview's implementations
This commit is contained in:
@@ -34,4 +34,24 @@ module.exports = class Histogram {
|
||||
getResult (psql, override, callback) {
|
||||
this.dataview.getResult(psql, override, callback);
|
||||
}
|
||||
|
||||
// In order to keep previous behaviour with overviews,
|
||||
// we have to expose the following methods to bypass
|
||||
// the concrete overview implementation
|
||||
|
||||
sql (psql, override, callback) {
|
||||
this.dataview.sql(psql, override, callback);
|
||||
}
|
||||
|
||||
format (result, override) {
|
||||
return this.dataview.format(result, override);
|
||||
}
|
||||
|
||||
getType () {
|
||||
return this.dataview.getType();
|
||||
}
|
||||
|
||||
toString () {
|
||||
return this.dataview.toString();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user