blob: f035308c180b44e908e40406c3f55556d2501034 [file] [log] [blame]
import pymysql
DB_CONFIG = {
'host': '49.233.215.144',
'port': 3306,
'user': 'sy',
'password': 'sy_password',
'database': 'pt_station',
'charset': 'utf8mb4',
'cursorclass': pymysql.cursors.DictCursor
}
def get_db_connection():
return pymysql.connect(**DB_CONFIG)