All files / lib State.js

100% Statements 17/17
100% Branches 0/0
100% Functions 1/1
100% Lines 17/17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32              223x 223x 223x 223x 223x 223x 223x 223x 223x     223x 223x 223x 223x 223x     223x 223x       6x  
/**
 * Class for objects containing the query builder state
 * @private
 */
class State {
	constructor () {
		// Arrays/maps
		this.queryMap = [];
		this.values = [];
		this.whereValues = [];
		this.setArrayKeys = [];
		this.orderArray = [];
		this.groupArray = [];
		this.havingMap = [];
		this.whereMap = [];
		this.rawWhereValues = [];
 
		// Partials
		this.selectString = '';
		this.fromString = '';
		this.setString = '';
		this.orderString = '';
		this.groupString = '';
 
		// Other various values
		this.limit = null;
		this.offset = null;
	}
}
 
module.exports = State;