SqlBuilder.addId

Defines an expression representing an identifier in builder, which may be reused to build other parts of a statement, for instance as a parameter to gda.sql_builder.SqlBuilder.addCond or gda.sql_builder.SqlBuilder.addFieldValueId.

The new expression will contain the str literal. For example: <programlisting> gda_sql_builder_add_id (b, "name") gda_sql_builder_add_id (b, "date") </programlisting>

will be rendered as SQL as: <programlisting> name "date" </programlisting>

because "date" is an SQL reserved keyword.

For fields, see gda.sql_builder.SqlBuilder.addFieldId.

class SqlBuilder
addId
(
string str
)

Parameters

str string

a string

Return Value

Type: gda.types.SqlBuilderId

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