mysql-js-stored-procedures

Official

Create JS stored procedures in MySQL (tech preview)

AuthorPercona-Lab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The js_lang component lets you write stored functions and procedures in JavaScript (V8 engine) instead of SQL/PSM, addressing scenarios where complex logic is more concise in JavaScript. It is tech preview in Percona Server 8.4 and executes in a sandbox with no file or network I/O, requiring installation of the component and the appropriate privileges.

Core Features & Use Cases

  • Write stored routines in JavaScript using the V8 engine, enabling clearer implementation for complex logic.
  • Sandbox execution with no file or network I/O; restricted environment to protect the database server.
  • Requires INSTALL COMPONENT 'file://component_js_lang' and the CREATE_JS_ROUTINE privilege; supports CREATE FUNCTION and CREATE PROCEDURE with LANGUAGE JS.

Quick Start

Install the component and grant the CREATE_JS_ROUTINE privilege, then create a JS-based routine using the LANGUAGE JS syntax.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mysql-js-stored-procedures
Download link: https://github.com/Percona-Lab/skills/archive/main.zip#mysql-js-stored-procedures

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.