Documentation Home
MySQL Shell for VS Code


MySQL Shell for VS Code  /  TypeScript  /  TypeScript Global Functions

9.1 TypeScript Global Functions

The available global functions for TypeScript are:

  • print(value: any): void

    Send a value to the output area.

  • runSql(code: string, callback?: (res:IResultSetRow[]) => void), params?: unknown): void

    Run the given query.

  • runSqlIterative(code: string, callback?: (res: IResultSetData) => void, params?: unknown): void

    Run the given query and process the rows iteratively.