Module XALTdb :: Class XALTdb
[hide private]
[frames] | no frames]

Class XALTdb

source code

object --+
         |
        XALTdb

This XALTdb class opens the XALT database and is responsible for all the database interactions.

Instance Methods [hide private]
 
__init__(self, confFn)
Initialize the class and save the db config file.
source code
 
__readFromUser(self)
Ask user for database access info.
source code
 
__readConfig(self)
Read database access info from config file.
source code
 
connect(self, db=None)
Public interface to connect to DB.
source code
 
db(self)
Return name of db
source code
 
link_to_db(self, reverseMapT, linkT)
Stores the link table data into the XALT db
source code
 
load_objects(self, conn, objA, reverseMapT, syshost, tableName, index)
Stores the objects that make an executable into the XALT DB.
source code
 
run_to_db(self, reverseMapT, runT)
Store the "run" data into the database.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, confFn)
(Constructor)

source code 

Initialize the class and save the db config file.

Overrides: object.__init__

__readFromUser(self)

source code 

Ask user for database access info. (private)

__readConfig(self)

source code 

Read database access info from config file. (private)

connect(self, db=None)

source code 

Public interface to connect to DB.

Parameters:
  • db - If this exists it will be used.

link_to_db(self, reverseMapT, linkT)

source code 

Stores the link table data into the XALT db

Parameters:
  • reverseMapT - The reverse map table that maps directories to modules
  • linkT - The table that contains the link data.

load_objects(self, conn, objA, reverseMapT, syshost, tableName, index)

source code 

Stores the objects that make an executable into the XALT DB.

Parameters:
  • conn - The db connection object
  • objA - The array of objects that are stored.
  • reverseMapT - The map between directories and modules
  • syshost - The system host name (stampede, darter), not login1.stampede.tacc.utexas.edu
  • tableName - Name of the object table.
  • index - The db index for the join table.