insert_row_into_table


Description:

[ Version ( since = "4.2.3" ) ]
public bool insert_row_into_table (string table, Error error, ...)

This is a convenience function, which creates an INSERT 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: INSERT INTO <table> (<column_name> [,...]) VALUES (<column_name> = <new_value> [,...]).

Parameters:

this

an opened connection

table

table's name to insert into

error

a place to store errors, or null

...

a list of string/GValue pairs with the name of the column to use and the GValue pointer containing the value to insert for the column (value can be null), finished by a null. There must be at least one column name and value

Returns:

TRUE if no error occurred