silverqx
c0d09a5339
drivers removed useless TINY_SYSTEM_HEADER
...
Not needed in private header files.
2024-04-08 21:52:50 +02:00
silverqx
df346ad8ad
drivers updated comment
2024-04-08 21:52:50 +02:00
silverqx
dfad2669ab
drivers cmake bugfix all SQL drivers disabled
...
Fixed edge case when all SQL driver implementations are disabled.
- added CMake fatal error for this case
2024-04-08 21:52:44 +02:00
silverqx
52b1dc38d6
drivers added comment
2024-04-07 18:12:29 +02:00
silverqx
1be4fc38c8
drivers added iwyu pragma
2024-04-07 18:12:29 +02:00
silverqx
fb2e6fb5a1
drivers mysql bugfix in cleanup
2024-04-07 18:12:29 +02:00
silverqx
e5aae53661
drivers mysql divided cleanup logic
...
To avoid always calling cleanup for both (normal/prepared statements).
2024-04-07 18:12:29 +02:00
silverqx
2f75683380
drivers updated comment
2024-04-07 18:12:28 +02:00
silverqx
1f0302ee93
drivers freed metadata first
2024-04-07 18:12:28 +02:00
silverqx
0b7caefcbd
drivers added comment
2024-04-07 18:12:28 +02:00
silverqx
16f1b0d120
drivers updated comments
2024-04-07 18:12:28 +02:00
silverqx
0c51f6aaad
drivers shorten lines, added method shortcuts
2024-04-07 18:12:28 +02:00
silverqx
f9f511f4de
drivers added comment
2024-04-07 18:12:27 +02:00
silverqx
dcaa942406
drivers bugfix missing defined()
2024-04-07 18:12:27 +02:00
silverqx
4638db2cac
drivers bugfix index bounds check
2024-04-07 18:12:27 +02:00
silverqx
ad1db88f01
drivers revisited static_cast<> for integral types
2024-04-07 18:12:27 +02:00
silverqx
d592a103c9
drivers added SSL_MODE shortcut option
2024-04-07 18:12:26 +02:00
silverqx
65088eabfd
analyzers suppressed Clang Tidy warnings
2024-04-07 18:12:25 +02:00
silverqx
d4abdf8629
analyzers removed useless .clang-tidy
...
Everything is handled in the parent .clang-tidy.
2024-04-07 18:12:25 +02:00
silverqx
ec2db73fc3
drivers qmake removed debug message
2024-04-07 18:12:25 +02:00
silverqx
ec6169e395
drivers optimized for Clang Tidy v18
...
Also, enabled 9 checks which are disabled for TinyORM.
2024-04-07 18:12:25 +02:00
silverqx
c784b6e0da
drivers renamed local variable
2024-04-07 18:12:25 +02:00
silverqx
21f4e58038
drivers bugfix missing #pragma once
2024-04-07 18:12:24 +02:00
silverqx
d5b9deac97
drivers fixed new Clang Tidy v18 warnings
...
- clang-analyzer-core.StackAddressEscape
- performance-enum-size
- readability-avoid-return-with-void-value
- readability-redundant-inline-specifier
- readability-redundant-member-init
- readability-static-accessed-through-instance
2024-04-07 18:12:24 +02:00
silverqx
a2d729da4c
drivers whitespaces
2024-04-07 18:12:24 +02:00
silverqx
3801354ea2
drivers fixtypo in method and variable name
2024-04-07 18:12:24 +02:00
silverqx
f276163ce8
drivers bugfix wrong return value
2024-04-07 18:12:24 +02:00
silverqx
c64170cad2
drivers added Q_ASSERT()
2024-04-07 18:12:23 +02:00
silverqx
0620d77571
drivers enhanced SQL drivers loading at runtime
...
Added TinyMySqld basename for trying to load.
2024-04-07 18:12:23 +02:00
silverqx
5619d732a5
drivers enhanced paths processing for SQL drivers
...
- added comments
2024-04-07 18:12:23 +02:00
silverqx
0da8d6ff6b
drivers mysql disabled namelink and soname
2024-04-07 18:12:23 +02:00
silverqx
88f071c986
drivers add SQL loading at runtime for Linux
...
Add Linux support for isTinyDiversInBuildTree(), needed to add Linux
specific code for obtaining TinyDrivers shared library module filepath.
2024-04-07 18:12:23 +02:00
silverqx
f7f819a7cd
drivers bugfix unused using warning
2024-04-07 18:12:23 +02:00
silverqx
3d969f2205
drivers added missing #include
2024-04-07 18:12:22 +02:00
silverqx
1f46e4fe34
drivers finished/enhanced SQL loading at runtime
...
Changed order how the SQL drivers are loaded.
The order eg. for the TinyMySql driver on MSVC and Debug configuration
will be:
TINY_PLUGIN_PATH/TinyMySql0d
TINY_PLUGIN_PATH/TinyMySql0
TINY_PLUGIN_PATH/TinyMySql
TinyMySql0d
TinyMySql0
TinyMySql
TINYDRIVERS_MYSQL_PATH/TinyMySql0d
What means, TINY_PLUGIN_PATH has higher priority, then the default
QLibrary() behavior, and as the last load from the build tree if
TinyDrivers library itself is located in the build tree.
Also, first try 0d because that is what we are expecting, and then other
less likely possibilities like 0 and as the last without any postfixes
(raw basename).
- removed QT_PLUGIN_PATH environment variable
2024-04-07 18:12:22 +02:00
silverqx
3605eea33a
drivers updated exception message for MariaDB
2024-04-07 18:12:22 +02:00
silverqx
0f3d42c611
drivers bugfix for MSYS2, missing #ifdef
2024-04-07 18:12:22 +02:00
silverqx
c5d00cc9c7
drivers swapped specifiers to constexpr static
2024-04-07 18:12:22 +02:00
silverqx
126d2d0816
drivers bugfix Clang warning
2024-04-07 18:12:21 +02:00
silverqx
61b796dfcf
drivers whitespace
2024-04-07 18:12:21 +02:00
silverqx
6182d7b80f
drivers cmake fixed loading SQL driver at runtime
...
- taken into account also BUILD_TREE_DEPLOY
- added .build_tree tag files to the clean target
2024-04-07 18:12:21 +02:00
silverqx
33aaf589c6
drivers renamed classed to XyzPrivate
...
Because they are in the xyz_p.hpp files.
2024-04-07 18:12:21 +02:00
silverqx
2c17949cee
drivers enhanced loading SQL driver at runtime
...
If loading the SQL driver shared library at runtime from all standard
paths failed then load the SQL driver library from the build tree. Load
it only if the TinyDrivers library location is in the build tree. This
ensures that it will not be loaded from the build tree, e.g. after
installation because it is non-standard behavior.
2024-04-07 18:12:21 +02:00
silverqx
574d30229a
drivers updated exception message
2024-04-07 18:12:21 +02:00
silverqx
022d0097e0
drivers enhanced loading SqlDriver
...
- bugfix reserve()
- bugfix listSeparator
- moved a library location in the build tree as the last search
location
2024-04-07 18:12:20 +02:00
silverqx
15ad156f4c
drivers suppressed Clang Tidy warnings
2024-04-07 18:12:20 +02:00
silverqx
7d2b2c0a4a
drivers returning directly
2024-04-07 18:12:20 +02:00
silverqx
bad836352d
drivers added/updated comment
2024-04-07 18:12:20 +02:00
silverqx
dca9e9c20f
drivers added comment
2024-04-07 18:12:20 +02:00
silverqx
c3e7302261
drivers added exception to supportsTransactions()
...
The supportsTransactions() check needs open connection.
- also removed later isOpen() check as they are not needed anymore
2024-04-07 18:12:20 +02:00