aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/sqlite/sqlitesessions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QmlDesigner: Use Sqlite source location wrapperMarco Bubke2025-01-221-34/+44
| | | | | | Task-number: QDS-14575 Change-Id: I217d22da3bcf8a611dfa9b521495b5f6b646ef15 Reviewed-by: Thomas Hartmann <[email protected]>
* Sqlite: Extent Statement::values for other containerMarco Bubke2023-08-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | You can now use QList and QVarLenghtArray for values. The later is quite interesting because it is not allocating for a provided capacity. So you can now write: statement.valuesWithTransaction<QVarLenghtArray<int, 1024>>(); And in almost all case no expensive memory is allocated. With the help of NRVO there should be no copy too. That is very useful for temporary values which are transformed into a different type. The capacity changed to an template parameter too: statement.valuesWithTransaction<int, 1024>(); That is more clear than before: statement.valuesWithTransaction<int>(1024); Change-Id: I6d8d10ed9db0cc37f0579353a416e36e23c30415 Reviewed-by: Tim Jenssen <[email protected]>
* QmlDesigner: fix unterminated access to data()Tim Jenssen2023-05-081-1/+1
| | | | | | | SmallString is not null terminated. Change-Id: I92346f1befce8afadcf0d5532c17906a7908fff2 Reviewed-by: Marco Bubke <[email protected]>
* Sqlite: Improve ownershipMarco Bubke2023-03-271-0/+5
| | | | | | | | | | Using the compile option instead of a function pointer makes the code less brittle. Change-Id: Id7f3b42c044d47f13e099f50c5bb33b72c05cde1 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Thomas Hartmann <[email protected]>
* Merge remote-tracking branch 'origin/10.0' into qds/devTim Jenßen2023-03-261-1/+1
|\ | | | | | | | | | | | | | | bigger conflicts resolved at: src/plugins/qmldesigner/CMakeLists.txt src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: I08e2a109d8e37cbd77225129854e9e633725bfc7
| * 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 <[email protected]>
* | Sqlite: Inject RTTI into TUMarco Bubke2023-02-281-3/+3
|/ | | | | | | | | | | | | | | We had problems on macOS with the catching of exceptions because the has type_info::hash_code was different. This is probably a bug because RTTI code is injected for an inline class. To work around that problem we implemented the virtual what method for every exception. Task-number: QDS-9266 Change-Id: I79052c8b70adead412d1940b17195151fb19ebb9 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Vikas Pachdha <[email protected]>
* 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 <[email protected]>
* Utils: Remove null termination from SmallStringMarco Bubke2022-08-161-2/+2
| | | | | | | | | We expect mostly a string view which has no null termination. Code which depends on null termination is broken and it is better break early. Change-Id: I7c2c41fb114e6aaf3a23053b522b37f7af5e1abf Reviewed-by: <[email protected]> Reviewed-by: Tim Jenssen <[email protected]>
* Sqlite: Fix compile with old XcodeChristian Stenger2021-12-101-1/+1
| | | | | | | | Amends d4c6f06a63ad3804. Change-Id: Ia0dce406783e353cb1b1da8064418f64975c66ea Reviewed-by: <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
* Utils: Remove std::initializer_list contructorMarco Bubke2021-05-311-10/+10
| | | | | | | | | | | | | | | If you write Utils::SmallStringView view; Utils::SmallString text{view}; it selects the std::initializer_list contructor. Not the didicated constructore. It is much to easy to get it wrong so it is better to make it explicit. Change-Id: I4240eaf1f39cf71d37df4480fea1ecfa3ea83cb0 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Thomas Hartmann <[email protected]>
* Revert "Revert "Merge remote-tracking branch 'origin/4.15'""Eike Ziller2021-05-071-1/+1
| | | | | | | | | | | This reverts commit f0a86d45104f585b7aeef07fcc68cea24061aedb. Reverting a merge doesn't "undo" it - the changes would be lost forever even with subsequent merges. So we need to revert the revert to get the changes. Change-Id: I65928f876f4dc886561bed17c4b2aa42b388c1e3 Reviewed-by: Marco Bubke <[email protected]>
* Revert "Merge remote-tracking branch 'origin/4.15'"Marco Bubke2021-05-061-1/+1
| | | | | | | | | This reverts commit 888ca0dd20ff647970fc85340e108cfa34d78c3a. Reason for revert: wrong patchset Change-Id: I1291789938601aaf606c59917ff938e3c24c78dd Reviewed-by: Tim Jenssen <[email protected]>
* Sqlite: Use config.h instead of setting everything in the build filesMarco Bubke2021-05-051-1/+1
| | | | | Change-Id: Ia70a5e78475a8b8078276df03330060c8785bf90 Reviewed-by: Thomas Hartmann <[email protected]>
* Sqlite: Move result count to class declarationMarco Bubke2021-03-261-12/+12
| | | | | | | | It move the magic number of column results to the sql statement and improves the mock a little bit. Change-Id: I101067444cf27ec5dea0c72de7fd484a7e8710f0 Reviewed-by: Thomas Hartmann <[email protected]>
* Sqlite: Add change set iteratorMarco Bubke2020-11-031-4/+14
| | | | | | | Task-number: QDS-2998 Change-Id: I7bfa8af51d9d7e6122902ee132ad51019e20afb5 Reviewed-by: Tim Jenssen <[email protected]> Reviewed-by: Thomas Hartmann <[email protected]>
* QmlDesigner: Add image cacheMarco Bubke2020-10-161-1/+1
| | | | | | | | | | | | The image cache is saving images and icon of this images in a sqlite database. If there are no images they are generated in the backgound. The icons are fetched by item library. Task-number: QDS-2782 Task-number: QDS-2783 Task-number: QDS-2858 Change-Id: I5a32cccfef7f8fd8eb78902605a09f5da18ce88e Reviewed-by: Tim Jenssen <[email protected]>
* Sqlite: Add session supportMarco Bubke2020-06-051-0/+188
Session are captured by hooking in the sqlite changes. They are saved in blobs and containing inserts, update and deletes. Because the are semantically coupled to translactions we add a Change-Id: Ie095558ebc50601fcaae32958ebeeb98b72d73b9 Reviewed-by: Tim Jenssen <[email protected]>