mysql-activerecord
Advanced tools
Comparing version 0.8.1 to 0.8.2
10
index.js
@@ -67,2 +67,3 @@ /** | ||
groupByClause = '', | ||
havingClause = '', | ||
limitClause = -1, | ||
@@ -78,2 +79,3 @@ offsetClause = -1, | ||
groupByClause = ''; | ||
havingClause = '', | ||
limitClause = -1; | ||
@@ -258,2 +260,7 @@ offsetClause = -1; | ||
this.having = function(set) { | ||
havingClause = this.comma_seperated_arguments(set); | ||
return that; | ||
}; | ||
this.order_by = function(set) { | ||
@@ -357,2 +364,3 @@ orderByClause = this.comma_separated_arguments(set); | ||
+ (groupByClause !== '' ? ' GROUP BY ' + groupByClause : '') | ||
+ (havingClause !== '' ? ' HAVING ' + havingClause : '') | ||
+ (orderByClause !== '' ? ' ORDER BY ' + orderByClause : '') | ||
@@ -443,2 +451,2 @@ + (limitClause !== -1 ? ' LIMIT ' + limitClause : '') | ||
return this; | ||
} | ||
} |
{ | ||
"name" : "mysql-activerecord", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"author": "Martin Tajur <martin@tajur.ee>", | ||
@@ -5,0 +5,0 @@ "description": "MySQL ActiveRecord pattern implementation on top of the mysql module.", |
@@ -52,2 +52,3 @@ MySQL ActiveRecord Adapter for Node.js | ||
* COUNT | ||
* HAVING | ||
@@ -54,0 +55,0 @@ Methods |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24237
382
368