summaryrefslogtreecommitdiff
path: root/static/netbsd/man3/sqlite3changeset_fk_conflicts.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/netbsd/man3/sqlite3changeset_fk_conflicts.3')
-rw-r--r--static/netbsd/man3/sqlite3changeset_fk_conflicts.329
1 files changed, 29 insertions, 0 deletions
diff --git a/static/netbsd/man3/sqlite3changeset_fk_conflicts.3 b/static/netbsd/man3/sqlite3changeset_fk_conflicts.3
new file mode 100644
index 00000000..5fc50cda
--- /dev/null
+++ b/static/netbsd/man3/sqlite3changeset_fk_conflicts.3
@@ -0,0 +1,29 @@
+.Dd January 24, 2024
+.Dt SQLITE3CHANGESET_FK_CONFLICTS 3
+.Os
+.Sh NAME
+.Nm sqlite3changeset_fk_conflicts
+.Nd determine the number of foreign key constraint violations
+.Sh SYNOPSIS
+.In sqlite3.h
+.Ft int
+.Fo sqlite3changeset_fk_conflicts
+.Fa "sqlite3_changeset_iter *pIter"
+.Fa "int *pnOut"
+.Fc
+.Sh DESCRIPTION
+This function may only be called with an iterator passed to an SQLITE_CHANGESET_FOREIGN_KEY
+conflict handler callback.
+In this case it sets the output variable to the total number of known
+foreign key violations in the destination database and returns SQLITE_OK.
+.Pp
+In all other cases this function returns SQLITE_MISUSE.
+.Sh IMPLEMENTATION NOTES
+These declarations were extracted from the
+interface documentation at line 11692.
+.Bd -literal
+SQLITE_API int sqlite3changeset_fk_conflicts(
+ sqlite3_changeset_iter *pIter, /* Changeset iterator */
+ int *pnOut /* OUT: Number of FK violations */
+);
+.Ed