From: richard Date: Wed, 31 Mar 2004 23:08:08 +0000 (+0000) Subject: better sqlite columns X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ecc92aa7574a48d82794e520ffb9939ed2a5f64e;p=roundup.git better sqlite columns git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2238 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/back_sqlite.py b/roundup/backends/back_sqlite.py index 9c5d35d..e251710 100644 --- a/roundup/backends/back_sqlite.py +++ b/roundup/backends/back_sqlite.py @@ -1,4 +1,4 @@ -# $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 @@ -18,7 +18,15 @@ import sqlite 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(),