Skip to content

Commit f2e55b3

Browse files
committed
Release 🍓 0.3.0
1 parent 317b0f3 commit f2e55b3

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
CHANGELOG
22
=========
33

4+
0.3.0 - 2023-09-26
5+
------------------
6+
7+
Adds support for async sessions. To use:
8+
9+
```python
10+
from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
11+
from strawberry_sqlalchemy_mapper import StrawberrySQLAlchemyLoader
12+
13+
url = "postgresql://..."
14+
engine = create_async_engine(url)
15+
sessionmaker = async_sessionmaker(engine)
16+
17+
loader = StrawberrySQLAlchemyLoader(async_bind_factory=sessionmaker)
18+
```
19+
20+
Contributed by [mattalbr](https://github.com/mattalbr) via [PR #53](https://github.com/strawberry-graphql/strawberry-sqlalchemy/pull/53/)
21+
22+
423
0.2.1 - 2023-09-21
524
------------------
625

RELEASE.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "strawberry-sqlalchemy-mapper"
33
packages = [ { include = "strawberry_sqlalchemy_mapper", from = "src" } ]
4-
version = "0.2.1"
4+
version = "0.3.0"
55
description = "A library for autogenerating Strawberry GraphQL types from SQLAlchemy models."
66
authors = ["Tim Dumol <[email protected]>"]
77
license = "MIT"

0 commit comments

Comments
 (0)