Package repository :: Package persistence :: Module DBRepository :: Class DBRepository
[frames | no frames]

Type DBRepository

 object --+            
          |            
CRepository --+        
              |        
     Repository --+    
                  |    
 OnDemandRepository --+
                      |
                     DBRepository


A Berkeley DB based repository.
Method Summary
  __init__(self, dbHome)
Construct an DBRepository giving it a DB container pathname
  backup(self, dbHome)
  close(self)
Close the repository.
  create(self, **kwds)
Create a new repository in self.dbHome.
  createView(self, name, version)
Create a repository view.
  delete(self)
Delete a repository.
  open(self, **kwds)
Open a repository in self.dbHome.
Inherited from Repository: __repr__, check, dir, getCurrentView, getOpenViews, setCurrentView, setDebug
Inherited from CRepository: __new__, isClosed, isDebug, isOpen, isRefCounted
Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __str__

Property Summary
Inherited from Repository: view, views

Instance Variable Summary
Inherited from CRepository: repository, store

Class Variable Summary
int OPEN_FLAGS = 172096                                                                
UUID openUUID = <UUID: c54211ac-131a-11d9-8475-000393db837c>
Inherited from Repository: itsUUID
Inherited from CRepository: CLOSED, DEBUG, OPEN, RAMDB, REFCOUNTED, VERIFY

Method Details

__init__(self, dbHome)
(Constructor)

Construct an DBRepository giving it a DB container pathname
Overrides:
repository.persistence.Repository.Repository.__init__

close(self)

Close the repository.

The repository's underlying persistence implementation is closed.
Overrides:
repository.persistence.Repository.Repository.close (inherited documentation)

create(self, **kwds)

Create a new repository in self.dbHome. Some implementations may remove files for existing repositories in the same location.

A number of keywords can be passed to this method. Their support depends on the actual implementation chosen for the persistence layer.
Overrides:
repository.persistence.Repository.Repository.create (inherited documentation)

createView(self, name=None, version=None)

Create a repository view.

The repository view is created open. See RepositoryView for more details.
Parameters:
name - the optional name of the view. By default, the name of the repository view is set to the name of the thread creating it which assumed to the threading for which it is intended.
           (type=a string)
Overrides:
repository.persistence.Repository.OnDemandRepository.createView (inherited documentation)

delete(self)

Delete a repository.

Files for the repository in self.dbHome are removed.
Overrides:
repository.persistence.Repository.Repository.delete (inherited documentation)

open(self, **kwds)

Open a repository in self.dbHome.

A number of keywords can be passed to this method. Their support depends on the actual implementation chosen for the persistence layer.
Overrides:
repository.persistence.Repository.Repository.open (inherited documentation)

Class Variable Details

OPEN_FLAGS

Type:
int
Value:
172096                                                                

openUUID

Type:
UUID
Value:
<UUID: c54211ac-131a-11d9-8475-000393db837c>                           

Generated by Epydoc 2.1 on Mon Dec 19 13:33:28 2005 http://epydoc.sf.net