Creates a new checked connection to the database manager. It uses the
|create| function to get new connections.
This class must not be used directly from a web application, unless
you know what are you doing. Instead a new sub-class or managing methods
must be created validating tables in insertions, deletions, and
updates.
|
|
|
|
|
|
|
|
|
|
|
cursor(self)
Returns a cursor from the RDBM backend and the connection owner of
the cursor (cursor,connection). |
source code
|
|
|
|
|
hquery(self,
sqlstring,
values={ } )
Performs the |sqlstring| query and returns an array of
dictionaries (fieldname => value) |
source code
|
|
|
query(self,
sqlstring,
values={ } )
Performs the |sqlstring| query and returns an array of arrays of
field values |
source code
|
|
|
ne_delete(self,
tabname,
condition)
Deletes from |tabname| table where the dictionary |cond| is
true |
source code
|
|
|
|
|
ne_insert(self,
tabname,
keyvalues)
Creates the data to execute an Insert |keyvalues| (dictionary of
fieldname => value) into the table |tabname| |
source code
|
|
|
insert(self,
tabname,
keyvalues)
Insert |keyvalues| (dictionary of fieldname => value) into the
table |tabname| |
source code
|
|
|
|
|
ne_update(self,
tabname,
newvalues,
condition)
Creates an sql statement to Update to |newvalues| (dictionary of
fieldname => value) the table |tabname| where the |condition| is
True. |
source code
|
|
|
update(self,
tabname,
newvalues,
condition)
Update to |newvalues| (dictionary of fieldname => value) the
table |tabname| where the |condition| is True. |
source code
|
|