Rename SQLALCHEMY_DATABASE_URL to SQLALCHEMY_DATABASE_URI to follow SQLAlchemy conventions.
This commit is contained in:
1 parent
6f795bc939
commit
d05a4f7136
11 files changed
+12
-12
No files matched your search
@@ -14,7 +14,7 @@ class Settings(BaseSettings):
|
||||
"""The application name."""
|
||||
admin_email: str = "imacat@mail.imacat.idv.tw"
|
||||
"""The administrator email address."""
|
||||
SQLALCHEMY_DATABASE_URL: str
|
||||
SQLALCHEMY_DATABASE_URI: str
|
||||
"""The SQLAlchemy database URL."""
|
||||
ANTHROPIC_API_KEY: str
|
||||
"""The Anthropic API key."""
|
||||
|
||||
@@ -30,7 +30,7 @@ class DataSource:
|
||||
:return: The database engine.
|
||||
"""
|
||||
settings: Settings = get_settings()
|
||||
return self.__create_engine(settings.SQLALCHEMY_DATABASE_URL)
|
||||
return self.__create_engine(settings.SQLALCHEMY_DATABASE_URI)
|
||||
|
||||
@cached_property
|
||||
def __session_local(self) -> sessionmaker:
|
||||
|
||||
Reference in new issue
Block a user