Contents of shell archive sqlstruct.shar, submitted by Art S. Kagel: Version dated: December 26, 2002 ---------------------------------------------------------------------------- Utility: sqlstruct Synopsis: Outputs a 'C' structure corresponding to the output of a specified SQL SELECT statement. Options are provided to specify whether to generate a 'pure C' or ESQL/C structure and whether to use 'char', 'string', or 'fixchar' as the host variable type for character fields in the structure. The structure name and output file can be specified and the SQL can be provided from a file or from stdin. Author(s): Art S. Kagel Revision: 1.1 Features Version: 1.4 Version(s) supported: Only basic hosts/column types are currently supported but that's easily expanded upon if you want to customize it. File(s): sqlstruct_port.ec Comments: Compile command: esql -o sqlstruct sqlstruct_port.ec Release Notes: Release 1.4 removed an unneeded header that is not available in earlier iSDK releases. Release 1.3 adds the remaining built-in data types. Release 1.2 fixes a bug that may cause a coredump if the SQL string is longer than 2K.