Package trac :: Package db :: Module api :: Class DatabaseManager

Class DatabaseManager

source code

    object --+    
             |    
core.Component --+
                 |
                DatabaseManager

Nested Classes

Inherited from core.Component: __metaclass__

Instance Methods
 
__init__(self, compmgr, init=<function __init__ at 0x2df4488>, cls=<class 'trac.db.api.DatabaseManager'>)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
init_db(self) source code
 
get_connection(self) source code
 
shutdown(self, tid=None) source code
 
backup(self, dest=None)
Save a backup of the database.
source code
 
get_connector(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods

Inherited from core.Component: __new__, implements

Class Variables
  connection_uri = <Option [trac] "database">
  backup_dir = <Option [trac] "backup_dir">
  timeout = <IntOption [trac] "timeout">
  debug_sql = <BoolOption [trac] "debug_sql">
Properties
  connectors
List of components that implement IDatabaseConnector

Inherited from object: __class__

Method Details

__init__(self, compmgr, init=<function __init__ at 0x2df4488>, cls=<class 'trac.db.api.DatabaseManager'>)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

backup(self, dest=None)

source code 

Save a backup of the database.

@param dest: base filename to write to. Returns the file actually written.


Property Details

connectors

List of components that implement IDatabaseConnector
Get Method:
unreachable.extensions(component) - Return a list of components that declare to implement the extension point interface.