Check if a table or key exists. Args: table: Table name key: Optional key to check within the table Returns: True if exists, False otherwise
(self, table, key=None)
| 277 | self._execute(STASH_OP_ENSURE, table) |
| 278 | |
| 279 | def exists(self, table, key=None): |
| 280 | """ |
| 281 | Check if a table or key exists. |
| 282 | |
| 283 | Args: |
| 284 | table: Table name |
| 285 | key: Optional key to check within the table |
| 286 | |
| 287 | Returns: |
| 288 | True if exists, False otherwise |
| 289 | """ |
| 290 | return self._execute(STASH_OP_EXISTS, table, key=key) |
| 291 | |
| 292 | def delete_table(self, table): |
| 293 | """ |