insert

fun insert(entity: T)

Inserts a record into the database.

Parameters

entity

The object to be inserted.

Throws

if the class is not annotated with @Table.

if there is an error executing the query.