Socket
Book a DemoInstallSign in
Socket

@sap-devx/inquirer-gui-hrtt-plugin

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-devx/inquirer-gui-hrtt-plugin

SAP HANA Runtime Tools plugin for inquirer-gui

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
7
Maintainers
5
Weekly downloads
 
Created
Source

Remote Object Plugin for Inquirer-gui

This inquirer-gui plugin enables selecting a SAP HANA remote object.

Inquirer-gui Remote Object Selection

It can be used in Visual Studio Code or in Theia.

Sample Question

  {
    type: "checkbox",
    guiType: "remote-object-selection",
    name: "remoteObject",
    message: "Remote Object",
    getDatabases: async () => {
      return ["<NULL>"];
    },
    getSchemas: async () => {
      return ["schema 1", "schema 2"];
    },
    getTypes: async () => {
      return ["TABLE"];
    },
    search: async (database, schema, object, type) => {
      const remoteObjects = [];
      for (let i=0; i<3; i++) {
        remoteObjects.push({
          value: `${i} REMOTE_OBJECT_VALUE`,
          database: `${i}-${database} DATABASE_NAME`,
          schema: `${i}-${schema} SCHEMA`,
          object: `${i}-${object} OBJECT`,
          type: `${i}-${type} TYPE`
        });
      }
      return remoteObjects;
    },
    choices: () => {
      return [{
        value: `REMOTE_OBJECT_VALUE`,
        name: `Run in inquirer-gui`
      }];
    }
  }

Keywords

inquirer

FAQs

Package last updated on 28 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts