# -*- coding: utf-8 -*-
"""Reader for SQLite storage files."""
from __future__ import unicode_literals
from plaso.storage import interface
from plaso.storage.sqlite import sqlite_file
[docs]class SQLiteStorageFileReader(interface.StorageFileReader):
"""SQLite-based storage file reader."""
def __init__(self, path):
"""Initializes a storage reader.
Args:
path (str): path to the input file.
"""
super(SQLiteStorageFileReader, self).__init__(path)
self._storage_file = sqlite_file.SQLiteStorageFile()
self._storage_file.Open(path=path)