Borrow generate_resolver method from pg in Toolbelt