This commit is contained in:
AF 2022-11-01 02:35:38 +00:00 committed by parrrate
parent 50744ce725
commit 78a29c188d
Signed by: alisa
SSH Key Fingerprint: SHA256:vNY4pdIZvO1FYJKHROkdHLtvyopizvZVAEwg9AF6h04

View File

@ -8,7 +8,7 @@ from io import StringIO
from typing import Any, Optional, IO, Type, Hashable
__all__ = ('KVRequest', 'KVJson', 'DbConnection', 'DbFactory', 'Db', )
__all__ = ('KVRequest', 'KVJson', 'DbConnection', 'DbFactory', 'Db',)
class Request:
@ -282,6 +282,7 @@ class DbConnection:
del self.__task
del self.__initial_size
class DbFactory:
def __init__(self, path: str | pathlib.Path, *, kvrequest_type: Type[KVRequest], buffersize=1048576):
self.path = path = str(path)