Pickle DB
Overview
The PickleDB class is designed to interact with a local disk storage using pickle file format for storing and retrieving passage contents. It provides methods for creating, loading, saving, fetching, and searching passages in a pickle file.
Usage
1. Make PickleDB Instance
To start using the PickleDB class, you first need to create an instance of the class. You can do this by providing the path to your pickle file.
2. Use create_or_load
The create_or_load
method is used to either create a new pickle file if it does not exist, or load an existing pickle file.
3. Save Passage
4. Fetch Data
5. Search Data
Please replace the placeholders with your actual data. Also, make sure that your pickle file is accessible at the provided path.
Last updated