Package gluon :: Module dal :: Class ConnectionPool
[hide private]
[frames] | no frames]

Class ConnectionPool

source code

object --+
         |
        ConnectionPool
Known Subclasses:

Instance Methods [hide private]
 
close(self, action='commit', really=True) source code
 
find_or_make_work_folder(self)
this actually does not make the folder.
source code
 
after_connection_hook(self)
hook for the after_connection parameter
source code
 
after_connection(self)
this it is supposed to be overloaded by adapters
source code
 
reconnect(self, f=None, cursor=True)
this function defines: self.connection and self.cursor (iff cursor is True) if self.pool_size>0 it will try pull the connection from the pool if the connection is not active (closed by db server) it will loop if not self.pool_size or no active connections in pool makes a new one
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
set_folder(folder) source code
 
close_all_instances(action)
to close cleanly databases in a multithreaded environment
source code
Class Variables [hide private]
  POOLS = {}
  check_active_connection = True
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

find_or_make_work_folder(self)

source code 

this actually does not make the folder. it has to be there