不要怂,就是干,撸起袖子干!

Commit ed5e2e9e by sdepold

removed obsolete functions

1 parent 011f70ef
......@@ -85,15 +85,6 @@ var QueryGenerator = module.exports = {
return Utils._.template(query)(options)
},
countQuery: function(tableName, options) {
return QueryGenerator.selectQuery(tableName, options).replace("*", "count(*)")
},
maxQuery: function(tableName, field,options) {
return QueryGenerator.selectQuery(tableName ,options).replace("*", "max("+field+") as max")
},
minQuery: function(tableName, field,options) {
return QueryGenerator.selectQuery(tableName ,options).replace("*", "min("+field+") as min")
},
/*
Returns an insert into command. Parameters: table name + hash of attribute-value-pairs.
*/
......
......@@ -33,30 +33,6 @@ module.exports = (function() {
},
/*
Returns a query for counting elements in the table <tableName>.
Options are the very same as in selectQuery.
*/
countQuery: function(tableName, options) {
throw new Error('Define the method countQuery!')
},
/*
Returns a query for getting the max value of a field in the table <tableName>.
Options are the very same as in selectQuery.
*/
maxQuery: function(tableName, field, options) {
throw new Error('Define the method maxQuery!')
},
/*
Returns a query for getting the min value of a field in the table <tableName>.
Options are the very same as in selectQuery.
*/
minQuery: function(tableName, field, options) {
throw new Error('Define the method minQuery!')
},
/*
Returns an insert into command. Parameters: table name + hash of attribute-value-pairs.
*/
insertQuery: function(tableName, attrValueHash) {
......
......@@ -127,6 +127,5 @@ module.exports = (function() {
}
}
return Migration
})()
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!