data/data: add db.IsContraintFailure() method, to check for failed constraints on database interactions
data/data: add db.IsContraintFailure() method, to check for failed constraints on database interactions

mdlayher/deltaiota