summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 410f25d)
raw | patch | inline | side by side (parent: 410f25d)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 31 Mar 2004 23:08:08 +0000 (23:08 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 31 Mar 2004 23:08:08 +0000 (23:08 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2238 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_sqlite.py | patch | blob | history |
index 9c5d35ddea2252e2f6b8b6da9e97e983f1c69285..e2517103e7aa7ee9cd3e51214954f93dd5972f38 100644 (file)
-# $Id: back_sqlite.py,v 1.22 2004-03-26 06:38:10 richard Exp $
+# $Id: back_sqlite.py,v 1.23 2004-03-31 23:08:08 richard Exp $
'''Implements a backend for SQLite.
See https://pysqlite.sourceforge.net/ for pysqlite info
class Database(rdbms_common.Database):
# char to use for positional arguments
arg = '%s'
-
+ hyperdb_to_sql_datatypes = {
+ hyperdb.String : 'VARCHAR(255)',
+ hyperdb.Date : 'VARCHAR(30)',
+ hyperdb.Link : 'INTEGER',
+ hyperdb.Interval : 'VARCHAR(255)',
+ hyperdb.Password : 'VARCHAR(255)',
+ hyperdb.Boolean : 'BOOLEAN',
+ hyperdb.Number : 'REAL',
+ }
hyperdb_to_sql_value = {
hyperdb.String : str,
hyperdb.Date : lambda x: x.serialise(),