Show
Ignore:
Timestamp:
09/15/04 00:29:13 (20 years ago)
Author:
jalet
Message:

First version of dumpykota. Works fine but only with PostgreSQL backend
for now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/pgstorage.py

    r1520 r1717  
    2222# 
    2323# $Log$ 
     24# Revision 1.37  2004/09/14 22:29:12  jalet 
     25# First version of dumpykota. Works fine but only with PostgreSQL backend 
     26# for now. 
     27# 
    2428# Revision 1.36  2004/06/03 23:14:11  jalet 
    2529# Now stores the job's size in bytes in the database. 
     
    196200        self.tool.logdebug("Transaction aborted.") 
    197201         
    198     def doSearch(self, query) : 
    199         """Does a search query.""" 
     202    def doRawSearch(self, query) : 
     203        """Does a raw search query.""" 
    200204        query = query.strip()     
    201205        if not query.endswith(';') :     
     
    207211            raise PyKotaStorageError, msg 
    208212        else :     
    209             if (result is not None) and (result.ntuples() > 0) :  
    210                 return result.dictresult() 
     213            return result 
    211214             
     215    def doSearch(self, query) :         
     216        """Does a search query.""" 
     217        result = self.doRawSearch(query) 
     218        if (result is not None) and (result.ntuples() > 0) :  
     219            return result.dictresult() 
     220         
    212221    def doModify(self, query) : 
    213222        """Does a (possibly multiple) modify query."""