关闭sql打印
This commit is contained in:
@@ -16,7 +16,7 @@ PASSWORD = 'test9Root'
|
||||
DB_URL = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}'
|
||||
|
||||
# 是否打印执行的sql
|
||||
SHOW_SQL = True
|
||||
SHOW_SQL = False
|
||||
|
||||
Engine = create_engine(DB_URL, echo=SHOW_SQL)
|
||||
Base = declarative_base(Engine)
|
||||
|
||||
Reference in New Issue
Block a user