We could write:
def unify_cons_text(txt): return re.sub('(::\w+)|\s', '', cons).lower()
But one thing annoys me, if a sql constraint defines explicitly a cast like ::numeric and is changed later, the constraint won't be re-created.
We could write:
def unify_cons_ text(txt) : '(::\w+ )|\s', '', cons).lower()
return re.sub(
But one thing annoys me, if a sql constraint defines explicitly a cast like ::numeric and is changed later, the constraint won't be re-created.