MySQL 8.3 Adds JavaScript Support
Written by Kay Ewbank   
Thursday, 04 January 2024

Oracle has announced that support for JavaScript functions and stored procedures has been added to the MySQL database server. The support is in preview and is currently limited to Oracle's MySQL Enterprise Edition and MySQL Heatwave.

MySQL is an open source relational database that was originally developed by Monty Widenius and David Axmark back in 1994. The commercial version is owned and developed by Oracle following a sequence of company purchases.


Oracle says the support means developers can now write JavaScript stored programs (functions and procedures) in the MySQL database server. The stored programs will be run with the GraalVM run time. MySQL-JavaScript is also available in the MySQL Heatwave cloud service on OCI, AWS and Azure.

Discussing the new support in a blog post, Øystein Grøvlen and Farhan Tauheed of Oracle Technical Staff pointed out the advantages of using stored functions and procedures to minimize data movement between the database server and applications:

"JavaScript stored programs empower developers to sidestep data movement and seamlessly implement advanced data processing logic inside the database with ease."

The traditional language for stored procedures in databases is SQL, and developers can use SQL statements to define data processing within the database server. Oracle says the addition of support for JavaScript stored programs means users can "express rich procedural logic inside the database". The JavaScript runtime is integrated via GraalVM, where the user can use all GraalVM's Enterprise Edition (EE) features such as compiler optimizations, performance, and security features at no additional cost.

This release has support for JavaScript based on ECMAScript 2021, including the ECMAScript standard library which includes also opens millions of available third party packages from online package managers such as npm.

GraalVM is an Oracle compiler eco-system that includes JDK, language implementations such as JavaScript, R, Python, Ruby and Java. It includes just-in-time (JIT) and ahead-of-time (AOT) compilation technology.  It also provides a fully managed virtual machine with sandboxing capability and tooling support. MySQL-JavaScript is integrated with GraalVM Enterprise edition.

There has been no announcement on whether JavaScript support for stored procedures will be added to the community edition.


More Information

MySQL Website

Related Articles

MySQL 8 Improves JSON

MySQL Reaches Milestone 8 Release

MySQL 5.7

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.


Udacity's New Discovering Ethical AI Course

Udacity has just launched an hour-long course on Ethical AI. Intended for a wide audience across many industries, it introduces to basic concepts and terms needed to step into the world of Ethica [ ... ]

VLOGGER - AI Does Talking Heads

Developed by Google researchers VLOGGER AI is a system that can create realistic videos of people talking and moving from a single still image and an audio clip as input. 

More News

raspberry pi books



or email your comment to:

Last Updated ( Wednesday, 24 January 2024 )