File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ DB_USERNAME = 'root'
3636DB_PASSWORD = ' mysqlroot'
3737# 数据库名称
3838DB_DATABASE = ' dash-fastapi'
39+ # 是否开启sqlalchemy日志
40+ DB_ECHO = true
3941
4042# -------- Redis配置 --------
4143# Redis主机
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ DB_USERNAME = 'root'
3636DB_PASSWORD = ' mysqlroot'
3737# 数据库名称
3838DB_DATABASE = ' dash-fastapi'
39+ # 是否开启sqlalchemy日志
40+ DB_ECHO = true
3941
4042# -------- Redis配置 --------
4143# Redis主机
Original file line number Diff line number Diff line change 88 f"{ DataBaseConfig .db_host } :{ DataBaseConfig .db_port } /{ DataBaseConfig .db_database } "
99
1010engine = create_engine (
11- SQLALCHEMY_DATABASE_URL , echo = True
11+ SQLALCHEMY_DATABASE_URL , echo = DataBaseConfig . db_echo
1212)
1313SessionLocal = sessionmaker (autocommit = False , autoflush = False , bind = engine )
1414Base = declarative_base ()
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ class AppSettings(BaseSettings):
1111 应用配置
1212 """
1313 app_env : str = 'dev'
14- app_name : str = 'RuoYi -FasAPI'
14+ app_name : str = 'Dash -FasAPI-Admin '
1515 app_root_path : str = '/dev-api'
1616 app_host : str = '0.0.0.0'
1717 app_port : int = 9099
18- app_version : str = '1.0 .0'
18+ app_version : str = '1.4 .0'
1919 app_reload : bool = True
2020
2121
@@ -37,7 +37,8 @@ class DataBaseSettings(BaseSettings):
3737 db_port : int = 3306
3838 db_username : str = 'root'
3939 db_password : str = 'mysqlroot'
40- db_database : str = 'ruoyi-fastapi'
40+ db_database : str = 'dash-fastapi'
41+ db_echo : bool = True
4142
4243
4344class RedisSettings (BaseSettings ):
You can’t perform that action at this time.
0 commit comments