Commit Graph

660 Commits

Author SHA1 Message Date
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
silverqx
9739f4dde7 removed todo tasks
[skip ci]
2022-06-01 20:52:53 +02:00
silverqx
bf27133ffc enhanced escaping of special characters
Enhanced escaping of special characters in the schema builder.

 - added note to the docs
 - added unit tests
2022-06-01 19:17:43 +02:00
silverqx
cd4f397fbb removed todo tasks 2022-06-01 14:29:30 +02:00
silverqx
f4553933ba removed todo tasks 2022-06-01 12:06:34 +02:00
silverqx
7c0f97181d added using XyzUtils alias to classes
Instead of use Orm::Utils::Xyz used alias XyzUtils.
2022-06-01 12:03:57 +02:00
silverqx
2dc0645afd added concept to check relationship method 2022-06-01 11:44:40 +02:00
silverqx
c1205c2961 removed todo tasks 2022-06-01 11:06:47 +02:00
silverqx
219c6966f8 removed todo task 2022-06-01 10:49:00 +02:00
silverqx
4be89c6643 fixed clang-tidy warning 2022-06-01 10:48:50 +02:00
silverqx
74d0150865 removed todo tasks 2022-05-31 21:21:33 +02:00
silverqx
6ae86171e9 fixed msvc warning C4702 unreachable code
- also enabled this warning
2022-05-31 21:06:43 +02:00
silverqx
3d6875b268 removed todo task
[skip ci]
2022-05-31 20:38:48 +02:00
silverqx
32a6c6406c whitespace
[skip ci]
2022-05-31 14:02:33 +02:00
silverqx
37ca1e0151 bump version to TinyORM v0.4.3 2022-05-28 19:11:46 +02:00
silverqx
1984636bdb bugfix UBsan runtime error
Discovered cast error by UBSan.
2022-05-28 18:01:35 +02:00
silverqx
9b2610bbbd added RelatedType to all relation classes 2022-05-28 18:00:51 +02:00
silverqx
575849095a comments
[skip ci]
2022-05-25 23:23:48 +02:00
silverqx
f76d455a69 bump version to TinyORM v0.4.2 2022-05-25 13:20:27 +02:00
silverqx
b45b4361a1 unified = delete 2022-05-25 11:58:33 +02:00
silverqx
ccb660a7c5 enabled clazy copyable-polymorphic check 2022-05-24 22:44:57 +02:00
silverqx
d7316a0e17 fixed clazy warning, previous commit 2022-05-24 22:41:58 +02:00
silverqx
fa154e5787 fixed clazy warning 2022-05-24 20:48:07 +02:00
silverqx
6b3068fb98 enabled rule-of-three clazy check 2022-05-24 19:47:09 +02:00
silverqx
e62fd11020 added some collation string constants 2022-05-24 15:51:26 +02:00
silverqx
7f7dc87c96 docs added Multi-threading support section
- removed todo task

[skip ci]
2022-05-24 11:30:42 +02:00
silverqx
67628bdc13 bump TinyORM v0.4.1 and Tom v0.2.1 2022-05-23 17:42:47 +02:00
silverqx
947f1c5f4d removed todo tasks 2022-05-23 17:42:07 +02:00
silverqx
5a184e136b added the connectionsSize() to DB/DM 2022-05-23 16:07:43 +02:00
silverqx
0bcbcd2431 added support for PostgreSQL schema builder 🎉👌
- added a new config. option dont_drop, allows to define table that
   will be excluded during dropAllTables(), has a default value
   spatial_ref_sys for PostGIS
 - implemented fluent commands, used only by the PostgreSQL Comment
   command
 - added tests for PostgreSQL schema builder
 - reworked tst_Migrate to be able to run on all supported connections,
   currently PostgreSQL and MySQL
 - updated docs

Unrelated:

 - added a new reference class IndexDefinitionReference for a nice API
   during index definition, contains algorithm and language
 - unified selectFromWriteConnection() in schema builders
2022-05-23 10:14:25 +02:00
silverqx
22bc8e2ccf deleted copy and move assign. operators
Deleted copy and move assign. operators for XyzReference classes, user
should not be able to assign a new reference on these classes.
2022-05-23 08:57:24 +02:00
silverqx
9d5ce17634 added hasConfig to DatabaseConnection 2022-05-23 08:54:30 +02:00
silverqx
04d3838d87 added comments 2022-05-22 18:59:27 +02:00
silverqx
54e3613a98 added a new TZ00 string constant
- used everywhere
 - updated docs
2022-05-18 09:57:06 +02:00
silverqx
0ad5d3e485 added new multi-insert overload to query builder
- also added all proxies
 - updated documentation
2022-05-18 09:23:09 +02:00
silverqx
e1722bff1b bump versions TinyORM v0.4.0 and tom v0.2.0 2022-05-17 10:32:22 +02:00
silverqx
5932fc9111 fixed clang-tidy warning 2022-05-16 19:54:21 +02:00
silverqx
d549db080e whitespace 2022-05-16 19:53:59 +02:00
silverqx
b24aa41c46 fixed clang-tidy warning 2022-05-16 19:53:39 +02:00
silverqx
710cdb5358 used decltype() to obtain a type 2022-05-16 14:25:29 +02:00
silverqx
1b3b431873 extracted Model unguarded to own class
Extracting these guard related methods to own class allows to call
GuardedModel::unguarded() regardless of a template parameters needed
on the Model class, before was needed to call
Model<Torrent, Relations..>::unguarded().

 - also made the g_unguarded atomic
 - bugfix reguard() try-catch-finally in GuardedModel::unguarded()
2022-05-16 14:25:24 +02:00
silverqx
ad818845d1 removed duplicate code 2022-05-16 10:28:38 +02:00
silverqx
c238e3fd33 made some methods static 2022-05-16 10:27:46 +02:00