Konstantin Käfer
1d8235f5b8
[build] rework platform/default directory and add -files.txt for vendored libs
2018-12-14 11:03:03 +01:00
Thiago Marcos P. Santos
cd92a231b3
[qt] Deprecate Qt4 and old versions of Qt5
...
Not enough adoption to keep the platform alive.
2018-11-13 22:55:26 +02:00
Asheem Mamoowala
bc806d4354
Use QSqlError::databaseText for reporting errors from SQLite wrapper to match SQLite3 error messages
2018-08-28 07:14:54 -07:00
Konstantin Käfer
fa7b70945f
[core] harden OfflineDatabase
2018-08-14 17:03:46 -07:00
Konstantin Käfer
79394ee47d
[core] remove unused flags from SQLite header
2018-06-12 17:41:16 +02:00
Konstantin Käfer
4477dd4119
[core] support moving Database object during a Transaction
2018-06-12 17:41:16 +02:00
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
Konstantin Käfer
5ca38bbde9
[core] refactor SQLite error/status codes
2018-03-02 14:26:25 +01:00
Thiago Marcos P. Santos
ba019b0256
[qt] Fix issue if resources not being found on the database
...
Once again QVariant getting confused about its contents
datatype. With this patch we use QString directly and
copy the contents, which should be cheap with Qt implicity
sharing.
2018-02-26 14:43:32 +02:00
Thiago Marcos P. Santos
f880baaeb7
[windows][qt] Remove std:: namespace of some functions
...
Not available on Windows.
2018-01-08 22:58:20 +02:00
Bruno de Oliveira Abinader
6b5afaab76
[Qt] Explicit QVariant type as string when binding text
2017-11-09 19:17:10 +02:00
Bruno de Oliveira Abinader
7936c138fe
[Qt] Call QSqlQuery::finish() when inactive
2017-11-09 16:13:05 +02:00
Bruno de Oliveira Abinader
ca73bbc9be
[Qt] Do not store QSqlDatabase
2017-11-09 16:13:05 +02:00
Bruno de Oliveira Abinader
2b03d6e805
[Qt] Qt SQLite driver has no setForwardOnly support
2017-11-09 16:13:05 +02:00
Konstantin Käfer
f0a7c45064
[core] finish must-revalidate support
2017-08-08 12:40:38 +02:00
Thiago Marcos P. Santos
55faa23d2e
[Qt] Fix database timeout not being set correctly
...
It was overflowing due to long to int conversion inside Qt and
never being effectively set because Qt was silently ignoring
the conversion error and discarding the new value.
Fixes #9108 .
2017-07-26 15:39:03 +03:00
Thiago Marcos P. Santos
d9ad09ca36
[Qt] Align database creation behavior with the default implementation
...
Qt doesn't throw a Exception::Code::CANTOPEN when trying to open
a database that doesn't exist without the Create flag.
2017-07-17 16:47:29 +03:00
Bruno de Oliveira Abinader
04a3a7383a
[core] Remove unused bool() functions
2017-04-14 12:33:13 -07:00
Bruno de Oliveira Abinader
ab814ef9b0
[Qt] Guarantee QSqlDatabase connection name uniqueness
...
Guarantee QSqlDatabase connection name uniqueness by using a static
counter together with the current thread.
2017-02-01 17:00:17 +02:00
Thiago Marcos P. Santos
a8225b8fff
[Qt] Make datatypes compatible with the default implementation
...
On the default all integers map to `sqlite3_bind_int64`.
2017-01-26 18:37:42 +02:00
Bruno de Oliveira Abinader
00b4baff5f
[Qt] Check for Qt SQLite database driver
2017-01-23 19:06:53 +02:00
Thiago Marcos P. Santos
1c759cfa09
[Qt] Explicitly map the bool binder to int
...
On Qt4 and Qt5 the QVariant conversion from bool behaves differently.
2017-01-23 19:06:53 +02:00
Thiago Marcos P. Santos
1065917e59
[Qt] Save a copy when using binary data if possible
2017-01-23 19:06:53 +02:00
Bruno de Oliveira Abinader
88b7fc3929
[Qt] Implement mapbox::sqlite::{Database,Statement} using QtSql
2017-01-23 19:06:53 +02:00