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_file(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_redis(storage)[source]#
Delete all data from a Redis context storage.
- Parameters:
storage (
RedisContextStorage
) – A RedisContextStorage 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.