后端docker 部署文件大改

This commit is contained in:
BBIT-Kai
2025-11-05 18:08:28 +08:00
parent 3d46cef3bd
commit 5a73018582
10 changed files with 143 additions and 49 deletions
+7
View File
@@ -0,0 +1,7 @@
from sqlalchemy import create_engine, text # ✅ 注意这里导入 text
uri = "mssql+pyodbc://f8_db_test:APN^QPr!K9@122.114.58.23/f8_db_test?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes"
engine = create_engine(uri)
with engine.connect() as conn:
result = conn.execute(text("SELECT count(*) FROM dbo.NONGHU_INFO"))
print(result.scalar())