Foreign-Key-Safe Delete Preflight
Checks whether a parent row can be deleted by looking for child rows that reference it through live foreign-key metadata.
Open SnippetPractical pure PHP patterns that are easy to study, adapt and use.
Checks whether a parent row can be deleted by looking for child rows that reference it through live foreign-key metadata.
Open SnippetCompares expected column definitions against the live database table and reports missing, extra, and changed columns.
Open SnippetBuilds a deterministic review map for duplicate slugs without changing the database automatically.
Open SnippetFinds pivot-table rows whose left or right foreign-key values no longer exist in their parent tables.
Open SnippetReviews the ID range, row count, and next auto-increment value for a table without attempting to resequence IDs.
Open SnippetValidates incoming import rows and reports inserts, updates, duplicates, and errors without writing to the database.
Open SnippetBuilds a prepared-statement SQL fragment only from columns approved by an explicit allowlist.
Open SnippetChecks whether a table has a FULLTEXT index covering the columns expected by the search feature.
Open SnippetCreates a reviewed bulk-update plan that requires approved columns, a WHERE filter, and a maximum-row guard before execution.
Open SnippetQueries a table for duplicate slug values and returns the affected IDs for review.
Open SnippetValidates a POSTed CSRF token and a bulk-action selection before an admin controller performs a state-changing operation.
Open SnippetCompares a stored session fingerprint with the current request fingerprint and returns an explicit drift decision.
Open Snippet