0

I am creating a parking booking system in python.

The last time slot ends at 3PM, I want to do something where I clear the whole SQL database at 3PM so that the bookings don't need to be manually deleted.

is there any way of doing this in python?

Useme Alehosaini
  • 2,998
  • 6
  • 18
  • 26
  • Does this answer your question? [How do I get a Cron like scheduler in Python?](https://stackoverflow.com/questions/373335/how-do-i-get-a-cron-like-scheduler-in-python) – Random Davis Jan 26 '21 at 21:26
  • 1
    What RDBMS? MySQL has an Event Scheduler, you can run a query at the same time each day. – Barmar Jan 26 '21 at 21:26
  • 1
    Have you considered using timestamps and querying for records in the current day? That way you don't necessarily need to delete anything. – Matthew Strawbridge Jan 26 '21 at 21:33

0 Answers0