openwpm.storage.sql_provider module¶
- class openwpm.storage.sql_provider.SQLiteStorageProvider(db_path: Path)[source]¶
Bases:
StructuredStorageProvider
- cur: Cursor¶
- db: Connection¶
- async finalize_visit_id(visit_id: VisitId, interrupted: bool = False) None [source]¶
This method is invoked to inform the StructuredStorageProvider that no more records for this visit_id will be submitted
This method returns once the data is ready to be written out. If the data is immediately written out nothing will be returned. Otherwise an awaitable will returned that resolve onces the records have been saved out to persistent storage
- async init() None [source]¶
Initializes the StorageProvider for use
Guaranteed to be called in the process the StorageController runs in.