'Helper method to access the results as dict items, for
backwards-compatibility
@param key: the key
@todo: migrate use-cases to .<key> notation, then deprecate'

def __getitem__(self, key):

    if (key in ('rfields', 'numrows', 'ids', 'rows')):
        return getattr(self, key)
    else:
        raise AttributeError
