Open a connection to the SQLite database file 'database'. You can use ":memory:" to open a database connection to a database that resides in RAM instead of on disk.
>>> con = sqlite3.connect("file:tutorial.db?mode=ro", uri=True) >>> con.execute("CREATE TABLE readonly(data)") Traceback (most recent call last): OperationalError: attempt to write a readonly database >>> con.close()
sqlite3/connect
connect