![]() |
C Driver API 3.0.0
API for the NuoDB C Driver Library
|
Metadata about parameters. More...
#include <parameterMetaData.h>
Data Fields | |
_NuoDB_ParameterMetaData_state_t * | _state |
int(* | getParameterCount )(NuoDB_ParameterMetaData *_this) |
Retrieves the number of parameters in the last prepared SQL statement for which this ParameterMetaData data structure contains information. | |
NuoDB_Status(* | getParameterMode )(NuoDB_ParameterMetaData *_this, int index, NuoDB_ParameterDirection *modePtr) |
Retrieves the designated parameter's mode (direction) | |
NuoDB_Status(* | getParameterType )(NuoDB_ParameterMetaData *_this, int index, NuoDB_Type *typePtr) |
Retrieves the designated parameter's SQL type. | |
int(* | getPrecision )(NuoDB_ParameterMetaData *_this, int index) |
Retrieves the designated parameter's specified column size. | |
int(* | getScale )(NuoDB_ParameterMetaData *_this, int index) |
Retrieves the designated parameter's number of digits to right of the decimal point. | |
nuodb_bool_t(* | isNullable )(NuoDB_ParameterMetaData *_this, int index) |
Retrieves whether null values are allowed in the designated parameter. | |
Metadata about parameters.
NuoDB_ParameterMetaData is used to obtain information about parameters.
int(* NuoDB_ParameterMetaData::getParameterCount) (NuoDB_ParameterMetaData *_this) |
Retrieves the number of parameters in the last prepared SQL statement for which this ParameterMetaData data structure contains information.
[in] | _this | a pointer to the current (this) data structure. |
NuoDB_Status(* NuoDB_ParameterMetaData::getParameterMode) (NuoDB_ParameterMetaData *_this, int index, NuoDB_ParameterDirection *modePtr) |
Retrieves the designated parameter's mode (direction)
[in] | _this | a pointer to the current (this) data structure. |
[in] | index | the first parameter is 1, the second is 2, ... |
[out] | modePtr | a pointer to NuoDB_ParameterDirection. |
NuoDB_Status(* NuoDB_ParameterMetaData::getParameterType) (NuoDB_ParameterMetaData *_this, int index, NuoDB_Type *typePtr) |
Retrieves the designated parameter's SQL type.
[in] | _this | a pointer to the current (this) data structure. |
[in] | index | the first parameter is 1, the second is 2, ... |
[out] | typePtr | a pointer to NuoDB_Type. |
int(* NuoDB_ParameterMetaData::getPrecision) (NuoDB_ParameterMetaData *_this, int index) |
Retrieves the designated parameter's specified column size.
The returned value represents the maximum column size for the given parameter. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes.
[in] | _this | a pointer to the current (this) data structure. |
[in] | index | the first parameter is 1, the second is 2, ... |
int(* NuoDB_ParameterMetaData::getScale) (NuoDB_ParameterMetaData *_this, int index) |
Retrieves the designated parameter's number of digits to right of the decimal point.
Retrieves the designated parameter's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.
[in] | _this | a pointer to the current (this) data structure. |
[in] | index | the first parameter is 1, the second is 2, ... |
nuodb_bool_t(* NuoDB_ParameterMetaData::isNullable) (NuoDB_ParameterMetaData *_this, int index) |
Retrieves whether null values are allowed in the designated parameter.
Retrieves whether null values are allowed in the designated parameter.
[in] | _this | a pointer to the current (this) data structure. |
[in] | index | the first parameter is 1, the second is 2, ... |