def get(self, cls, rid):
self.validate_record_type(cls)<EOL>rows = self.db.select(cls, where={ID: rid}, limit=<NUM_LIT:1>)<EOL>if not rows:<EOL><INDENT>raise KeyError('<STR_LIT>'.format(cls, rid))<EOL><DEDENT>return rows[<NUM_LIT:0>]<EOL>
Return record of given type with key `rid`

        >>> s = teststore()
        >>> s.create('tstoretest', {'id': '1', 'name': 'Toto'})
        >>> r = s.get('tstoretest', '1')
        >>> r['name']
        'Toto'
        >>> s.get('badcls', '1')
        Traceback (most recent call last):
            ...
        ValueError: Unsupported record type "badcls"
        >>> s.get('tstoretest', '2')
        Traceback (most recent call last):
            ...
        KeyError: 'No tstoretest record with id 2'