OnConflictStrategy.Companion

object OnConflictStrategy.Companion


Summary

Constants

const Int

OnConflict strategy constant to abort the transaction.

const Int

This property is deprecated. Use ABORT instead.

const Int

OnConflict strategy constant to ignore the conflict.

const Int

OnConflict strategy constant to replace the old data and continue the transaction.

const Int

This property is deprecated. Use ABORT instead.

Constants

ABORT

const val ABORTInt

OnConflict strategy constant to abort the transaction. The transaction is rolled back.

FAIL

const val FAILInt

OnConflict strategy constant to fail the transaction.

IGNORE

const val IGNOREInt

OnConflict strategy constant to ignore the conflict.

An Insert DAO method that returns the inserted rows ids will return -1 for rows that are not inserted since this strategy will ignore the row if there is a conflict.

REPLACE

const val REPLACEInt

OnConflict strategy constant to replace the old data and continue the transaction.

An Insert DAO method that returns the inserted rows ids will never return -1 since this strategy will always insert a row even if there is a conflict.

ROLLBACK

const val ROLLBACKInt

OnConflict strategy constant to rollback the transaction.