Skip to main content

ec_datasource_set_param_by_name

Last updated March 2020

Name

ec_datasource_set_param_by_name — Initialize the value of a parameter using the name as a key

Synopsis

#include "modules/datasource/ecdatasource.h"

| (int) **ec_datasource_set_param_by_name** ( | q, |   | |   | key, |   | |   | val); |   |

ecdata_cache_query *<var class="pdparam">q</var>; const char *<var class="pdparam">key</var>; const ecdata_value *<var class="pdparam">val</var>;

Description

Initialize the value of a parameter using the name as a key.

Note

This function is for use with 'bind' variables; the details of how this works depends on the underlying driver being used.

Parameters

q

A pointer to an ecdata_cache_query. The following typedef applies to this data type: typedef struct ec_datasource_cache_query ecdata_cache_query;.

key

The name of the parameter that is being initialized.

val

The value of the parameter being initialized. For a description of this data type ecdata_value.

Return Values

On success this function returns

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?