Top | ![]() |
![]() |
![]() |
![]() |
GdaSqlParamSpec * | gda_sql_param_spec_new () |
GdaSqlParamSpec * | gda_sql_param_spec_copy () |
void | gda_sql_param_spec_take_name () |
void | gda_sql_param_spec_take_type () |
void | gda_sql_param_spec_take_descr () |
void | gda_sql_param_spec_take_nullok () |
void | gda_sql_param_spec_free () |
gchar * | gda_sql_param_spec_serialize () |
GdaSqlParamSpec *
gda_sql_param_spec_new (GValue *simple_spec
);
value
must contain a string representing a variable, see the documentation associated to the
GdaSqlParser object.
value
is destroyed by this function.
GdaSqlParamSpec *
gda_sql_param_spec_copy (GdaSqlParamSpec *pspec
);
Creates a copy of pspec
.
void gda_sql_param_spec_take_name (GdaSqlParamSpec *pspec
,GValue *value
);
Sets pspec
's name. value
's ownership is transferred to
pspec
(which means pspec
is then responsible for freeing it when no longer needed).
void gda_sql_param_spec_take_type (GdaSqlParamSpec *pspec
,GValue *value
);
Sets pspec
's data type. value
's ownership is transferred to
pspec
(which means pspec
is then responsible for freeing it when no longer needed).
value
must represent a data type, as understood by gda_g_type_from_string()
.
void gda_sql_param_spec_take_descr (GdaSqlParamSpec *pspec
,GValue *value
);
Sets pspec
's description. value
's ownership is transferred to
pspec
(which means pspec
is then responsible for freeing it when no longer needed).
void gda_sql_param_spec_take_nullok (GdaSqlParamSpec *pspec
,GValue *value
);
Sets pspec
's ability of being NULL. value
's ownership is transferred to
pspec
(which means pspec
is then responsible for freeing it when no longer needed).
If value
's string starts by 't' or 'T' then pspec
will be allowed to be NULL
gchar *
gda_sql_param_spec_serialize (GdaSqlParamSpec *pspec
);
Creates a new string representing pspec
.