Hi,
Following is the in-function cursor object.
Code:import pgdb
__metaclass__=type
class addbook:
conn=pgdb.connect(dsn='localhost:secondbooks',user='postgres',password='postgres1')
curs=conn.cursor()
def addBook(self):
*infunction_curs=self.curs**
*
Hi,
Following is the in-function cursor object.
Code:import pgdb
__metaclass__=type
class addbook:
conn=pgdb.connect(dsn='localhost:secondbooks',user='postgres',password='postgres1')
curs=conn.cursor()
def addBook(self):
*infunction_curs=self.curs**
*