database_access_string Namespace Reference

Classes

class  HasDebug

Functions

def usage
def main

Function Documentation

def database_access_string::main (  ) 
A simple script for evaluating the string database_updater.py will use for connecting to MySQL database

Definition at line 17 of file database_access_string.py.

00017           :
00018     """A simple script for evaluating the string database_updater.py will use for connecting to MySQL database""" 
00019 
00020     if len(sys.argv) > 1 : 
00021         usage()
00022         exit()
00023     hd = HasDebug() 
00024     dbi = DatabaseInterface(hd,0) 
00025     print dbi.access_string
00026 
00027 
00028 
if __name__ == "__main__":

def database_access_string::usage (  ) 

Definition at line 11 of file database_access_string.py.

00011            :
00012     print """Returns the account string used by database_updater.py.
00013 Example:     mysql `database_access_string.py`
00014 This is convenient to connect interactively to the same DB with the same permissions."""
00015 
00016 
def main():


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1