Commit Graph

2399 Commits

Author SHA1 Message Date
silverqx fef25c5f7d added reserve() for containers in Grammar
For almost all containers in the QueryGrammar.
2022-12-12 17:15:21 +01:00
silverqx c8383cef91 renamed local variable 2022-12-12 17:14:10 +01:00
silverqx 090f1ef2d4 tom enhanced migrations validation
The same Migration can't be passed to the TomApplication more times.
2022-12-12 14:55:21 +01:00
silverqx cb5a1e09e2 tom whitespaces 2022-12-12 14:53:41 +01:00
silverqx 5066fa5086 tom added comment 2022-12-12 14:31:14 +01:00
silverqx 33f0415cee used try_emplace() everywhere
Of course where it make sense. 🤓
2022-12-12 13:48:09 +01:00
silverqx 7e2fecd4b4 tom used at() instead of operator[]() 2022-12-12 13:20:17 +01:00
silverqx a31390965a added comment 2022-12-12 12:50:54 +01:00
silverqx 206f4e110b bugfix tom wrong variable name 2022-12-12 12:50:38 +01:00
silverqx 5e9fd70644 tom enhanced migration name validation
Don't remove the _ character from the beginning if it doesn't start
with it.
2022-12-12 10:28:48 +01:00
silverqx 355a75ead0 bugfix tom migration name validation
- enhanced exception message
 - don't slice first character from migration name
2022-12-12 10:17:52 +01:00
silverqx e642fddbb8 used Qt6's QString::sliced/first everywhere 2022-12-11 20:49:13 +01:00
silverqx 4ecf499029 enhanced constrained()
- execute the guess table logic only if the table is empty
 - return pluralized foreign key name if the column is empty
2022-12-11 20:07:47 +01:00
silverqx 6e49f6e0d7 enhanced make:migration command
During the search whether a migration file already exists, check only
files with the datetime prefix.
2022-12-11 20:05:18 +01:00
silverqx 3562ac526e renamed method 2022-12-11 19:53:55 +01:00
silverqx bfbf8ef978 updated comment 2022-12-11 19:49:45 +01:00
silverqx 1def28830b added new TMPL_PLURAL string constant 2022-12-11 19:49:20 +01:00
silverqx cb360d1598 reordered template constants
- also added some section comments
2022-12-11 19:35:04 +01:00
silverqx 8fc33482a4 fixtypo 2022-12-11 16:40:42 +01:00
silverqx aea9a7ea74 used QStringLiteral() 2022-12-11 16:36:42 +01:00
silverqx 6a8810b21c used std::move() 2022-12-11 16:36:27 +01:00
silverqx 66d5897203 fixtypo 2022-12-11 16:32:00 +01:00
silverqx 3a88d6b1ee removed clang-tidy suppressions 2022-12-11 15:16:15 +01:00
silverqx 9bf9888a15 moved all Q_GLOBAL_STATIC from anonym. namespace 2022-12-11 14:16:41 +01:00
silverqx c6f8ebfd77 perf avoid useless copy/moves
Enhanced the Attribute::removeDuplicitKeys().
2022-12-11 09:57:14 +01:00
silverqx 22d66ae45b updated NOTES.txt 2022-12-11 09:45:49 +01:00
silverqx 5595cd47b4 ranges used operator|() 2022-12-11 09:45:36 +01:00
silverqx aae3fb7fee whitespaces 2022-12-11 09:45:13 +01:00
silverqx 8078a24332 perf enhanced Grammar 2022-12-08 19:55:03 +01:00
silverqx 83546a0f31 perf enhanced Grammar::concatenate() 2022-12-08 19:12:13 +01:00
silverqx 2fd0afc263 added and used setColumns() rvalue overload 2022-12-08 19:11:40 +01:00
silverqx 8e3314d41c added noexcept 2022-12-08 19:10:56 +01:00
silverqx c0191250e3 updated NOTEX.txt, KCachegrind 2022-12-08 18:58:46 +01:00
silverqx 3f8f30b015 updated NOTES.txt, trivial, no/throw checks 2022-12-08 18:58:38 +01:00
silverqx 6e3eb9522d update comment 2022-12-08 18:14:58 +01:00
silverqx a43584e994 updated NOTEX.txt, KCachegrind 2022-12-08 18:06:14 +01:00
silverqx e31ae366d1 moved method down 2022-12-08 18:03:29 +01:00
silverqx 1e1f8d07b0 used QChar in BaseGrammar 2022-12-08 18:01:13 +01:00
silverqx 5a5107a87a updated NOTEX.txt, KCachegrind 2022-12-08 18:00:01 +01:00
silverqx 8b24412e08 update comment 2022-12-08 17:59:50 +01:00
silverqx 03fc82ae00 perf completely avoid the __tiny_func__
For performance reasons, the __tiny_func__ is exclusively used only
in the exceptions.
2022-12-08 17:58:14 +01:00
silverqx a1d8732d1d updated NOTEX.txt, KCachegrind 2022-12-08 16:38:49 +01:00
silverqx ddeacc6e5c updated NOTEX.txt, KCachegrind 2022-12-08 16:32:52 +01:00
silverqx e8f0fa9adb added todo task 2022-12-08 16:07:56 +01:00
silverqx b267ff0cc2 added todo task 2022-12-08 16:03:53 +01:00
silverqx e6c0fc9917 perf removed __tiny_func__
Until I will have a fast __tiny_func__ implementation, then I can
revert it. Also use static local variables instead!
2022-12-08 16:03:38 +01:00
silverqx 2626ff2952 updated comment 2022-12-08 15:53:05 +01:00
silverqx 19dcdc1559 whitespace 2022-12-08 15:52:38 +01:00
silverqx e9da22c317 moved QVector instantiation into the loop 2022-12-07 18:40:50 +01:00
silverqx 39dad54665 used std::move() 2022-12-07 18:39:46 +01:00