Add delete_data method
This commit is contained in:
parent
14b9967406
commit
a85f4599cc
@ -194,7 +194,11 @@ class RockServerStorage(Storage):
|
|||||||
|
|
||||||
async def delete(self):
|
async def delete(self):
|
||||||
""" Delete all the tables and indexes """
|
""" Delete all the tables and indexes """
|
||||||
|
await self.delete_data()
|
||||||
await self._client.deleteColumn(self._session_col)
|
await self._client.deleteColumn(self._session_col)
|
||||||
|
|
||||||
|
async def delete_data(self):
|
||||||
|
""" Delete only data, keep session """
|
||||||
await self._client.deleteColumn(self._peer_col)
|
await self._client.deleteColumn(self._peer_col)
|
||||||
|
|
||||||
# peer_id, access_hash, peer_type, phone_number
|
# peer_id, access_hash, peer_type, phone_number
|
||||||
|
Loading…
Reference in New Issue
Block a user