UNPKG

censql

Version:

A NodeJS command line client for SAP HANA

13 lines (9 loc) 378 B
var ServicesCommandHandler = function(){ this.description = ""; } ServicesCommandHandler.prototype.run = function(command, cParts, conn, screen, callback){ conn.exec("conn", "SELECT * FROM SYS.M_SERVICES", function(err, data) { callback([err == null ? 0 : 1, err == null ? data : err, err == null ? "default" : "json"]); }) } module.exports = ServicesCommandHandler;