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

Commit e21579b8 by sdepold

showIndex works

1 parent 997a235a
......@@ -226,6 +226,14 @@ module.exports = (function() {
]).join(' ')
},
showIndexQuery: function(tableName, options) {
var sql = "SHOW INDEX FROM <%= tableName %><%= options %>"
return Utils._.template(sql)({
tableName: tableName,
options: (options || {}).database ? ' FROM ' + options.database : ''
})
},
/*
Takes something and transforms it into values of a where condition.
*/
......
......@@ -153,7 +153,7 @@ module.exports = (function() {
Parameters:
- tableName: Name of an existing table.
- options:
- databaseName: Name of the database.
- database: Name of the database.
*/
showIndexQuery: function(tableName, options) {
throwMethodUndefined('showIndexQuery')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!