Commit Graph

520 Commits

Author SHA1 Message Date
silverqx
ed3f0b446e disabled copy/move ctors 2022-01-17 10:45:33 +01:00
silverqx
f61d777276 explicitly declared constructors 2022-01-17 10:37:03 +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
35f139fda9 removed const in Model::AttributeReference 2022-01-16 18:27:24 +01:00
silverqx
7a017855f8 disabled copy constructors
Disabled on all relations, tiny builder and all base classes
2022-01-16 18:26:40 +01:00
silverqx
8794b8b285 extracted relation types to own header file 2022-01-16 18:24:05 +01:00
silverqx
aeb20613a0 removed const in SqlError 2022-01-16 18:22:28 +01:00
silverqx
5cab0ae779 cleanup of DatabaseConnection 2022-01-15 11:46:58 +01:00
silverqx
1976a1ca1f revert removed alias
Clang tidy 12 buggy report, fixed in Clang tidy 13.
2022-01-15 11:18:05 +01:00
silverqx
b734a09b53 fixed includes and typos 2022-01-15 11:08:01 +01:00
silverqx
23ce64689f removed redundant protected specifier 2022-01-14 22:03:06 +01:00
silverqx
9b5ff78ef4 made logConnected()/logDisconnected() private 2022-01-14 22:00:57 +01:00
silverqx
bbfca1594e extracted transactions to ManagesTransactions
Transactions extracted to the Concerns::ManagesTransactions base class.

 - bugfix includes
 - logConnected()/logDisconnected() code wrapped in TINYORM_MYSQL_PING
 - hitTransactionalCounters() extracted to Concerns::CountsQueries
 - convertNamedToPositionalBindings() extracted to Concerns::LogsQueries
2022-01-14 21:26:02 +01:00
silverqx
ff0697e1a5 extracted logging queries to LogQueries
Logging queries extracted to the Concerns::LogsQueries base class.
2022-01-14 17:37:58 +01:00
silverqx
e188239e37 added public section 2022-01-14 16:39:50 +01:00
silverqx
ca2bc35519 added sections to DatabaseConnection 2022-01-14 16:29:46 +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
dfcfcd19b9 disabled copy/move constructors for Connectors 2022-01-13 19:21:52 +01:00
silverqx
3b711d4876 removed const data members in all exceptions 2022-01-13 18:59:30 +01:00
silverqx
9317ca1b9c moved inline from defn. to decl. in QueryBuilder 2022-01-13 18:26:04 +01:00
silverqx
432099694f mini cleanup DatabaseConnection 2022-01-13 18:16:05 +01:00
silverqx
35a68dd0fd ReconnectorType alias moved to ormtypes.hpp 2022-01-13 17:08:56 +01:00
silverqx
c9cee67a13 removed DB alias to Orm::DB from global namespace 2022-01-13 15:40:11 +01:00
silverqx
097c2c0c22 cleanup, macro guards, inline, string/char literal
- explicit QStringLiteral and QChar
 - fixed macro guard names
 - inline from defn. to decl.
 - whitespaces and comments
 - added Q_DISABLE_COPY()
 - removed friend class DB; from DM
 - removed schemagrammar.cpp, was empty
2022-01-13 14:44:34 +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
e7560c3733 removed todo task 2022-01-12 19:08:06 +01:00
silverqx
f00f0cb8f3 bugfix linux includes 2022-01-12 18:44:07 +01:00
silverqx
8380676d09 shorten namespace 2022-01-07 19:16:11 +01:00
silverqx
a7d278230a moved isIgnoringTouch() to HasTimestamps 2022-01-07 17:58:05 +01:00
silverqx
c8426de95d refactored Relation::touch() 2022-01-07 17:52:16 +01:00
silverqx
55eacbcea8 added todo task 2022-01-07 16:35:49 +01:00
silverqx
280713bcd1 ConnectionOverride moved to own tiny types ns 2022-01-07 13:07:40 +01:00
silverqx
b092191aa5 concepts divided to orm and tiny concepts 2022-01-07 12:54:34 +01:00
silverqx
dbc375f1fe added HasRelationships concerns
Extracted appropriate methods from the Tiny::Model class to own
HasRelationships concerns.
2022-01-07 12:35:47 +01:00
silverqx
750c60780a added todo task 2022-01-07 10:31:00 +01:00
silverqx
7f455b4ed2 enhanced CRTP model macros
- added macros for model()/basemodel() method definitions
 - CRTP model with basemodel macro extends CRTP model macro
2022-01-06 17:16:59 +01:00
silverqx
b0238ac95a reordered methods in Model class
- also fixed section comments
2022-01-06 16:31:59 +01:00
silverqx
4476e6150f changed common todos location 2022-01-06 16:22:57 +01:00
silverqx
7b119a5ad5 reordered method in Model class 2022-01-06 16:18:34 +01:00
silverqx
4747931f62 removed todo tasks 2022-01-06 12:24:14 +01:00
silverqx
c12829df67 used AllRelationsConcept everywhere 2022-01-06 11:41:51 +01:00
silverqx
f4e7c6faff fixed all macro guards 2022-01-06 11:22:46 +01:00
silverqx
5a593224fe extracted CRTP static cast to own macro files
Added to macro files, one with derived model cast and another with
derived model cast and with cast to the base model.
2022-01-06 11:14:48 +01:00
silverqx
0acca5c076 moved inline from definitions to declarations 2022-01-06 10:13:42 +01:00
silverqx
f6ff93911c renamed methods to obtain u_ data members 2022-01-05 21:08:22 +01:00
silverqx
42e1333085 added reserve for QVector 2022-01-05 21:03:23 +01:00
silverqx
7a975f7b99 added HasAttributes and HasTimestamps concerns
Extracted appropriate methods from the Tiny::Model class to own
HasAttributes and HasTimestamps concerns.
2022-01-05 21:02:57 +01:00
silverqx
a6ab076cae removed unneeded forward declarations 2022-01-04 08:31:44 +01:00