db
index
/mnt/disk2/workspace/fruitybanking/db.py

# MySQL DB =============================
#import MySQLdb
#mysql_host = "localhost"
#mysql_user = "root"
#mysql_password = ""
#mysql_db = "fruitybanking"

 
Modules
       
sqlite

 
Functions
       
executeQuery(sql)
Runs the action query given
getConnection()
Creates a connection to the database and returns it
getId(table)
Returns the next ID in sequence for a table.
Does this by basically doing a MAX on the ID
field and returning that +1 (or 1 if the table
has no records)
runQuery(sql)
Runs the query given and returns the resultset
as a grid of tuples