I
I
Ivan2020-09-06 19:07:07
Python
Ivan, 2020-09-06 19:07:07

Why won't the sqlite3 database be saved after closing the application?

Hello, I would like to ask why after closing the application the sqlite3 database is not saved
Code - https://pastebin.com/3c3ydw0P
There are no errors when switching on

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shubin, 2020-09-07
@EHEVIX

Where is your connection to the database? Path to file? You probably have it in inmemory mode, so nothing is saved.
By the way, your data insertion option is not very good. Use placeholders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question