I have a SQLite/Python code that runs the query command as follows.
def queryDB(self, command_):_
self.cursor.execute(command_)
self.connector.commit() # <---- ???
...
it works pretty well, but I have some questions.
- Why connector.commit() is needed? What does it do?
- What does cursor.execute() do?