Overview of Built-in JavaScript Modules

MLE provides a set of built-in JavaScript modules that are available for import in any execution context.

Built-in modules are not deployed to the database as user-defined MLE modules, but are included as part of the MLE runtime. In particular, MLE provides the following three built-in JavaScript modules:

  • mle-js-oracledb is the JavaScript MLE SQL Driver.

  • mle-js-bindings provides functionality to import and export values from the PL/SQL engine.

  • mle-js-plsqltypes provides definitions for the PL/SQL wrapper types. For example, JavaScript types that wrap PL/SQL and SQL types like OracleNumber.

  • mle-js-fetch provides a partial Fetch API polyfill, allowing developers to invoke external resources.

  • mle-encode-base64 contains code to work with base64-encoded data.

  • mle-js-encodings provides functionality to handle text in UTF-8 and UTF-16 encodings.
  • mle-js-plsql-ffi provides functionality to handle PL/SQL packages, functions, and procedures as JavaScript objects.

These modules can be used to interact with the database and provide type conversions between the JavaScript engine and database engine.

See Also:

Server-Side JavaScript API Documentation for more information about the built-in JavaScript modules