Shanice Craw
Shanice Craw

Reputation: 1

Store timer in a SQLite database - python

So I'm using a Python + SQLite for my project and I have a question, is it possible to do something like this:

There are FirstName, LastName, Timer in my database

create_table(FirstName, LastName, Timer)
data_entry(John, Doe, 1 hour)

print_data() #that function should print me John Doe in 1 hour

So the question is can you store timer in your database which should be automatically changed at least every 1 hour. So you don't have to change data manually.

Hope my question is clear enough

Upvotes: 0

Views: 317

Answers (1)

maor10
maor10

Reputation: 1784

The answer for sqlite alone is definitely not- there's no engine running in the background where sqlite is concerned, it's just a single file on your disk.

I would look at cron jobs to do the update. They can run a script periodically

Upvotes: 1

Related Questions