Timeline for Automate clearing everything (database tables, log files, etc.) and starting from a fresh state during development?
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 16, 2020 at 7:52 | vote | accept | Soobeen Park | ||
| Oct 16, 2020 at 7:52 | vote | accept | Soobeen Park | ||
| Oct 16, 2020 at 7:52 | |||||
| Oct 16, 2020 at 7:52 | vote | accept | Soobeen Park | ||
| Oct 16, 2020 at 7:52 | |||||
| Oct 16, 2020 at 6:50 | comment | added | Laiv | Flater's solution is good and it works great with change loggers, frameworks which allow you to load data during the bootstrap so that you can put the database in one or another state. This is very very useful for testing and compatible with local development. However, it depends on the stack you work with. For example, you could do this in Java either for that MongoDB and the PostgreSQL, but don't know if Python has anything similar. | |
| Oct 15, 2020 at 13:09 | comment | added | Flater | Maybe not a direct answer to your question, but a relevant consideration: your situation is exactly why I choose to use in-memory databases when I'm debugging. This means that whenever I start a debug session, the database begins from an empty state (or non-empty predefined default state, if you set up an automatic seed). This does require you to abstract your code so that you can change your data source (real database vs in-memory database), which may be very hard for a beginner. But this is something you will have to learn as a developer eventually, so it's good to already keep it in mind. | |
| Oct 15, 2020 at 12:15 | answer | added | Laiv | timeline score: 2 | |
| Oct 15, 2020 at 12:09 | comment | added | JayZ | I would suggest to look into docker. | |
| Oct 15, 2020 at 11:42 | review | Close votes | |||
| Oct 30, 2020 at 3:06 | |||||
| Oct 15, 2020 at 11:28 | answer | added | Hans-Martin Mosner | timeline score: 1 | |
| Oct 15, 2020 at 11:05 | review | First posts | |||
| Oct 29, 2020 at 11:07 | |||||
| Oct 15, 2020 at 11:02 | history | asked | Soobeen Park | CC BY-SA 4.0 |