summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/sqlitealgorithms-test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix warningsMarco Bubke2022-06-231-10/+0
| | | | | Change-Id: I49dc38853df77bcc4d72c64132700c6059fbd5d7 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Sqlite: Remove virtual interface dependencyMarco Bubke2021-12-141-1/+1
| | | | | | | | | | With C++ 17 it is possible to deduce the template argument from the contructor parameter(CTAD). We then do not call anymore a virtual function but a normal function. Change-Id: I61c3ce22322c66b256afab278e768014401b08cc Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Sqlite: Introduce BindParameterCount template parameterMarco Bubke2021-12-091-3/+4
| | | | | | | | | | | The BindParameterCount is checked at compile time and then again for the construction of the statement. So we provide an early error instead of an some error later or even stranger behavior. Change-Id: I860ca1f78645c222ae1accf5c7a469c77befc3bd Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Sqlite: Fix insertUpdateDeleteMarco Bubke2021-12-081-10/+13
| | | | | | | | | | | | Like you can read in https://www.sqlite.org/isolation.html after an update they same value can be show up for an iterator advancement. This would be lead to an delete. So the last value for update is saved and then compared in the delete method. If they are equal the delete is skipped. Change-Id: Ic0aa6619f6a4a520eac77be4e5a83cbe533d102d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Sqlite: Add insertUpdateRemoveMarco Bubke2021-05-311-0/+309
An generic approach to merge values into a database. It is comparing two ranges. The first range is the Sqlite select range and the second one which are the new values. New values are inserted, change are updated and missing values are removed. Unchanged values are not touched. The compare function is comparing a key. Both ranges are binary ordered. Change-Id: I973c83677ea74f8fa62bd7ab8a73ed560c806562 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>