'Returns True if the given key exists (for the given path).'

def __contains__(self, key, path='%'):

    q = 'select    *    from    `rate`    where    key=?    and    path    like    ?;'
    return (self.execute(q, (key, path), first=True, commit=False) is not None)
