Cleanup DB#

This module defines functions that allow to delete data in various types of databases, including JSON, MongoDB, Pickle, Redis, Shelve, SQL, and YDB databases.

async delete_json(storage)[source]#

Delete all data from a JSON context storage.

Parameters:

storage (JSONContextStorage) – A JSONContextStorage object.

async delete_mongo(storage)[source]#

Delete all data from a MongoDB context storage.

Parameters:

storage (MongoContextStorage) – A MongoContextStorage object

async delete_pickle(storage)[source]#

Delete all data from a Pickle context storage.

Parameters:

storage (PickleContextStorage) – A PickleContextStorage object.

async delete_redis(storage)[source]#

Delete all data from a Redis context storage.

Parameters:

storage (RedisContextStorage) – A RedisContextStorage object.

async delete_shelve(storage)[source]#

Delete all data from a Shelve context storage.

Parameters:

storage (ShelveContextStorage) – A ShelveContextStorage object.

async delete_sql(storage)[source]#

Delete all data from an SQL context storage.

Parameters:

storage (SQLContextStorage) – An SQLContextStorage object.

async delete_ydb(storage)[source]#

Delete all data from a YDB context storage.

Parameters:

storage (YDBContextStorage) – A YDBContextStorage object.