Open nicolay-r opened 3 months ago
It is possible to simplify SQLiteReader implementation as follows:
SQLiteReader
class CustomSQliteReader(BaseReader): def __init__(self, storage_type, **storage_kwargs): self._storage_kwargs = storage_kwargs self._storage_type = storage_type def extension(self): return ".sqlite" def read(self, target): return self._storage_type(path=target, **self._storage_kwargs)
Which allow us to provide any customized storage. For example, in the case of ARElight we may support iteration over joined tables. See https://github.com/nicolay-r/ARElight/issues/144 as the related request for this feature.
550 related minor feature
It is possible to simplify
SQLiteReader
implementation as follows:Which allow us to provide any customized storage. For example, in the case of ARElight we may support iteration over joined tables. See https://github.com/nicolay-r/ARElight/issues/144 as the related request for this feature.