SqliteStorage#
- class sunpy.data.data_manager.storage.SqliteStorage(path)[source]#
Bases:
StorageProviderBase
This provides a sqlite backend for storage.
- Parameters:
path (
str
) – Path to the database file.
Attributes Summary
Methods Summary
connection
([commit])A context manager which provides an easy way to handle db connections.
delete_by_key
(key, value)Deletes the matching entry from the store.
find_by_key
(key, value)Returns the file details if value corresponding to the key found in storage.
store
(details)Stores the details in the storage.
Attributes Documentation
- COLUMN_NAMES = ['file_hash', 'file_path', 'url', 'time']#
Methods Documentation
- connection(commit=False)[source]#
A context manager which provides an easy way to handle db connections.
- Parameters:
commit (
bool
) – Whether to commit after successful execution of db command.