Create user-defined routines
- Develop a user-defined routine
A C user-defined routine (UDR) is a UDR that is written in the C language and uses the server-side implementation of the DataBlade API to communicate with the database server. C UDRs (functions and procedures) are implemented as C-language functions. DataBlade modules often include C UDRs that are made available for use by registering them in the database. - Write a user-defined routine
This section outlines some implementation issues for C user-defined routines (UDRs). This section also describes the specific features and tasks of a C UDR. - Manage memory
A C user-defined routine (UDR) has access to shared memory for dynamic allocations and stack memory for routine arguments (including the MI_FPARAM structure), local stack variables, and return values. - Create special-purpose UDRs
This section describes how to create special UDRs, such as iterator functions, user-defined aggregates, and optimization functions. - Extend data types
This section describes the ways to extend data types with C user-defined routines (UDRs).
Parent topic: DataBlade API Programmer's Guide