Oracle Database allows executing user-provided JavaScript code since version 21c by using the Multilingual Engine (MLE).
This documentation describes mle-js
which contains all relevant declarations of predefined JavaScript modules that ship with the database plus the declarations of all global symbols.
Oracle Database ships with some predefined JavaScript modules:
The following symbols exist in each JavaScript context in Oracle Database:
mle-js-oracledb
without importing itmle-js-oracledb
default connection; is used to issue SQL statements directlymle-js-oracledb
SODA Database object which can be used to create SODA collectionsThe following symbols will get added to a JavaScript context after importing mle-js-fetch: