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

Commit 5d7f96eb by sdepold

first steps for addIndex

1 parent 96a69c2c
Showing with 26 additions and 0 deletions
......@@ -184,6 +184,32 @@ var QueryGenerator = module.exports = {
return Utils._.template(query)(replacements)
},
addIndexQuery: function(tableName, attributes, options) {
// var sql = [
// "CREATE <%= indicesType %> INDEX <%= name %>",
// "<%= indexType %> ON <%= tableName %> <%= columns %>",
// "<%= parser %>"
// ].join(' ')
// return Utils._.template(sql)({
// indicesType: options.indicesType || '',
// name: options.indexName,
// indexType: options.indexType ? 'USING ' + options.indexType : undefined,
// })
/*
CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name
[USING index_type]
ON tbl_name (index_col_name,...)
[WITH PARSER parser_name]
index_col_name:
col_name [(length)] [ASC | DESC]
*/
},
/*
Takes something and transforms it into values of a where condition.
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!