duck.py 499 B

12345678910111213141516171819
  1. """
  2. This file will be intended to handle duckdb database
  3. """
  4. import duckdb
  5. from transport.common import Reader,Writer
  6. class Duck(Reader):
  7. def __init__(self,**_args):
  8. super().__init__(**_args)
  9. self._path = None if 'path' not in _args else _args['path']
  10. self._handler = duckdb.connect() if not self._path else duckdb.connect(self._path)
  11. class DuckReader(Duck) :
  12. def __init__(self,**_args):
  13. super().__init__(**_args)
  14. def read(self,**_args) :
  15. pass