.Dd January 24, 2024
.Dt SQLITE_ROLLBACK 3
.Os
.Sh NAME
.Nm SQLITE_ROLLBACK ,
.Nm SQLITE_FAIL ,
.Nm SQLITE_REPLACE
.Nd conflict resolution modes
.Sh SYNOPSIS
.In sqlite3.h
.Fd #define SQLITE_ROLLBACK
.Fd #define SQLITE_FAIL
.Fd #define SQLITE_REPLACE
.Sh DESCRIPTION
These constants are returned by
.Fn sqlite3_vtab_on_conflict
to inform a virtual table implementation what the ON CONFLICT
mode is for the SQL statement being evaluated.
.Pp
Note that the SQLITE_IGNORE constant is also used as a
potential return value from the
.Fn sqlite3_set_authorizer
callback and that SQLITE_ABORT is also a result code.
.Sh IMPLEMENTATION NOTES
These declarations were extracted from the
interface documentation at line 10125.
.Bd -literal
#define SQLITE_ROLLBACK 1
/* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */
#define SQLITE_FAIL     3
/* #define SQLITE_ABORT 4  // Also an error code */
#define SQLITE_REPLACE  5
.Ed
.Sh SEE ALSO
.Xr sqlite3_set_authorizer 3 ,
.Xr sqlite3_vtab_on_conflict 3 ,
.Xr SQLITE_DENY 3 ,
.Xr SQLITE_OK 3
