John Firebaugh
a1195f6a9d
Avoid exceptions for flow control during database creation
...
Unfortuntely, it's difficult to avoid all exceptions, because sqlite3_open_v2 does not reliably return SQLITE_NOTADB if the file is not a database. However, this should avoid cases where developers misinterpret the SQLITE_CANTOPEN exception as a crash, which is the common case.
2018-05-09 07:32:16 -07:00
Konstantin Käfer
136e536159
[core, qt] move self-resetting Statement/Query object to shared header
2018-03-02 14:26:25 +01:00
Thiago Marcos P. Santos
869799a716
[tests] Added a test for getting resources from the database
...
This test would have flagged the Qt regression.
2018-02-26 14:43:32 +02:00
Bruno de Oliveira Abinader
f86c1b7d0f
[test] Only use our SQLite3 wrapper in tests
2018-01-08 19:13:47 +02:00
Thiago Marcos P. Santos
bd15e273dc
[tests] Enforce the schema downgrade behavior
...
Which is, delete and recreate the database.
2017-08-22 12:46:38 +03:00
Konstantin Käfer
f0a7c45064
[core] finish must-revalidate support
2017-08-08 12:40:38 +02:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
Bruno de Oliveira Abinader
88b7fc3929
[Qt] Implement mapbox::sqlite::{Database,Statement} using QtSql
2017-01-23 19:06:53 +02:00
Bruno de Oliveira Abinader
80d72123df
[core] Move lastInsertRowId/changes to sqlite::Statement
2017-01-23 19:06:53 +02:00
Tore Halset
a4b79ac289
[core] Optimize OfflineDownload::ensureResource ( #6707 )
...
Add `OfflineDatabase::hasRegionResource`, for use when the actual contents are not needed by the caller, avoiding IO and decompression costs.
2016-10-17 09:27:07 -07:00
Konstantin Käfer
3f3fc7b772
[test] add .test.cpp suffix to test case files
2016-09-28 16:34:22 +02:00