Skip to content

Commit

Permalink
add types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ke Wu committed Dec 17, 2024
1 parent 6fcd836 commit 1248d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/qpydao/database_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class DatabaseClient:
"""Database client, both synchronous and asynchronous."""

def __init__(self, config: DatabaseConfig = None):
self.config = config
self.config:DatabaseConfig = config
self._engine = None
self._async_engine = None

Expand Down Expand Up @@ -249,7 +249,7 @@ def get_db(self, db_name: str = "default") -> DatabaseClient:


databases: Databases = Databases()
db = databases.default_client()
db:DatabaseConfig = databases.default_client()

def init_database(database: DatabaseClient, schema_name: str = ""):
"""Init postgresql database
Expand Down
1 change: 0 additions & 1 deletion src/qpydao/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def check_db_url(self):
_validate_param("port", self.host)
_validate_param("database", self.host)


class SqlRequestModel(BaseModel):
"""SqlRequestModel: Model for SQLRequest."""

Expand Down

0 comments on commit 1248d64

Please sign in to comment.