pysqlite multiple connections

Tertius tertiusc at netscape.net
Wed May 7 15:17:29 EDT 2003


How can I manage multiple connections or cursors with
  pysqlite? (ver 0.4.1)

Many thanks
Tertius


import sqlite

cnct1 = sqlite.connect(db="/tmp/db")
crsr1 = cnct1.cursor()
print "cnct1:", cnct1
print "crsr1:", crsr1

cnct2 = sqlite.connect(db="/tmp/db")
crsr2 = cnct2.cursor()
print "cnct2:", cnct2
print "crsr2:", crsr2





More information about the Python-list mailing list