Skip to Main Content
InterSystems Ideas

Have an idea, suggestion, or something that doesn’t work as expected in InterSystems products or services? Share it here on the InterSystems Ideas Portal.

The Ideas Portal is where community members can propose improvements, report bugs, and help influence the product roadmap across InterSystems products and the overall developer experience. 22% of submitted ideas are implemented by InterSystems or members of the Developer Community.

💡 Ideas and bugs are both welcome, no matter how big or small. You can submit feature requests, usability improvements, workflow suggestions, and bug reports. Whether you’re an experienced expert or just getting started, your fresh perspective is valuable.

🛠️ About bugs and fixes. If you have access to InterSystems WRC, please submit bugs there for immediate action. Bug reports submitted through the Ideas Portal are reviewed and tracked, but do not guarantee immediate resolution.

Start by sharing what could be better - the community and our teams will help take it from there.

Status Future consideration
Created by Ashok Kumar T
Created on Jul 1, 2025

Encoding in SQL functions

Introduce SQL functions like TO_BASE64(), FROM_BASE64(), and UUID() to enable data encoding, decoding, and unique identifier generation.

1️⃣ Description of the idea

Add built-in SQL functions to the InterSystems SQL engine for common utility tasks:

  • TO_BASE64(input) – Encodes binary or string data to a Base64 string

  • FROM_BASE64(input) – Decodes Base64 strings back to their original binary or string form

  • UUID() – Generates a universally unique identifier (UUID) in standard string format (e.g., 550e8400-e29b-41d4-a716-446655440000)

These functions would be available directly in SQL queries, stored procedures, and triggers.

2️⃣ Who is the target audience?

SQL developers working with data transformation and API integration and developers using SQL for encoding.

3️⃣ What problem does it solve?

Currently, encoding/decoding data and generating UUIDs often require Calling ObjectScript methods manually or Stored procedures

Adding these functions solves Limited ability to work with encoded data directly in SQL

4️⃣ How does this impact the efficiency, stability, reliability, etc., of the product?

Simplifies development by enabling single-step transformations within SQL and Built-in functions are more consistent and tested than user-defined alternatives

5️⃣ Provide a specific use case or scenario that illustrates how this idea could be used in practice

When binary image data or encode conversion required fields is stored in the database and returned as Base64-encoded strings for JSON responses.

The current approach involves retrieving the data using SQL and then relying on ObjectScript logic. With these built-in functions, the process becomes much simpler and more efficient, as encoding can be handled directly within the SQL query.

  • ADMIN RESPONSE
    Aug 20, 2025

    Thank you for submitting the idea. The status has been changed to "Future consideration".

    Stay tuned!