| DataBlade Developers Kit Tutorial |
Tutorial Exercise 1Creating a Simple User-Defined RoutineThis exercise demonstrates how to use the tools of the DataBlade Developers Kit-- BladeSmith and BladeManager-- to create a DataBlade module with a user-defined routine. The AddInts DataBlade module is very simple: it creates a function, AddIntegers(), which adds two integers and returns the result. Overview of StepsYou follow these basic steps to create the AddInts DataBlade module: 1. Use BladeSmith to create the AddInts DataBlade module project. 2. Use BladeSmith to create the AddIntegers() function. 3. Use BladeSmith to generate the source code and the SQL registration scripts. 4. Add code for the AddIntegers() function to the template generated by BladeSmith. 5. Compile your source code using your C compiler. 6. Install your DataBlade module. These steps are fully explained in this exercise. Tutorial StepsThis exercise consists of 10 steps. It takes approximately 45 minutes to complete.
The Object Prefix, Description Locale, and Server compatibility fields are mandatory; the rest are optional.
The Files, Imported Objects, and User Defined Objects folders are currently empty, but as you build your DataBlade module, the objects you add appear in this hierarchy.
Copyright © 1998, Informix Software, Inc. All rights reserved. |