![]() If database is opened successfully, it returns a connection object. You can use ":memory:" to open a database connection to a database that resides in RAM instead of on disk. This API opens a connection to the SQLite database file. ![]() If you are looking for a more sophisticated application, then you can look into Python sqlite3 module's official documentation. Python sqlite3 module APIsįollowing are important sqlite3 module routines, which can suffice your requirement to work with SQLite database from your Python program. To use sqlite3 module, you must first create a connection object that represents the database and then optionally you can create a cursor object, which will help you in executing all the SQL statements. You do not need to install this module separately because it is shipped by default along with Python version 2.5.x onwards. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249. SQLite3 can be integrated with Python using sqlite3 module, which was written by Gerhard Haring. ![]() ![]() In this chapter, you will learn how to use SQLite in Python programs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |