← Back to Stormify Documentation

create

fun <T : Any> create(item: T): T

Inserts a new entity into the database and returns it with generated values populated.


fun <T : Any> create(items: Collection<T>): List<T>

Inserts multiple entities in a batch.