Skip to content

Commit

Permalink
Fix run_sync on Database & bump version (#30)
Browse files Browse the repository at this point in the history
Changes:
- fix run_sync on database
- bump version
  • Loading branch information
devkral authored Aug 7, 2024
1 parent d03ba0f commit 6ed9944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion databasez/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from databasez.core import Database, DatabaseURL

__version__ = "0.8.2"
__version__ = "0.8.3"

__all__ = ["Database", "DatabaseURL"]
2 changes: 1 addition & 1 deletion databasez/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def run_sync(
**kwargs: typing.Any,
) -> typing.Any:
async with self.connection() as connection:
return connection.run_sync(fn, *args, **kwargs)
return await connection.run_sync(fn, *args, **kwargs)

async def create_all(self, meta: MetaData, **kwargs: typing.Any) -> None:
async with self.connection() as connection:
Expand Down
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- DatabaseTestClient can now use the improvements in 8.0 too.
- DatabaseTestClient is now tested.
- Fix run_sync on Database objects.

## 0.8.2

Expand Down

0 comments on commit 6ed9944

Please sign in to comment.