fix(sqllab): reinstate "Force trino client async execution" (#25680)

This commit is contained in:
Rob Moore
2023-10-19 14:38:13 +01:00
committed by GitHub
parent e7cdfeeb2c
commit 4e94fc4cff
9 changed files with 125 additions and 24 deletions

View File

@@ -184,7 +184,10 @@ SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = os.environ.get("SUPERSET_SECRET_KEY") or CHANGE_ME_SECRET_KEY
# The SQLAlchemy connection string.
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(DATA_DIR, "superset.db")
SQLALCHEMY_DATABASE_URI = (
f"""sqlite:///{os.path.join(DATA_DIR, "superset.db")}?check_same_thread=false"""
)
# SQLALCHEMY_DATABASE_URI = 'mysql://myapp@localhost/myapp'
# SQLALCHEMY_DATABASE_URI = 'postgresql://root:password@localhost/myapp'