code: function() {
  		var query = this.query;
  		var args = [];
  		var text = "SELECT ";
  		if (query.fields) {
  			text += lib.builder.makeSelect(query);
  		} else {
  			text += "*";
  		}
  		if (query.from) text += lib.builder.makeFrom(query,args,Query);
  		if (query.join) text += lib.builder.makeJoin(query);
  		if (query.where) text += lib.builder.makeWhere(query,args);
  		if (query.group) text += lib.builder.makeGroup(query);
  		if (query.order) text += lib.builder.makeOrder(query);
  		if (query.limit) text += lib.builder.makeLimit(query);
  		return {
  			type: "select",
  			text: text,
  			args: args,
  		};
  	}
docs: .toQuery()