SqlBuilder.addParam

gda.types.SqlBuilderId addParam(string paramName, gobject.types.GType type, bool nullok)

Defines a parameter in builder which may be reused to build other parts of a statement.

The new expression will contain the string literal. For example: <programlisting> gda_sql_builder_add_param (b, "age", G_TYPE_INT, FALSE) </programlisting>

will be rendered as SQL as: <programlisting><!CDATA[ ##age::int]> </programlisting>

Parameters

paramNameparameter's name
typeparameter's type
nullokTRUE if the parameter can be set to null

Returns

the ID of the new expression, or 0 if there was an error