Package biana :: Package BianaDB :: Module ConnectorDB :: Class Buffer
[hide private]
[frames] | no frames]

Class Buffer

source code


Class used as an buffer for piana Inserts

Instance Methods [hide private]
 
__init__(self, max_size, parent)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_buffer(self)
Returns the buffer dictionary
source code
 
get_buffer_element(self, key) source code
 
insert2buffer(self, key, table, columns, values, max_elements_in_buffer=None)
Inserts a query into the insert buffer
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, max_size, parent)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

insert2buffer(self, key, table, columns, values, max_elements_in_buffer=None)

source code 

Inserts a query into the insert buffer

Alert! Only used for insert buffers!!!

Returns "None" if the query can be added to the buffer or the multiple query associated if it cannot be inserted (because buffer is full)