blob: f035308c180b44e908e40406c3f55556d2501034 [file] [log] [blame]
22301110e361be52025-06-08 15:24:14 +08001import pymysql
2
3DB_CONFIG = {
4 'host': '49.233.215.144',
5 'port': 3306,
6 'user': 'sy',
7 'password': 'sy_password',
8 'database': 'pt_station',
9 'charset': 'utf8mb4',
10 'cursorclass': pymysql.cursors.DictCursor
11}
12
13def get_db_connection():
14 return pymysql.connect(**DB_CONFIG)