katayama8000 / axum-ddd-rust

https://medium.com/@tattu.0310/building-an-api-server-with-rust-and-ddd-86a276890a36
11 stars 2 forks source link

Question: Read from mysql database #17

Open DewinderB opened 2 months ago

DewinderB commented 2 months ago

Hi guys,

really enjoyed this projects still learning....with a few questions: i connected to the mysql db locally (not using docker) and added the database, tables and rows. When i want to get the first row of the circle it is telling me: circle not found -> expected was circle 101.

When i created a new circle it is successfully created and i can get the responding data back and when i ask for the newly created row i also get the data back. But looking in my local mysql database i actually dont see the newly added row i only see the circle rows with id: 101, 102 which i expecting to see and the newly inserted row.... am i missing something here ???

Greetz, Dewinder

katayama8000 commented 2 months ago

Thank you for raising the issue, @DewinderB.

Firstly, I recommend using Docker as I've configured an init.sql file to initialize the database with initial data when the container is launched.

Additionally, I'm still actively developing this API. The create method was not implemented when you last tried it, but it is now available. While it should be functional, there may still be some bugs present. If you encounter any issues, please feel free to create a pull request. Let's collaborate to finalize this API.

katayama8000 commented 1 month ago

@DewinderB I fixed it!!!