SqlBuilder.addParam

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>

class SqlBuilder
addParam

Parameters

paramName string

parameter's name

type gobject.types.GType

parameter's type

nullok bool

TRUE if the parameter can be set to null

Return Value

Type: gda.types.SqlBuilderId

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