first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import mysql.connector
|
||||
from flask import current_app
|
||||
|
||||
def get_db_connection():
|
||||
return mysql.connector.connect(
|
||||
host=current_app.config['MYSQL_HOST'],
|
||||
user=current_app.config['MYSQL_USER'],
|
||||
password=current_app.config['MYSQL_PASSWORD'],
|
||||
database=current_app.config['MYSQL_DB']
|
||||
)
|
||||
Reference in New Issue
Block a user