def add_event(self, key, event):
        """Add an event and its corresponding key to the store."""
        assert isinstance(key, str)
        assert isinstance(event, bytes)
        self.conn.execute('INSERT INTO events(uuid,event) VALUES (?,?)',
                          (key, event.decode('utf-8')))
def add_event ( self , key , event ) : assert isinstance ( key , str ) assert isinstance ( event , bytes ) self . conn . execute ( 'INSERT INTO events(uuid,event) VALUES (?,?)' , ( key , event . decode ( 'utf-8' ) ) )
Add an event and its corresponding key to the store.