Initial commit

This commit is contained in:
2026-07-07 15:54:55 +05:30
commit fc55700d0e
55 changed files with 82488 additions and 0 deletions

20
legacy/schema_check.py Normal file
View File

@@ -0,0 +1,20 @@
import pymysql
try:
connection = pymysql.connect(
host='140.245.211.174',
user='appuser',
password='Seekright@123',
database='Maple_Highways',
port=3306,
cursorclass=pymysql.cursors.DictCursor
)
with connection.cursor() as cursor:
cursor.execute("DESCRIBE tbl_site_anomaly")
result = cursor.fetchall()
for row in result:
print(f"{row['Field']} - {row['Type']}")
finally:
if 'connection' in locals() and connection.open:
connection.close()