gda-statement-struct-pspec

gda-statement-struct-pspec

Functions

Object Hierarchy

    GBoxed
    ╰── GdaSqlParamSpec

Description

Functions

gda_sql_param_spec_new ()

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.

Parameters

simple_spec

a G_TYPE_STRING GValue.

[transfer full]

Returns

a new GdaSqlParamSpec.

[transfer full]


gda_sql_param_spec_copy ()

GdaSqlParamSpec *
gda_sql_param_spec_copy (GdaSqlParamSpec *pspec);

Creates a copy of pspec .

Parameters

pspec

GdaSqlParamSpec pointer

 

Returns

a new GdaSqlParamSpec


gda_sql_param_spec_take_name ()

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).

Parameters

pspec

a GdaSqlParamSpec pointer

 

value

a G_TYPE_STRING GValue.

[transfer full]

gda_sql_param_spec_take_type ()

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().

Parameters

pspec

a GdaSqlParamSpec pointer

 

value

a G_TYPE_STRING GValue.

[transfer full]

gda_sql_param_spec_take_descr ()

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).

Parameters

pspec

a GdaSqlParamSpec pointer

 

value

a G_TYPE_STRING GValue.

[transfer full]

gda_sql_param_spec_take_nullok ()

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

Parameters

pspec

a GdaSqlParamSpec pointer

 

value

a G_TYPE_STRING GValue.

[transfer full]

gda_sql_param_spec_free ()

void
gda_sql_param_spec_free (GdaSqlParamSpec *pspec);

Destroys pspec .

Parameters

pspec

GdaSqlParamSpec pointer

 

gda_sql_param_spec_serialize ()

gchar *
gda_sql_param_spec_serialize (GdaSqlParamSpec *pspec);

Creates a new string representing pspec .

Parameters

pspec

a GdaSqlParamSpec pointer

 

Returns

a new string.

Types and Values