From 738a386ef7282a98b969625305e0694d69259db2 Mon Sep 17 00:00:00 2001 From: Michal Charemza Date: Wed, 13 Mar 2024 19:08:15 +0000 Subject: [PATCH] fix: work with recent apsw It looks like from apsw 3.43.1.1 onwards, the virtual filesystem file needs the xSectorSize function. Closes https://github.com/uktrade/sqlite-s3vfs/issues/24 --- sqlite_s3vfs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sqlite_s3vfs.py b/sqlite_s3vfs.py index bad3566..26e8d5a 100644 --- a/sqlite_s3vfs.py +++ b/sqlite_s3vfs.py @@ -128,6 +128,9 @@ def _read(): return b"".join(_read()) + def xSectorSize(self): + return self._block_size + def xFileControl(self, *args): return False