Archived
switched mariadb connector to pymysql
This commit is contained in:
1 parent
b4bf9fbf41
commit
570f15001e
3 files changed
+2
-7
No files matched your search
@@ -5,9 +5,7 @@ from . import models
|
||||
|
||||
|
||||
def get_engine(host: str, user: str, passwd: str, db: str) -> Engine:
|
||||
engine = sqlmodel.create_engine(
|
||||
f"mariadb+mariadbconnector://{user}:{passwd}@{host}/{db}"
|
||||
)
|
||||
engine = sqlmodel.create_engine(f"mariadb+pymysql://{user}:{passwd}@{host}/{db}")
|
||||
return engine
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user