Interface for console object.

Hierarchy

  • IConsole

Methods

  • Prints message when check is falsy.

    Parameters

    • check: boolean

      boolean condition that should be checked.

    • message: string

      message that should be printed if check fails.

    Returns undefined

  • Clears the console window if possible. In Oracle Database, this function does not do anything useful, but prints some additional special characters.

    Returns undefined

  • Increases the given counter and prints how many times it has been called. The counter is identified by its label.

    Parameters

    • Optional label: string

      name of the counter to be increased. If no name is provided, the default counter is used.

    Returns undefined

  • Resets the given counter to 0. The counter is identified by its label.

    Parameters

    • Optional label: string

      name of the counter to be reset. If no name is provided, the default counter is used.

    Returns undefined

  • Alias of log: Prints the arguments to stdout, providing a best-effort human readable output. By default, stdout is redirected to DBMS_OUTPUT and can be redirected using the appropriate procedures in DBMS_MLE.

    Parameters

    • Rest ...args: any[]

      arguments to be printed to stdout.

    Returns undefined

  • Prints the arguments to stderr, providing a best-effort human readable output. By default, stderr is redirected to DBMS_OUTPUT and can be redirected using the appropriate procedures in DBMS_MLE.

    Parameters

    • Rest ...args: any[]

      arguments to be printed to stderr.

    Returns undefined

  • Increases the indentation for succeeding outputs to the console until groupEnd is called.

    Parameters

    • Rest ...labels: string[]

      if provided, the labels get printed before the indentation is increased.

    Returns undefined

  • Decreases the indentation for succeeding outputs to the console that was previously increased with group. If indentation is already at the lowest (outermost) level, this has no effect.

    Returns undefined

  • Alias of log: Prints the arguments to stdout, providing a best-effort human readable output. By default, stdout is redirected to DBMS_OUTPUT and can be redirected using the appropriate procedures in DBMS_MLE.

    Parameters

    • Rest ...args: any[]

      arguments to be printed to stdout.

    Returns undefined

  • Prints the arguments to stdout, providing a best-effort human readable output. By default, stdout is redirected to DBMS_OUTPUT and can be redirected using the appropriate procedures in DBMS_MLE.

    Parameters

    • Rest ...args: any[]

      arguments to be printed to stdout.

    Returns undefined

  • Starts a timer. The timer is identified by its label.

    Parameters

    • Optional label: string

      name of the timer to be started. If no name is provided, the default timer is used.

    Returns undefined

  • Stops the timer and prints its duration (in milliseconds). The timer is identified by its label. After this call, further calls to this function or to timeLog have no effect.

    Parameters

    • Optional label: string

      name of the timer to be stopped. If no name is provided, the default timer is used.

    Returns undefined

  • Logs, i.e. prints the duration of a timer (in milliseconds). The timer is identified by its label. If the timer has already been stopped, this has no effect.

    Parameters

    • Optional label: string

      name of the timer to be logged. If no name is provided, the default timer is used.

    Returns undefined

  • Alias of error: Prints the arguments to stderr, providing a best-effort human readable output. By default, stderr is redirected to DBMS_OUTPUT and can be redirected using the appropriate procedures in DBMS_MLE.

    Parameters

    • Rest ...args: any[]

      arguments to be printed to stderr.

    Returns undefined