/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Functions | Variables
DybPython::tab Namespace Reference

Classes

class  DebugValidityOrdering
class  Rollback
class  ctxdict
class  Tab

Functions

def t_
def rst_title
def test_ctx
def test_scan
def test_rollback
def test_payloadless

Variables

tuple log = logging.getLogger(__name__)
tuple db = DB()
tuple ta = db.tab('CalibPmtSpec')

Function Documentation

def DybPython::tab::t_ (   _)
Convert a datetime into a TimeStamp

Definition at line 72 of file tab.py.

00073          :
00074     """
00075     Convert a datetime into a TimeStamp
00076     """
00077     from DybDbi import TimeStamp
00078     return TimeStamp.fromAssumedUTCDatetime(_)

def DybPython::tab::rst_title (   msg,
  cha = "~" 
)

Definition at line 79 of file tab.py.

00080                               :
00081     return  "%s\n%s\n\n" % ( msg, cha * len(msg) )

def DybPython::tab::test_ctx ( )

Definition at line 452 of file tab.py.

00453               :
00454     from db import DB
00455     db = DB("tmp_offline_db")
00456     for tab in db.showpaytables:
00457         ta = db.tab(tab)
00458 
00459         lastinsert = ta.vlast('INSERTDATE')
00460         lctxs = ta.looped_ctxs()
00461         actxs = ta.actual_ctxs()
00462 
00463         log.info("tab %-20s lastinsert %-20s :  %-4s(%-4s) looped(actual) ctx " % (tab, lastinsert, len(lctxs),len(actxs)) )
00464         for ctx in lctxs:
00465             log.debug("lctx %s " % ctx)
00466         for ctx in actxs:
00467             log.debug("actx %s " % ctx)
00468     

def DybPython::tab::test_scan ( )

Definition at line 469 of file tab.py.

00470                :
00471     from db import DB
00472     db = DB("tmp_offline_db")
00473     for tab in db.showpaytables:
00474         ta = db.tab(tab)
00475         actxs = ta.actual_ctxs()
00476         for ctx in actxs:
00477             ta.fullscan(ctx)

def DybPython::tab::test_rollback ( )

Definition at line 478 of file tab.py.

00479                    :
00480     from db import DB
00481     ta = db.tab('CableMap')
00482     opts = {}
00483     actxs = ta.actual_ctxs()
00484     ctx = actxs[-1]
00485     print ctx
00486     insertdates = ta.vdistinct("INSERTDATE")
00487     times = ta.vtimes()
00488 
00489     with Rollback(insertdates[-1]):
00490         tsc = ta.tscan( times, ctx, opts ) 

def DybPython::tab::test_payloadless ( )

Definition at line 491 of file tab.py.

00492                       :
00493     from db import DB
00494     db = DB("tmp_offline_db")
00495     #ta = db.tab('CableMap')
00496     ta = db.tab('PhysAd')
00497     for e in ta.vpayloadless():
00498         print e
00499 


Variable Documentation

tuple DybPython::tab::log = logging.getLogger(__name__)

Definition at line 3 of file tab.py.

tuple DybPython::tab::db = DB()

Definition at line 506 of file tab.py.

tuple DybPython::tab::ta = db.tab('CalibPmtSpec')

Definition at line 507 of file tab.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:41 for DybPython by doxygen 1.7.4