Skip to content

Commit 9ce6c1f

Browse files
authored
Fix branch (#60)
* fix wrong import path in examples and documentations * Module decorator is not creating the EXPORT metadata correctly. I believe it should be setting the attribute with self.exports instead of imports.
1 parent 21e6b04 commit 9ce6c1f

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

docs/async_orm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ There are two ways of creating service.
227227
from sqlalchemy import select
228228
from sqlalchemy.ext.asyncio import AsyncSession
229229

230-
from nest.core.decorators import async_db_request_handler
230+
from nest.core.decorators.database import async_db_request_handler
231231
from nest.core import Injectable
232232

233233
from .example_entity import Example as ExampleEntity

docs/mongodb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Implement services to handle business logic.
231231
```python
232232
from .examples_model import Examples
233233
from .examples_entity import Examples as ExamplesEntity
234-
from nest.core.decorators import db_request_handler
234+
from nest.core.decorators.database import db_request_handler
235235
from nest.core import Injectable
236236

237237

docs/sync_orm.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ Implement services to handle business logic.
190190
from src.config import config
191191
from .examples_model import Examples
192192
from .examples_entity import Examples as ExamplesEntity
193-
from nest.core.decorators import db_request_handler, Injectable
193+
from nest.core.decorators.database import db_request_handler
194+
from nest.core import Injectable
194195

195196

196197
@Injectable

examples/OrmAsyncApp/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import uvicorn
22

33
if __name__ == "__main__":
4-
uvicorn.run("src.app_module:http_server", host="0.0.0.0", port=8000, reload=True)
4+
uvicorn.run("src.app_module:http_server", host="0.0.0.0", port=8001, reload=True)

examples/OrmAsyncApp/src/example/example_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from sqlalchemy.ext.asyncio import AsyncSession
33

44
from nest.core import Injectable
5-
from nest.core.decorators import async_db_request_handler
5+
from nest.core.decorators.database import async_db_request_handler
66

77
from .example_entity import Example as ExampleEntity
88
from .example_model import Example

examples/OrmAsyncApp/src/product/product_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from sqlalchemy.ext.asyncio import AsyncSession
33

44
from nest.core import Injectable
5-
from nest.core.decorators import async_db_request_handler
5+
from nest.core.decorators.database import async_db_request_handler
66

77
from .product_entity import Product as ProductEntity
88
from .product_model import Product

examples/OrmAsyncApp/src/user/user_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from sqlalchemy.ext.asyncio import AsyncSession
77

88
from nest.core import Injectable
9-
from nest.core.decorators import async_db_request_handler
9+
from nest.core.decorators.database import async_db_request_handler
1010

1111
from .user_entity import User as UserEntity
1212
from .user_model import User

examples/OrmSyncApp/src/example/example_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from nest.core import Injectable
2-
from nest.core.decorators import db_request_handler
2+
from nest.core.decorators.database import db_request_handler
33

44
from ..config import config
55
from .example_entity import Example as ExampleEntity

examples/OrmSyncApp/src/product/product_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from nest.core import Injectable
2-
from nest.core.decorators import db_request_handler
2+
from nest.core.decorators.database import db_request_handler
33

44
from ..config import config
55
from .product_entity import Product as ProductEntity

examples/OrmSyncApp/src/user/user_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from nest.core import Injectable
2-
from nest.core.decorators import db_request_handler
2+
from nest.core.decorators.database import db_request_handler
33

44
from ..config import config
55
from .user_entity import User as UserEntity

0 commit comments

Comments
 (0)