add_param


Description:

[ Version ( since = "4.2" ) ]
public SqlBuilderId add_param (string param_name, Type type, bool nullok)

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

The new expression will contain the string literal. For example:

gda_sql_builder_add_param (b, "age", G_TYPE_INT, FALSE)

will be rendered as SQL as:

##age::int

Parameters:

this

a SqlBuilder object

param_name

parameter's name

type

parameter's type

nullok

TRUE if the parameter can be set to null

Returns:

the ID of the new expression, or typeof (unichar2)0 if there was an error




2022 vala-language.org