Mercurial > p > roundup > code
comparison roundup/backends/back_sqlite.py @ 3046:a7045bad20de maint-0.8
have RDBMS full-text indexer do AND searching [SF#1055435]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 04 Jan 2005 01:33:04 +0000 |
| parents | 240a24f1e69f |
| children | e1da7b5b04ab |
comparison
equal
deleted
inserted
replaced
| 3045:f859d9393bf0 | 3046:a7045bad20de |
|---|---|
| 1 # $Id: back_sqlite.py,v 1.36.2.1 2004-12-14 23:23:35 richard Exp $ | 1 # $Id: back_sqlite.py,v 1.36.2.2 2005-01-04 01:33:03 richard Exp $ |
| 2 '''Implements a backend for SQLite. | 2 '''Implements a backend for SQLite. |
| 3 | 3 |
| 4 See https://pysqlite.sourceforge.net/ for pysqlite info | 4 See https://pysqlite.sourceforge.net/ for pysqlite info |
| 5 | 5 |
| 6 | 6 |
| 23 shutil.rmtree(config.DATABASE) | 23 shutil.rmtree(config.DATABASE) |
| 24 | 24 |
| 25 class Database(rdbms_common.Database): | 25 class Database(rdbms_common.Database): |
| 26 # char to use for positional arguments | 26 # char to use for positional arguments |
| 27 arg = '%s' | 27 arg = '%s' |
| 28 | |
| 29 # used by some code to switch styles of query | |
| 30 implements_intersect = 1 | |
| 31 | |
| 28 hyperdb_to_sql_datatypes = { | 32 hyperdb_to_sql_datatypes = { |
| 29 hyperdb.String : 'VARCHAR(255)', | 33 hyperdb.String : 'VARCHAR(255)', |
| 30 hyperdb.Date : 'VARCHAR(30)', | 34 hyperdb.Date : 'VARCHAR(30)', |
| 31 hyperdb.Link : 'INTEGER', | 35 hyperdb.Link : 'INTEGER', |
| 32 hyperdb.Interval : 'VARCHAR(255)', | 36 hyperdb.Interval : 'VARCHAR(255)', |
