Package BioSQL :: Module BioSeqDatabase :: Class DBServer
[hide private]
[frames] | no frames]

Class DBServer

source code

Instance Methods [hide private]
 
__init__(self, conn, module, module_name=None) source code
 
__repr__(self) source code
 
__getitem__(self, name) source code
 
keys(self) source code
 
values(self) source code
 
items(self) source code
 
remove_database(self, db_name)
Try to remove all references to items in a database.
source code
 
new_database(self, db_name, authority=None, description=None)
Add a new database to the server and return it.
source code
 
load_database_sql(self, sql_file)
Load a database schema into the given database.
source code
 
commit(self)
Commits the current transaction to the database.
source code
 
rollback(self)
Rolls backs the current transaction.
source code
 
close(self)
Close the connection.
source code
Method Details [hide private]

load_database_sql(self, sql_file)

source code 

Load a database schema into the given database.

This is used to create tables, etc when a database is first created. sql_file should specify the complete path to a file containing SQL entries for building the tables.

close(self)

source code 

Close the connection. No further activity possible.