Load extension in a diferent place
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Guillem Borrell 2024-07-22 11:49:30 +02:00
parent 44e850bd18
commit 910e91a391
2 changed files with 1 additions and 3 deletions

View file

@ -58,9 +58,6 @@ class DDB:
"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)

View file

@ -30,6 +30,7 @@ class SessionDB(DDB):
def load_xls(self, xls_path: Path) -> Self:
"""For some reason, the header is not loaded"""
self.db.sql("load spatial")
self.db.sql(f"""
create table metadata as (
select