Connection.insertRowIntoTableV

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> [,...]).

class Connection
bool
insertRowIntoTableV

Parameters

table string

table's name to insert into

colNames string[]

a list of column names (as const gchar *)

values gobject.value.Value[]

a list of values (as #GValue)

Return Value

Type: bool

TRUE if no error occurred, FALSE otherwise

Throws