Parameter interface

Parameter-building functions. More...

Functions

int evsql_param_binary (struct evsql_query_params *params, size_t param, const char *ptr, size_t len)
 Sets the value of the parameter at the given index.
int evsql_param_string (struct evsql_query_params *params, size_t param, const char *ptr)
int evsql_param_uint16 (struct evsql_query_params *params, size_t param, uint16_t uval)
int evsql_param_uint32 (struct evsql_query_params *params, size_t param, uint32_t uval)
int evsql_param_null (struct evsql_query_params *params, size_t param)
 Sets the given parameter to NULL.
int evsql_params_clear (struct evsql_query_params *params)
 Clears all the parameter values (sets them to NULL).

Detailed Description

Parameter-building functions.

These manipulate the value of the given parameter index.

See also:
evsql.h

Function Documentation

int evsql_param_binary ( struct evsql_query_params params,
size_t  param,
const char *  ptr,
size_t  len 
)

Sets the value of the parameter at the given index.

Parameters:
params the evsql_query_params struct
param the parameter index
ptr pointer to the binary data
len size of the binary data in bytes
Returns:
zero on success, <0 on error

int evsql_param_null ( struct evsql_query_params params,
size_t  param 
)

Sets the given parameter to NULL.

Parameters:
params the evsql_query_params struct
param the parameter index
Returns:
zero on success, <0 on error

int evsql_param_string ( struct evsql_query_params params,
size_t  param,
const char *  ptr 
)

int evsql_param_uint16 ( struct evsql_query_params params,
size_t  param,
uint16_t  uval 
)

int evsql_param_uint32 ( struct evsql_query_params params,
size_t  param,
uint32_t  uval 
)

int evsql_params_clear ( struct evsql_query_params params  ) 

Clears all the parameter values (sets them to NULL).

Parameters:
params the evsql_query_params struct
Returns:
zero on success, <0 on error


Generated on Sat Dec 13 20:58:05 2008 for evsql by  doxygen 1.5.6