Commit Graph

702 Commits

Author SHA1 Message Date
silverqx
9162c5a53d used shared_ptr everywhere
Get rid of the QSharedPointer and use the std::shared_ptr everywhere.
2022-07-10 17:36:53 +02:00
silverqx
9910cc2cf7 bump versions to TinyORM v0.8.0, tom v0.4.0 2022-07-10 14:28:36 +02:00
silverqx
8a257620df bugfix tom make:model join container 2022-07-08 16:24:36 +02:00
silverqx
f7e40df03a whitespace 2022-07-08 09:35:18 +02:00
silverqx
82efe9be21 fixtypo cmd. line vs command-line 2022-07-04 16:14:34 +02:00
silverqx
14a0cd1297 optimize containers in make:model 2022-07-03 14:36:52 +02:00
silverqx
9192522a1d added todo task
[skip ci]
2022-07-02 17:39:25 +02:00
silverqx
99f2b9251d enhanced make:model, array relations
Allow to define more relations of the same type more than once,
supported by all relations except btm.
2022-06-28 22:04:07 +02:00
silverqx
a30dfcd364 removed deprecated tag
[skip ci]
2022-06-27 02:01:05 +02:00
silverqx
7a61733db6 added StringUtils::wrapValue()
- also bugfix missing const
2022-06-27 00:12:23 +02:00
silverqx
7c1e2dc8e4 fixed gcc/clang warnings 2022-06-26 14:51:58 +02:00
silverqx
02016ad7b7 enhanced make:model, generate one-to-one/many
make:model command can generate one-to-one and one-to-many relationship
methods using the --one-to-one= and --one-to-many= command line options.
2022-06-26 14:10:04 +02:00
silverqx
9a0e7eed66 enhanced ContainerUtils::join() algorithm
It can take now also the std::set.
2022-06-26 11:42:16 +02:00
silverqx
ad90a64153 bump version to TinyORM v0.7.1 2022-06-24 19:19:58 +02:00
silverqx
735eee5965 changed DM::m_configuration to unordered_map
I have discovered very bad bug that caused crashes because of
invalidated references to the configurations caused by QHash after
insertion using DB::addConnection().
std::unordered_map doesn't invalidates references after insertion or
remove 🙌.
2022-06-24 17:12:55 +02:00
silverqx
98a8e07a7c bump version to TinyORM v0.7.0 2022-06-24 15:01:55 +02:00
silverqx
de2c642a7e tests enhanced connections handling
If DB driver for any connection is not available then skip all tests
for this connection.

 - also added DB::drivers()/isDriverAvailable()/...
2022-06-24 15:01:16 +02:00
silverqx
6b968b9f15 enhanced pwsh complete 2022-06-24 11:42:34 +02:00
silverqx
e9ec27cd32 bump versions to TinyORM v0.6.0, Tom v0.3.3 2022-06-23 19:29:49 +02:00
silverqx
38dcfca139 count query result size manually if needed
Fixed all query.size() calls, added QueryUtils::queryResultSize() helper
method that counts query result size manually if needed.
2022-06-23 18:44:51 +02:00
silverqx
8e1d0ec2d8 log Executed prepared/unprepared query
Correctly log executed query type, prepared vs unprepared.
2022-06-23 17:45:31 +02:00
silverqx
70ce573c3f added SQLite schema builder 💥
- changed return value for
   SchemaBuilder::createDatabase()/dropDatabaseIfExists() to
   std::optional<QSqlQuery>
 - added 46 SQLite schema builder tests
2022-06-20 19:05:01 +02:00
silverqx
cc2676e1ec bump version to TinyORM v0.5.2, tom v0.3.2 2022-06-16 13:20:16 +02:00
silverqx
7f566944e7 bugfix move forward declarations out of TinyORM NS 2022-06-13 12:47:06 +02:00
silverqx
dc2d90fbfc removed todo task 2022-06-09 09:58:08 +02:00
silverqx
37c9bb0891 added noexcept for JoinClause
[skip ci]
2022-06-09 09:58:00 +02:00
silverqx
5a780a4951 updated todo task 2022-06-08 21:43:08 +02:00
silverqx
3d1ad763d0 enabled /sdl for MSVC debug builds 2022-06-08 21:37:25 +02:00
silverqx
b9eefd1148 added TINY_DECL_HIDDEN
- also removed todo task

[skip ci]
2022-06-08 21:04:41 +02:00
silverqx
78e750f8f8 bump to version TinyORM v0.5.1 2022-06-08 16:18:21 +02:00
silverqx
9812c48662 bugfix undefined symbol
Occurred when was disabled tom and enabled orm.
2022-06-08 16:16:49 +02:00
silverqx
5701421864 bump versions to TinyORM v0.5.0, tom v0.3.0 2022-06-07 11:26:23 +02:00
silverqx
1f3dbfcc5f enabled thread_local on Linux and MSYS2
It started working finally, so enabling for Clang >= 14.0.3 on MSYS2
and for Clang >= 14.0.4 on Linux.

Still disabled for clang-cl with MSVC and g++ on MSYS2.
2022-06-07 10:48:54 +02:00
silverqx
6bc5d759a2 enabled thread_local for clang >=14.0.4 for Linux 2022-06-07 08:09:41 +02:00
silverqx
3c07dc0d41 bump version to TinyORM v0.4.6 2022-06-05 18:16:33 +02:00
silverqx
6146699185 added clang-cl support to compilerdetect.hpp 2022-06-05 18:14:22 +02:00
silverqx
db5232a22f bump TinyORM v0.4.5, tom v0.2.2, TinyUtils v0.1.1 2022-06-05 13:43:49 +02:00
silverqx
d59a594516 added todo task
[skip ci]
2022-06-05 13:39:22 +02:00
silverqx
4b203f8fac workaround qmake bug moc_predefs.h with clang-cl
[skip ci]
2022-06-04 15:10:52 +02:00
silverqx
4f1c931eae added support for clang-cl
Be able to build with clang-cl with MSVC 2019/2022 but only with
inline constants.

 - supported by both CMake and qmake 🎉
 - updated docs support compilers

qmake specific:

 - enhanced and fixed tiny_toolchain_requirement
 - added clang-cl min. required version to tiny_toolchain_requirement
 - enhanced winconf.pri
 - updated conf.pri.examples
 - added a new feature file the tiny_system_headers.prf, it unifies
   tagging system headers

cmake specific:

 - also added clang-cl min. required version as minReqClangClVersion
 - for clang-cl set the INLINE_CONSTANTS to ON and don't show this
   CMake option
2022-06-04 09:23:53 +02:00
silverqx
68111f2212 removed todo tasks
[skip ci]
2022-06-02 20:39:03 +02:00
silverqx
26ef301540 bump version to TinyORM v0.4.4
[skip ci]
2022-06-02 17:07:51 +02:00
silverqx
67dfa12b36 added tap helper
It calls the given callback with the given value then return the value.

Also used it on few places as a proof that it works, the old code
looks cleaner though because it's flat.
2022-06-02 14:57:35 +02:00
silverqx
dacb5453cb bugfix return value 2022-06-02 14:15:16 +02:00
silverqx
0d74b994aa fixed unused parameter warning in release builds 2022-06-02 11:19:23 +02:00
silverqx
1667ab0544 removed unneeded inline specifier 2022-06-02 11:18:41 +02:00
silverqx
184e7b1787 disabled C4702 msvc warning
It produces few warnings even in the dependent libraries like range-v3.
2022-06-02 11:16:29 +02:00
silverqx
540c67d185 removed todo tasks 2022-06-01 21:21:48 +02:00
silverqx
a46930cd82 removed todo tasks
[skip ci]
2022-06-01 21:15:29 +02:00
silverqx
de38d4213f renamed c macro to TINYORM_USING_PCH
- also added this macro to docs
2022-06-01 21:04:09 +02:00