Connection.insertRowIntoTableV

bool insertRowIntoTableV(string table, string[] colNames, gobject.value.Value[] values)

col_names and values must have length (>= 1).

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

tabletable's name to insert into
colNamesa list of column names (as const gchar *)
valuesa list of values (as #GValue)

Returns

TRUE if no error occurred, FALSE otherwise

Throws

[ConnectionException]