Package CHEM :: Package DB :: Package rdb :: Module database
[hide private]
[frames] | no frames]

Module database



Database.py

Contains classes, methods and global variables which create and populate the database with sources/libraries contained in the repository

Classes [hide private]
  Database
Base Database class
  PQDatabase
Class for PostGreSQL Database
  SourcererDatabase
Class which handles the low-level DB API for updating categories
  ProjectProperties
Class which handles project properties
  CategoryUpdater
Class which handles high-level category updaets
Functions [hide private]
 
test()
Test PQDatabase
 
clean()
Drop db tables
 
setup()
Initialize DB
 
runUpdate()
Entry point for Category Updater
 
status()
Displays statistics about the database
 
usage()
Prints usage
 
main()
Main module entry point
Variables [hide private]
  sourcererDBHost = "localhost"
  sourcererDBName = "test"
  sourcererDBUser = "coderank"
  sourcererDBPW = "coderank"