2015-12-03 20:43:42 -05:00
|
|
|
'use strict';
|
2015-12-02 13:01:31 -05:00
|
|
|
|
|
|
|
/** @module State */
|
2015-12-03 20:43:42 -05:00
|
|
|
module.exports = class State {
|
|
|
|
constructor() {
|
|
|
|
// Arrays/maps
|
|
|
|
this.queryMap = [];
|
|
|
|
this.values = [];
|
|
|
|
this.whereValues = [];
|
|
|
|
this.setArrayKeys = [];
|
|
|
|
this.orderArray = [];
|
|
|
|
this.groupArray = [];
|
|
|
|
this.havingMap = [];
|
|
|
|
this.whereMap = [];
|
|
|
|
this.rawWhereValues = [];
|
2015-12-02 13:01:31 -05:00
|
|
|
|
2015-12-03 20:43:42 -05:00
|
|
|
// Partials
|
|
|
|
this.selectString = '';
|
|
|
|
this.fromString = '';
|
|
|
|
this.setString = '';
|
|
|
|
this.orderString = '';
|
|
|
|
this.groupString = '';
|
2015-12-02 13:01:31 -05:00
|
|
|
|
2015-12-03 20:43:42 -05:00
|
|
|
// Other various values
|
|
|
|
this.limit = null;
|
|
|
|
this.offset = null;
|
|
|
|
}
|
2015-12-07 15:58:31 -05:00
|
|
|
};
|
|
|
|
|
2015-12-03 20:43:42 -05:00
|
|
|
// End of module State
|