executeInsert

abstract fun executeInsert(sqLiteStatement: StatementWrapper): Long

Execute statement and return the ID of the row inserted due to this call. The SQL statement should be an INSERT for this to be a useful call.

Return

the row ID of the last row inserted, if this insert is successful. -1 otherwise.

Parameters

sqLiteStatement

The SQL statement to execute

Throws

If the SQL string is invalid