def _get_connection_params(resource):
    """Extract connection and params from `resource`."""
    args = resource.split(";")
    if len(args) > 1:
        return args[0], args[1:]
    else:
        return args[0], []