Load extension in a diferent place
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
44e850bd18
commit
910e91a391
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue