Package biana :: Package BianaDB :: Module database :: Class Database
[hide private]
[frames] | no frames]

Class Database

source code


Class to represent a relational database

Instance Methods [hide private]
 
__init__(self, tables=None)
"tables": a list of table objects that are contained in the database
source code
 
remove_tables(self) source code
 
get_sql_query(self, ignore_primary_keys=False) source code
 
add_table(self, table) source code
 
get_tables(self)
Get basic tables
source code
 
get_all_tables(self) source code
 
get_drop_sql_query(self) source code
 
optimize_database(self, optimize=False, analyze=False)
Returns the queries to optimize database
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tables=None)
(Constructor)

source code 

"tables": a list of table objects that are contained in the database

Overrides: object.__init__