a_sqlany_column_info struct

Used to return column metadata information.

Syntax
typedef struct a_sqlany_column_info
{
    char *			name;		
    a_sqlany_data_type		type;	
    a_sqlany_native_type	native_type;
    unsigned short		precision;
    unsigned short		scale;
    size_t 			max_size;
    sacapi_bool			nullable;
} a_sqlany_column_info;
Properties
Name Type Description
max_size size_t The maximum size a data value in this column can take.
name char * The name of the column (null-terminated). The string can be referenced as long as the result set object is not freed.
native_type a_sqlany_native_type The native type of the column in the database.
nullable sacapi_bool If a value in the column can be null or not.
precision unsigned short Precision.
scale unsigned short Scale.
type a_sqlany_data_type The column data type.
Remarks

You can use sqlany_get_column_info to populate this structure.

Examples

To view an example of the a_sqlany_column_info structure in use, see: