Connection.updateRowInTableV
bool updateRowInTableV(string table, string conditionColumnName, gobject.value.Value conditionValue, string[] colNames, gobject.value.Value[] values)col_names and values must have length (>= 1).
This is a convenience function, which creates an UPDATE 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: UPDATE <table> SET <column_name> = <new_value> [,...] WHERE <condition_column_name> = <condition_value>.
Parameters
table | the table's name with the row's values to be updated |
conditionColumnName | the name of the column to used in the WHERE condition clause |
conditionValue | the condition_column_type's GType |
colNames | a list of column names (as const gchar *) |
values | a list of values (as #GValue) |
Returns
TRUE if no error occurred, FALSE otherwise
Throws
[ConnectionException]