@sap-devx/inquirer-gui-hrtt-plugin
v0.0.1
Published
SAP HANA Runtime Tools plugin for inquirer-gui
Downloads
8
Readme
Remote Object Plugin for Inquirer-gui
This inquirer-gui plugin enables selecting a SAP HANA remote object.
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`
}];
}
}