-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
707c83e
commit 8fb9a06
Showing
15 changed files
with
228 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export function init(): Promise<(typeof import("./containers.js") | typeof import("./dataTypes.js") | typeof import("./featureUsage.js") | typeof import("./functions.js") | typeof import("./hanaCloudHDIInstances.js") | typeof import("./indexes.js") | typeof import("./inspectTable.js") | typeof import("./querySimple.js") | typeof import("./hanaCloudSBSSInstances.js") | typeof import("./schemas.js") | typeof import("./hanaCloudSchemaInstances.js") | typeof import("./hanaCloudSecureStoreInstances.js") | typeof import("./tables.js") | typeof import("./hanaCloudUPSInstances.js") | typeof import("./version.js") | typeof import("./activateHDI.js") | typeof import("./adminHDI.js") | typeof import("./adminHDIGroup.js") | typeof import("./callProcedure.js") | typeof import("./certificates.js") | typeof import("./cds.js") | typeof import("./openChangeLog.js") | typeof import("./changeLog.js") | typeof import("./changeLogUI.js") | typeof import("./connect.js") | typeof import("./containersUI.js") | typeof import("./copy2DefaultEnv.js") | typeof import("./copy2Env.js") | typeof import("./copy2Secrets.js") | typeof import("./createContainer.js") | typeof import("./createGroup.js") | typeof import("./createContainerUsers.js") | typeof import("./createJWT.js") | typeof import("./createModule.js") | typeof import("./createXSAAdmin.js") | typeof import("./dataTypesUI.js") | typeof import("./dataVolumes.js") | typeof import("./disks.js") | typeof import("./dropContainer.js") | typeof import("./dropGroup.js") | typeof import("./features.js") | typeof import("./featuresUI.js") | typeof import("./featureUsageUI.js") | typeof import("./functionsUI.js") | typeof import("./hanaCloudHDIInstancesUI.js") | typeof import("./hanaCloudInstances.js") | typeof import("./hanaCloudStart.js") | typeof import("./hanaCloudStop.js") | typeof import("./hdbsql.js") | typeof import("./hostInformation.js") | typeof import("./indexesUI.js") | typeof import("./iniContents.js") | typeof import("./iniFiles.js") | typeof import("./inspectFunction.js") | typeof import("./inspectIndex.js") | typeof import("./inspectJWT.js") | typeof import("./inspectLibMember.js") | typeof import("./inspectLibrary.js") | typeof import("./inspectProcedure.js") | typeof import("./inspectTableUI.js") | typeof import("./inspectTrigger.js") | typeof import("./inspectUser.js") | typeof import("./inspectView.js") | typeof import("./libraries.js") | typeof import("./massConvert.js") | typeof import("./massConvertUI.js") | typeof import("./massRename.js") | typeof import("./massUsers.js") | typeof import("./matrix.js") | typeof import("./objects.js") | typeof import("./openBAS.js") | typeof import("./openDBExplorer.js") | typeof import("./ports.js") | typeof import("./privilegeError.js") | typeof import("./procedures.js") | typeof import("./querySimpleUI.js") | typeof import("./readMe.js") | typeof import("./readMeUI.js") | typeof import("./openReadMe.js") | typeof import("./reclaim.js") | typeof import("./rick.js") | typeof import("./roles.js") | typeof import("./hanaCloudSBSSInstancesUI.js") | typeof import("./schemasUI.js") | typeof import("./hanaCloudSchemaInstancesUI.js") | typeof import("./hanaCloudSecureStoreInstancesUI.js") | typeof import("./connectViaServiceKey.js") | typeof import("./sequences.js") | typeof import("./status.js") | typeof import("./synonyms.js") | typeof import("./systemInfo.js") | typeof import("./systemInfoUI.js") | typeof import("./tablesUI.js") | typeof import("./traces.js") | typeof import("./traceContents.js") | typeof import("./triggers.js") | typeof import("./UI.js") | typeof import("./hanaCloudUPSInstancesUI.js") | typeof import("./users.js") | typeof import("./views.js") | typeof import("./btp.js") | typeof import("./btpSubs.js") | typeof import("./btpInfo.js") | typeof import("./issue.js"))[]>; | ||
export function init(): Promise<(typeof import("./containers.js") | typeof import("./dataTypes.js") | typeof import("./featureUsage.js") | typeof import("./functions.js") | typeof import("./hanaCloudHDIInstances.js") | typeof import("./indexes.js") | typeof import("./inspectTable.js") | typeof import("./querySimple.js") | typeof import("./hanaCloudSBSSInstances.js") | typeof import("./schemas.js") | typeof import("./hanaCloudSchemaInstances.js") | typeof import("./hanaCloudSecureStoreInstances.js") | typeof import("./tables.js") | typeof import("./tablesPG.js") | typeof import("./tablesSQLite.js") | typeof import("./hanaCloudUPSInstances.js") | typeof import("./version.js") | typeof import("./activateHDI.js") | typeof import("./adminHDI.js") | typeof import("./adminHDIGroup.js") | typeof import("./callProcedure.js") | typeof import("./certificates.js") | typeof import("./cds.js") | typeof import("./openChangeLog.js") | typeof import("./changeLog.js") | typeof import("./changeLogUI.js") | typeof import("./connect.js") | typeof import("./containersUI.js") | typeof import("./copy2DefaultEnv.js") | typeof import("./copy2Env.js") | typeof import("./copy2Secrets.js") | typeof import("./createContainer.js") | typeof import("./createGroup.js") | typeof import("./createContainerUsers.js") | typeof import("./createJWT.js") | typeof import("./createModule.js") | typeof import("./createXSAAdmin.js") | typeof import("./dataTypesUI.js") | typeof import("./dataVolumes.js") | typeof import("./disks.js") | typeof import("./dropContainer.js") | typeof import("./dropGroup.js") | typeof import("./features.js") | typeof import("./featuresUI.js") | typeof import("./featureUsageUI.js") | typeof import("./functionsUI.js") | typeof import("./hanaCloudHDIInstancesUI.js") | typeof import("./hanaCloudInstances.js") | typeof import("./hanaCloudStart.js") | typeof import("./hanaCloudStop.js") | typeof import("./hdbsql.js") | typeof import("./hostInformation.js") | typeof import("./indexesUI.js") | typeof import("./iniContents.js") | typeof import("./iniFiles.js") | typeof import("./inspectFunction.js") | typeof import("./inspectIndex.js") | typeof import("./inspectJWT.js") | typeof import("./inspectLibMember.js") | typeof import("./inspectLibrary.js") | typeof import("./inspectProcedure.js") | typeof import("./inspectTableUI.js") | typeof import("./inspectTrigger.js") | typeof import("./inspectUser.js") | typeof import("./inspectView.js") | typeof import("./libraries.js") | typeof import("./massConvert.js") | typeof import("./massConvertUI.js") | typeof import("./massRename.js") | typeof import("./massUsers.js") | typeof import("./matrix.js") | typeof import("./objects.js") | typeof import("./openBAS.js") | typeof import("./openDBExplorer.js") | typeof import("./ports.js") | typeof import("./privilegeError.js") | typeof import("./procedures.js") | typeof import("./querySimpleUI.js") | typeof import("./readMe.js") | typeof import("./readMeUI.js") | typeof import("./openReadMe.js") | typeof import("./reclaim.js") | typeof import("./rick.js") | typeof import("./roles.js") | typeof import("./hanaCloudSBSSInstancesUI.js") | typeof import("./schemasUI.js") | typeof import("./hanaCloudSchemaInstancesUI.js") | typeof import("./hanaCloudSecureStoreInstancesUI.js") | typeof import("./connectViaServiceKey.js") | typeof import("./sequences.js") | typeof import("./status.js") | typeof import("./synonyms.js") | typeof import("./systemInfo.js") | typeof import("./systemInfoUI.js") | typeof import("./tablesUI.js") | typeof import("./traces.js") | typeof import("./traceContents.js") | typeof import("./triggers.js") | typeof import("./UI.js") | typeof import("./hanaCloudUPSInstancesUI.js") | typeof import("./users.js") | typeof import("./views.js") | typeof import("./btp.js") | typeof import("./btpSubs.js") | typeof import("./btpInfo.js") | typeof import("./issue.js"))[]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export function handler(argv: any): void; | ||
export const command: "tablesPG [schema] [table]"; | ||
export const aliases: string[]; | ||
export const describe: string; | ||
export const builder: import("yargs").CommandBuilder<{}, {}>; | ||
export namespace inputPrompts { | ||
namespace table { | ||
let description: string; | ||
let type: string; | ||
let required: boolean; | ||
} | ||
namespace schema { | ||
let description_1: string; | ||
export { description_1 as description }; | ||
let type_1: string; | ||
export { type_1 as type }; | ||
let required_1: boolean; | ||
export { required_1 as required }; | ||
} | ||
namespace profile { | ||
let description_2: string; | ||
export { description_2 as description }; | ||
let type_2: string; | ||
export { type_2 as type }; | ||
let required_2: boolean; | ||
export { required_2 as required }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export function handler(argv: any): void; | ||
export const command: "tablesSQLite [table]"; | ||
export const aliases: string[]; | ||
export const describe: string; | ||
export const builder: import("yargs").CommandBuilder<{}, {}>; | ||
export namespace inputPrompts { | ||
namespace table { | ||
let description: string; | ||
let type: string; | ||
let required: boolean; | ||
} | ||
namespace profile { | ||
let description_1: string; | ||
export { description_1 as description }; | ||
let type_1: string; | ||
export { type_1 as type }; | ||
let required_1: boolean; | ||
export { required_1 as required }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default class _default extends DBClientClass { | ||
constructor(prompts: any, optionsCDS: any); | ||
listTables(): Promise<any>; | ||
#private; | ||
} | ||
import DBClientClass from "./index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default class _default extends DBClientClass { | ||
constructor(prompts: any); | ||
connect(): Promise<import("sap-hdb-promisfied").default>; | ||
listTables(): Promise<any>; | ||
execSQL(query: any): Promise<any>; | ||
#private; | ||
} | ||
import DBClientClass from "./index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/** | ||
* Database Client Abstract Super Class | ||
* @class | ||
* @constructor | ||
* @public | ||
* @classdesc Database Client Abstract Level | ||
*/ | ||
export default class dbClientClass { | ||
/** | ||
* Static Factory Method to initialize the DB Client in your selected Flavor | ||
* @param {object} prompts - processed input prompts | ||
* @returns {Promise<dbClientClass>} childClass - flavor specific DB client class instance | ||
*/ | ||
static getNewClient(prompts: object): Promise<dbClientClass>; | ||
/** | ||
* Create an instance of the database client specific to the prompt profile | ||
* @param {typeof import("prompt")} prompts - input prompts current value | ||
*/ | ||
constructor(prompts: any, optionsCDS: any); | ||
/** | ||
* Connect to the target database | ||
* @returns {Promise<object>} cds connection object | ||
*/ | ||
connect(): Promise<object>; | ||
/** | ||
* Disconnect from the target database | ||
*/ | ||
disconnect(): void; | ||
/** | ||
* Connect to the target database and set a specific Schema | ||
* @param {String} schema - Database Schema name | ||
* @returns {Promise<object>} cds connection object | ||
*/ | ||
connectTargetSchema(schema: string): Promise<object>; | ||
/** | ||
* Database specific wildcard handling | ||
* @param {String} input - database object name that needs wildcard handling | ||
*/ | ||
adjustWildcard(input: string): string; | ||
/** | ||
* TableData as JSON | ||
* @typedef {Object} TableLine | ||
* @property {String} [SCHEMA_NAME] | ||
* @property {String} TABLE_NAME | ||
* @property {String} [TABLE_OID] | ||
* @property {String} [COMMENTS] | ||
*/ | ||
/** | ||
* TableData as JSON | ||
* @typedef {Array.<TableLine>} TableData | ||
*/ | ||
/** | ||
* return a list of database tables | ||
* @returns {Promise<TableData>} table of database tables | ||
*/ | ||
listTables(): Promise<{ | ||
SCHEMA_NAME?: string; | ||
TABLE_NAME: string; | ||
TABLE_OID?: string; | ||
COMMENTS?: string; | ||
}[]>; | ||
/** | ||
* Execute single SQL Statement and directly return result set | ||
* @param {string} sql - SQL Statement | ||
* @returns {Promise<any>} - result set object | ||
*/ | ||
execSQL(query: any): Promise<any>; | ||
/** | ||
* Getter for Prompts Private Attribute | ||
* @returns {typeof import("prompt")} prompts - input prompts current value | ||
*/ | ||
getPrompts(): any; | ||
/** | ||
* Getter for CDS or HDB database object Private Attribute | ||
* @returns @type {Object} | ||
*/ | ||
getDB(): any; | ||
/** | ||
* Getter for database kind/flavor Private Attribute | ||
* @returns @type {String} Database Kind / Flavor | ||
*/ | ||
getKind(): any; | ||
/** | ||
* Setter for CDS or HDB database object Private Attribute | ||
* @param @type {Object} db | ||
*/ | ||
setDB(db: any): void; | ||
/** | ||
* From Input parameters, calculate the schema that should be used for the rest of this operation | ||
* @param @type {typeof import("prompt")} prompts - input prompts current value | ||
* @param @type {Object} optionsCDS - CDS based Connection Options | ||
*/ | ||
schemaCalculation(prompts: any, optionsCDS: any): string; | ||
#private; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default class _default extends DBClientClass { | ||
constructor(prompts: any, optionsCDS: any); | ||
listTables(): Promise<any>; | ||
#private; | ||
} | ||
import DBClientClass from "./index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default class _default extends DBClientClass { | ||
constructor(prompts: any, optionsCDS: any); | ||
listTables(): Promise<any>; | ||
#private; | ||
} | ||
import DBClientClass from "./index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters