Skip to content

Commit

Permalink
sqlalchemy uri for mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav274 committed Sep 14, 2023
1 parent ac42dd2 commit 7b09869
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evadb/third_party/databases/mariadb/mariadb_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def disconnect(self):
if self.connection:
self.connection.close()

def get_sqlalchmey_uri(self) -> str:
return f"mysql+pymysql://{self.user}:{self.password}@{self.host}:{self.port}/{self.database}"

def check_connection(self) -> DBHandlerStatus:
"""
Method for checking the status of database connection.
Expand Down

0 comments on commit 7b09869

Please sign in to comment.