Package lemon :: Package external :: Package gadfly :: Module store :: Class DB_Logger
[show private | hide private]
[frames | no frames]

Class DB_Logger


quick and dirty global db logger.

Method Summary
  __init__(self, filename, backupname)
  __repr__(self)
  clear(self)
  clear_log_file(self)
  commit(self, verbose, transactionid)
add commit, if appropriate, flush.
  dump(self)
  log(self, operation, transactionid)
transactionid of None means no transaction: immediate.
  read_records(self, file)
return log record as (index, (tid, op)) list...
  recover(self, db, restart)
  restart(self)
  shutdown(self)
  startup(self)

Class Variable Summary
int is_scratch = 0                                                                     
int verbose = 0                                                                     

Method Details

commit(self, verbose=0, transactionid=None)

add commit, if appropriate, flush.

log(self, operation, transactionid=None)

transactionid of None means no transaction: immediate.

read_records(self, file)

return log record as (index, (tid, op)) list

Class Variable Details

is_scratch

Type:
int
Value:
0                                                                     

verbose

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.0 on Mon Nov 10 15:08:07 2003 http://epydoc.sf.net