Format Python code and mark release script executable
This commit is contained in:
+9
-7
@@ -7,16 +7,18 @@ from sqlalchemy.orm import DeclarativeBase
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
class Base(DeclarativeBase):
|
||||
pass
|
||||
|
||||
|
||||
database_url = URL.create(
|
||||
drivername = "mysql+pymysql",
|
||||
username = os.getenv("MYSQL_USER"),
|
||||
password = os.getenv("MYSQL_PASSWORD"),
|
||||
host = os.getenv("MYSQL_HOST"),
|
||||
port = int(os.getenv("MYSQL_PORT")),
|
||||
database = os.getenv("MYSQL_DATABASE"),
|
||||
)
|
||||
drivername="mysql+pymysql",
|
||||
username=os.getenv("MYSQL_USER"),
|
||||
password=os.getenv("MYSQL_PASSWORD"),
|
||||
host=os.getenv("MYSQL_HOST"),
|
||||
port=int(os.getenv("MYSQL_PORT")),
|
||||
database=os.getenv("MYSQL_DATABASE"),
|
||||
)
|
||||
|
||||
engine = create_engine(database_url, pool_pre_ping=True)
|
||||
|
||||
Reference in New Issue
Block a user