SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ ConflictAction

enum class sqt::ConflictAction
strong

Conflict action to be used when an unique constraint violation occurs during an insert or update operation.

The enum values are defined according to the SQLite documentation for the ON CONFLICT clause. For more information, see https://www.sqlite.org/lang_conflict.html.

Enumerator
Abort 

Aborts the current SQL statement with an error and backs out any changes made by the current SQL statement without rolling back the current transaction.

Fail 

Aborts the current SQL statement with an error without backing out prior changes and rolling back the current transaction.

Ignore 

Skips the current row and continues processing subsequent rows of the SQL statement.

Replace 

Deletes the pre-existing rows and continues executing the SQL statement.

Rollback 

Aborts the current SQT statement with an error and rolls back the current transaction.