I have an existing piece of code that uses a database. In order to understand its algorithm, I try to represent it with a flow chart. In this algorithm I need to fetch some data from the database in order to run a procedure. For example I have this algorithm that stores a reservation for a hotel room:
- Fetch url slug, and room booking datetime and booking name.
- From url slug get the hotel id from the database.
- In the database table booking save the name, datetime and hotel id.
How can I represent that I fetched some data from the database and give a clear view of data used in the algorithm? Practically the hotel id is input data that I generate in a second step and I would love to have a clean-cut representation of them.