We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8526e9e commit 02b1e71Copy full SHA for 02b1e71
roundup/backends/back_sqlite.py
@@ -1,4 +1,4 @@
1
-# $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 $
2
'''Implements a backend for SQLite.
3
4
See https://pysqlite.sourceforge.net/ for pysqlite info
@@ -18,7 +18,15 @@
18
class Database(rdbms_common.Database):
19
# char to use for positional arguments
20
arg = '%s'
21
-
+ hyperdb_to_sql_datatypes = {
22
+ hyperdb.String : 'VARCHAR(255)',
23
+ hyperdb.Date : 'VARCHAR(30)',
24
+ hyperdb.Link : 'INTEGER',
25
+ hyperdb.Interval : 'VARCHAR(255)',
26
+ hyperdb.Password : 'VARCHAR(255)',
27
+ hyperdb.Boolean : 'BOOLEAN',
28
+ hyperdb.Number : 'REAL',
29
+ }
30
hyperdb_to_sql_value = {
31
hyperdb.String : str,
32
hyperdb.Date : lambda x: x.serialise(),
0 commit comments