comparison roundup/backends/back_sqlite.py @ 1195:e0032f4ab334

added missing stringFind to sql backends
author Richard Jones <richard@users.sourceforge.net>
date Tue, 24 Sep 2002 01:59:28 +0000
parents 08a13a84ed43
children dd52bf10f934
comparison
equal deleted inserted replaced
1194:d76b3f8d7bc4 1195:e0032f4ab334
1 # $Id: back_sqlite.py,v 1.4 2002-09-23 06:48:35 richard Exp $ 1 # $Id: back_sqlite.py,v 1.5 2002-09-24 01:59:28 richard Exp $
2 __doc__ = ''' 2 __doc__ = '''
3 See https://pysqlite.sourceforge.net/ for pysqlite info 3 See https://pysqlite.sourceforge.net/ for pysqlite info
4 ''' 4 '''
5 import base64, marshal 5 import base64, marshal
6 from roundup.backends.rdbms_common import * 6 from roundup.backends.rdbms_common import *
30 30
31 def sql_fetchone(self): 31 def sql_fetchone(self):
32 ''' Fetch a single row. If there's nothing to fetch, return None. 32 ''' Fetch a single row. If there's nothing to fetch, return None.
33 ''' 33 '''
34 return self.cursor.fetchone() 34 return self.cursor.fetchone()
35
36 def sql_fetchall(self):
37 ''' Fetch a single row. If there's nothing to fetch, return [].
38 '''
39 return self.cursor.fetchall()
35 40
36 def sql_commit(self): 41 def sql_commit(self):
37 ''' Actually commit to the database. 42 ''' Actually commit to the database.
38 43
39 Ignore errors if there's nothing to commit. 44 Ignore errors if there's nothing to commit.

Roundup Issue Tracker: http://roundup-tracker.org/