Philémon
✅ PostgreSQL in docker container
Oh that's really nice, I didn't know it was a thing, at least for production databases 😮
But maybe it will require from me a better knowledge of how docker works, to manage well the DB, I don't think I will have the time to learn it enough, before my internship starts 😞
10 replies
✅ PostgreSQL in docker container
Oh right, thank you very much, it's much clearer now ❤️
So if I understand correctly, the data is saved between a stop and a relaunch of the container, but it's a bit fragile in the sense that deleting the container will also delete all the data saved in it.
I've chosen to use a docker container for my PostgreSQL database solely for the development of my application. So if I've understood correctly, as long as I'm still in development, there's no problem in doing it this way 😄
And in the future, I hope to deploy my application using an Azure database-style service. I won't need docker for my database at this stage.
Once again, thank you very much for your answers!! 😁
10 replies
✅ My API returns 500 internal server error with the SQL exception text, why?
Yes I run it in development!
The only middleware related to dev env that I see is this :
Is this the middleware that add the dev exceptions?
In any case, I guess I should not be bothered by these dev exceptions if it only appears in a dev environment?
7 replies
✅ How to properly set a default value as UtcNow with EF Core and PostgreSQL
I tought about it! but I didn't find any postgres function that gives the UtcNow.
For example, the function now() gives you the datetime according to your server timezone unfortunately.
What do you think would be the benefits of having my datetime generated on the DB Side? If i find something that works?
9 replies