Represents a BioSQL database continaing namespaces
(sub-databases).
This acts like a Python dictionary, giving access to each namespace
(defined by a row in the biodatabase table) as a BioSeqDatabase
object.
|
__init__(self,
conn,
module,
module_name=None) |
source code
|
|
|
|
|
|
|
__len__(self)
Number of namespaces (sub-databases) in this database. |
source code
|
|
|
__contains__(self,
value)
Check if a namespace (sub-database) in this database. |
source code
|
|
|
__iter__(self)
Iterate over namespaces (sub-databases) in the database. |
source code
|
|
|
iterkeys(self)
Iterate over namespaces (sub-databases) in the database. |
source code
|
|
|
itervalues(self)
Iterate over BioSeqDatabase objects in the database. |
source code
|
|
|
iteritems(self)
Iterate over (namespace, BioSeqDatabase) in the database. |
source code
|
|
|
keys(self)
List of namespaces (sub-databases) in the database. |
source code
|
|
|
values(self)
List of BioSeqDatabase objects in the database. |
source code
|
|
|
items(self)
List of (namespace, BioSeqDatabase) for entries in the database. |
source code
|
|
|
__delitem__(self,
name)
Remove a namespace and all its entries. |
source code
|
|
|
|
|
new_database(self,
db_name,
authority=None,
description=None)
Add a new database to the server and return it. |
source code
|
|
|
|
|
commit(self)
Commits the current transaction to the database. |
source code
|
|
|
rollback(self)
Rolls backs the current transaction. |
source code
|
|
|
|