Skip to main content

AI Routine to Code

AI Routine to Code converts stored procedures or functions into common programming-language code, which is useful for logic migration, secondary development, and code review.

Supported Data Sources

  • MySQL-family data sources
  • Oracle
  • OceanBase Oracle
  • DaMeng
  • HANA
  • SQL Server

Supported Languages

Java, Python, C#, C++, Golang, Rust, and NodeJS.

Steps

  1. Open the SQL Console for the target data source.
  2. In the object tree on the left, locate the target stored procedure or function.
  3. Right-click the target object, then click Convert To (AI) > Programming Language.
  4. Select the target language and review the generated code.
  5. Refine the result further according to your business rules, dependencies, and exception-handling requirements.

Tips

  • Treat the converted output as a migration or refactoring reference rather than final production code.
  • For table-based code generation, see AI Table Structure to Code.