informix
DataBlade Developers Kit User's Guide
Programming DataBlade Module Routines in C

Programming DataBlade Module Routines in C

In This Chapter
Prerequisite Tasks
C Programming Task Overview
Source Files Generated by BladeSmith
C Header File
C Source Code Files
Microsoft Visual C++ Files
Warning File
Using Generated Code
Identifying the Source of Generated Code
Comments in Generated Code
MI_FPARAM Function Argument
Server Connection Handle
Tracing and Error Handling
How Tracing Works
Adding Tracing and Error Handling
Enabling Tracing in a DataBlade Module
Enabling Tracing in a Database Session
Standard Error Messages
Utility Functions Generated by BladeSmith
The Gen_sscanf() Utility Function
The Gen_IsMMXMachine() Utility Function
Editing Opaque Type Support Routines in opaque.c
Text Input and Output Functions
The Generated Code
Customizing the Code
Smart Large Object Considerations
Examples
Binary Send and Receive Functions
The Generated Code
Customizing the Code
Examples
Text File Import and Export Functions
The Generated Code
Customizing the Code
Smart Large Object Considerations
Binary File Import and Export Functions
The Generated Code
Customizing the Code
Smart Large Object Considerations
The Assign and Destroy Routines
The Generated Code
Customizing the Code
Smart Large Object Considerations
Examples
LOhandles() Function
Comparison Functions
Compare Function
B-Tree Comparison Functions
R-Tree Comparison Functions
Mathematic Functions
The Generated Code
Completing the Code
Example
Concat() Function
Hash() Function
Editing Statistics Routines in statistics.c
The Statistics Collection Function
The Generated Code
Customizing the Code
The Statistics Print Function
The Statistics Minimum, Maximum, and Distribution Functions
The Generated Code
Completing the Code
Example
Editing Routines in udr.c
Most User-Defined Routines
The Generated Code
Completing the Code
Examples
Cast Support Functions
The Generated Code
Completing the Code
Example
Aggregate Functions
The Generated Code
Completing the Code
Selectivity Functions
The Generated Code
Completing the Code
Example
Iterator Functions
The Generated Code
Completing the Code
Example
Compiling DataBlade Module Code
Compiling with Tracing Support
Compiling on UNIX
Unresolved Symbols
Compiling with Debug Support
Compiling on Windows NT

DataBlade Developers Kit User's Guide, Version 4.0
Copyright © 1999, Informix Software, Inc. All rights reserved