UNPKG

sql-cli

Version:

Cross platform command line interface for SQL Server

23 lines (17 loc) 549 B
(function () { "use strict"; var Utils = require('./utils'), Queries = require('./queries'); class SprocsCommand { constructor(db) { this.db = db; this.prefix = '.sprocs'; this.usage = '.sprocs'; this.description = 'Lists all the stored procedures'; } run(messages, writer) { return Utils.runQuery(messages, writer, this.db.query.bind(this.db, Queries.listSprocsSql())); } } module.exports = exports = SprocsCommand; } ());