not supposed to collect FK or Check constraints? if so, should probably be renamed to something like get_key_constraints.