From 44e850bd184adc2d8432b6100ee9090574c5b3ce Mon Sep 17 00:00:00 2001 From: Guillem Borrell Date: Mon, 22 Jul 2024 11:46:36 +0200 Subject: [PATCH] Force loading extensions --- src/hellocomputer/db/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hellocomputer/db/__init__.py b/src/hellocomputer/db/__init__.py index 2d03641..0af481d 100644 --- a/src/hellocomputer/db/__init__.py +++ b/src/hellocomputer/db/__init__.py @@ -57,6 +57,10 @@ class DDB: raise ValueError( "With local storage you need to provide the path keyword argument" ) + + # Load extensions + self.db.sql("load spatial;") + self.db.sql("load httpfs;") def query(self, sql, *args, **kwargs): return self.db.query(sql, *args, **kwargs)