Take the code for connecting to a SQLite database, creating a courser, passing a command, commit, and close the connection into it's own method that other methods can call to interact with the SQLite database.
This new method will be an interface for other methods and will not be used directly by outside functions or methods.
Take the code for connecting to a SQLite database, creating a courser, passing a command, commit, and close the connection into it's own method that other methods can call to interact with the SQLite database.
This new method will be an interface for other methods and will not be used directly by outside functions or methods.