delete_row_from_table


Description:

[ Version ( since = "4.2.3" ) ]
public bool delete_row_from_table (string table, string condition_column_name, Value condition_value) throws Error

This is a convenience function, which creates a DELETE statement and executes it using the values provided.

It internally relies on variables which makes it immune to SQL injection problems.

The equivalent SQL command is: DELETE FROM <table> WHERE <condition_column_name> = <condition_value>.

Parameters:

this

an opened connection

table

the table's name with the row's values to be updated

condition_column_name

the name of the column to used in the WHERE condition clause

condition_value

the condition_column_type's GType

Returns:

TRUE if no error occurred, FALSE otherwise




2022 vala-language.org