(self, key)
| 170 | self._connection = connection |
| 171 | |
| 172 | def read(self, key): |
| 173 | cursor = self._connection.execute(self._READ_RECORD, (key,)) |
| 174 | result = cursor.fetchone() |
| 175 | if result is None: |
| 176 | return |
| 177 | return CLISessionData(*result) |
| 178 | |
| 179 | def read_host_id(self): |
| 180 | cursor = self._connection.execute(self._READ_HOST_ID) |