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
a7ace30999
unified constexpr static
2022-03-07 09:20:34 +01:00
silverqx
1fcfefce94
init. QueryBuilder operators only once
2022-01-17 10:22:28 +01:00
silverqx
73fa6d2246
explicitly declared ctors
...
In QueryBuilder and JoinClause, to be clearly visible that deleted
assignment operators are expected.
2022-01-17 10:21:47 +01:00
silverqx
aeb20613a0
removed const in SqlError
2022-01-16 18:22:28 +01:00
silverqx
e188239e37
added public section
2022-01-14 16:39:50 +01:00
silverqx
b36888ae93
extracted queries counters to CountsQueries
...
Queries counters extracted to the Concerns::CountsQueries base class.
- removed ConnectionInterface 😕 😎 🙌
- all methods are returning DatabaseConnection & instead of
ConnectionInterface
- includes cleanup after extraction
2022-01-14 16:04:17 +01:00
silverqx
b57fa366ee
reordered methods in QueryBuilder
...
- also added section comments
2022-01-13 21:37:29 +01:00
silverqx
9317ca1b9c
moved inline from defn. to decl. in QueryBuilder
2022-01-13 18:26:04 +01:00
silverqx
fb20fd8b9f
cleanup, macro guards, inline
...
- removed expression.cpp, Query::Expression is header only now
- fixed macro guard names
- inline from defn. to decl.
2022-01-13 11:02:07 +01:00
silverqx
b092191aa5
concepts divided to orm and tiny concepts
2022-01-07 12:54:34 +01:00
silverqx
4476e6150f
changed common todos location
2022-01-06 16:22:57 +01:00
silverqx
f4e7c6faff
fixed all macro guards
2022-01-06 11:22:46 +01:00
silverqx
82bcdc2623
made all defaulted methods explicitly inline
2021-11-13 15:08:20 +01:00
silverqx
d43e5ace15
enabled empty initializers to pass Weffc++
...
Redundant empty initializers have to be enabled to pass Weffc++.
2021-10-29 16:28:29 +02:00
silverqx
9e3b91e52a
added &~ operator to QueryBuilder
2021-10-29 15:35:25 +02:00
silverqx
af222b44ba
unified all virtual destructors
...
- explicitly declared all virtual destructors
- inline for pure dtors moved to the declaration
- used override/final where appropriate
- made some dtors pure virtual where appropriate
2021-10-28 20:13:30 +02:00
silverqx
cf8690d2a1
reverted = {}; and = ""; redundant initializers
2021-10-28 16:33:09 +02:00
silverqx
930acaefb3
passed clang-tidy portability-*, readability-*
...
Enhanced .clang-tidy files.
- -readability-function-cognitive-complexity for all tests
2021-10-28 14:55:28 +02:00
silverqx
c5d1b36e34
passed clang-tidy misc-*
2021-10-27 17:20:17 +02:00
silverqx
5da755e1de
changed some macro guards
2021-10-27 10:04:57 +02:00
silverqx
c289a93a65
passed clang-tidy performance-* (header files)
2021-10-27 09:58:30 +02:00
silverqx
48b2477f4c
passed * clang-tidy (hpp files)
...
Diagnostics discovered by qtc6-beta1.
2021-10-26 12:22:56 +02:00
silverqx
845a71faae
passed * clang-tidy (hpp files)
...
Following clang-tidy checks bugprone-*, concurrency-*, modernize-*, and
google-*.
- namespace-comments
- using-namespaces
- virtual vs override/final
- explicit ctor/conversion operator
2021-10-26 06:14:04 +02:00
silverqx
ee3ac2ea55
Merge remote-tracking branch 'origin/develop' into develop
2021-10-21 17:19:29 +02:00
silverqx
7f07ed4482
unified macro guards
2021-10-21 16:36:50 +02:00
silverqx
b3f0e3228c
bugfix gcc/clang includes
2021-10-21 15:45:15 +02:00
silverqx
89f8566d33
replaced TINYORM_COMMON_NAMESPACE with macro
2021-10-19 19:40:17 +02:00
silverqx
cf0d60e122
moved export.hpp to macros/ folder
2021-10-19 17:14:33 +02:00
silverqx
d68d8fedb3
added pragma system_header
2021-10-13 10:06:50 +02:00
silverqx
7899e3ed47
changed define macros to _HPP
2021-09-30 09:20:58 +02:00
silverqx
ed40e8cfe4
enabled Weffc++ 🚀 🔥 🙌
2021-09-21 08:00:44 +02:00
silverqx
a753c3c016
removed todo task
2021-08-06 14:51:53 +02:00
silverqx
70a9e0fceb
used pure virtual destructors when appropriate
2021-08-06 13:42:48 +02:00
silverqx
cf939e0005
fixed comment for destructors
2021-08-06 13:24:17 +02:00
silverqx
8473ada739
added comments for all classes
2021-08-06 11:52:26 +02:00
silverqx
e9133df5c8
comments for all ctors/dtors
2021-08-06 10:35:15 +02:00
silverqx
b7d72e93de
moved all inline outside classes
2021-08-06 10:14:13 +02:00
silverqx
458041a153
replaced common string literal by global const.
2021-08-03 10:09:42 +02:00
silverqx
d4f8ac3591
removed duplicates
2021-08-03 09:57:03 +02:00
silverqx
7ca8910cc4
added querying relationship existence/absence
...
- support for querying nested relations existence/absence
- added tests for all possible overloads 😲 , 28 unit tests and 14
functional tests
- added has() related proxies to the Model and Relation
- added documentation
- gcc and clang specific fixes
others:
- used clazy exclude comments instead of suppressing warnings in IDE
2021-08-03 09:31:31 +02:00
silverqx
2245ff9d1e
updated todo task
2021-07-18 22:04:12 +02:00
silverqx
d1044e37bc
added subquery support for order by clause
2021-07-18 20:49:56 +02:00
silverqx
4b4f34fbdc
added support for subqueries in the select clause
2021-07-18 13:38:53 +02:00
silverqx
5d4391900a
replaced = strings with EQ constant
2021-07-17 14:44:27 +02:00
silverqx
7d1f03021b
added global constants for most used strings
2021-07-17 14:41:28 +02:00
silverqx
40b639c458
subquery support for where() columns 🔥 🚀 ✨
...
where() column can take lambda expression or QueryBuilder &
for subqueries.
- added proxy methods
- added unit tests
- proxy methods tested manually
2021-07-15 16:44:23 +02:00
silverqx
ef1660dd6d
subquery support for where() values 🔥 🚀 ✨
...
where() values can take labmbda expression or QueryBuilder &
for subqueries.
- added proxy methods
- added unit tests
2021-07-15 08:24:46 +02:00
silverqx
a4fe443541
added pluck()
...
Two overloads, simple pluck(column) to get values from the given column
and pluck<T>(column, key) which returns std::map<T, QVariant> values
of the given column keyed by the given key.
- added docs
- added tests
- manually tested all proxies
2021-07-13 14:28:41 +02:00
silverqx
59d852dd2c
reordered methods in Grammar
2021-07-08 13:15:09 +02:00