# SQL ALCHEMY - Establishing connection to mssql
from flask_sqlalchemy import SQLAlchemy
import urllib
params = urllib.parse.quote_plus('DRIVER={SQL Server};SERVER=localhost;DATABASE=myDB;Trusted_Connection=yes;')
app.config['SQLALCHEMY_DATABASE_URI'] = "mssql+pyodbc:///?odbc_connect=%s" % params
db = SQLAlchemy()
db.init_app(app)