Title: Question: How to Implement DDD Without ORM Mapping Functionality? · Issue #86 · cosmicpython/code · GitHub
Open Graph Title: Question: How to Implement DDD Without ORM Mapping Functionality? · Issue #86 · cosmicpython/code
X Title: Question: How to Implement DDD Without ORM Mapping Functionality? · Issue #86 · cosmicpython/code
Description: https://github.com/molpako/Architecture-Patterns-with-Python Hello, I’m using this book to study DDD. At the same time, I wanted to incorporate recent trends into my learning, so I started studying with FastAPI and sqlc. However, since s...
Open Graph Description: https://github.com/molpako/Architecture-Patterns-with-Python Hello, I’m using this book to study DDD. At the same time, I wanted to incorporate recent trends into my learning, so I started studying...
X Description: https://github.com/molpako/Architecture-Patterns-with-Python Hello, I’m using this book to study DDD. At the same time, I wanted to incorporate recent trends into my learning, so I started studying...
Opengraph URL: https://github.com/cosmicpython/code/issues/86
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: How to Implement DDD Without ORM Mapping Functionality?","articleBody":"https://github.com/molpako/Architecture-Patterns-with-Python\r\n\r\nHello, I’m using this book to study DDD. At the same time, I wanted to incorporate recent trends into my learning, so I started studying with FastAPI and [sqlc](https://github.com/sqlc-dev/sqlc-gen-python).\r\n\r\n\r\n\r\nHowever, since sqlc doesn’t provide object-to-table mapping functionality, I’m unsure how to solve this, and I need help.\r\n\r\nIn the book, SQLAlchemy’s mapper is used to bind the domain model to the table, and storage changes are accomplished by modifying the aggregate. sqlc is an ORM specialized in generating Go objects from raw SQL, so it doesn’t have the mapping functionality that the book uses.\r\n\r\nWould it be appropriate to implement the functionality in the repository to reflect changes in the domain class to the DB, and then call that functionality in the service layer after making changes to the domain class? Or is it impossible to achieve DDD without an ORM that has mapping functionality?\r\n","author":{"url":"https://github.com/molpako","@type":"Person","name":"molpako"},"datePublished":"2024-08-12T07:18:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/86/code/issues/86"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c05a77dd-92cc-19b1-183c-02eb9d39e064 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD7A:331CB5:14FDCC3:1B4CF57:6976E56B |
| html-safe-nonce | 0bb7914c07de13dc7d690c105ef2df677b42d0e05f3db5349acc0b5882548c3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDdBOjMzMUNCNToxNEZEQ0MzOjFCNENGNTc6Njk3NkU1NkIiLCJ2aXNpdG9yX2lkIjoiODA0Mzc0NjQ3MTc3NTIzMzM4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5bdd384ff890ce227eeba466c079de5ee87f519da9f0758e28d20dcc8335181d |
| hovercard-subject-tag | issue:2460222678 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cosmicpython/code/86/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4b4f71779440b97587d5439ad7ef3bfe8672d7ff9b1bcfdc54ec7ac1799d2e1/cosmicpython/code/issues/86 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4b4f71779440b97587d5439ad7ef3bfe8672d7ff9b1bcfdc54ec7ac1799d2e1/cosmicpython/code/issues/86 |
| og:image:alt | https://github.com/molpako/Architecture-Patterns-with-Python Hello, I’m using this book to study DDD. At the same time, I wanted to incorporate recent trends into my learning, so I started studying... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | molpako |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/cosmicpython/code git https://github.com/cosmicpython/code.git |
| octolytics-dimension-user_id | 47350834 |
| octolytics-dimension-user_login | cosmicpython |
| octolytics-dimension-repository_id | 169221290 |
| octolytics-dimension-repository_nwo | cosmicpython/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 169221290 |
| octolytics-dimension-repository_network_root_nwo | cosmicpython/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width