Commit Graph

1024 Commits

Author SHA1 Message Date
silverqx
039e4e3ba4 test tom example for mingw workflow 2022-04-29 19:15:06 +02:00
silverqx
cbab4286b1 updated NOTES.txt, prepend env. vars. gh actions 2022-04-29 19:13:43 +02:00
silverqx
4bb99763f6 added tom example to mingw workflow 2022-04-29 18:42:44 +02:00
silverqx
24450cc7ee test prepend LD_LIBRARY_PATH for mingw workflow 2022-04-29 18:19:42 +02:00
silverqx
5833a35003 test prepend LD_LIBRARY_PATH for mingw workflow 2022-04-29 18:13:58 +02:00
silverqx
0039035505 finished tom example for linux workflow 2022-04-29 18:10:05 +02:00
silverqx
d9ebb85fe5 disabled ansi output for tom example in workflows
Output was not corrupted but was without coloring.
2022-04-29 18:09:23 +02:00
silverqx
cb13924007 enabled ansi output for tom example in workflows 2022-04-29 17:53:02 +02:00
silverqx
5270ed3bbb added tom example to linux workflow 2022-04-29 17:48:56 +02:00
silverqx
605dbb3a7c test prepend LD_LIBRARY_PATH for linux workflow 2022-04-29 17:45:19 +02:00
silverqx
956b56a154 test prepend LD_LIBRARY_PATH for linux workflow 2022-04-29 17:39:09 +02:00
silverqx
9381ec5c97 test prepend LD_LIBRARY_PATH for linux workflow 2022-04-29 17:34:30 +02:00
silverqx
6051bb5d22 test prepend LD_LIBRARY_PATH for linux workflow 2022-04-29 17:32:26 +02:00
silverqx
4b2bf43b00 finished tom example for msvc workflow 2022-04-29 17:30:43 +02:00
silverqx
b194d64bb4 added tom example to msvc action 2022-04-29 16:26:00 +02:00
silverqx
0e3fb06d1b added ORM and TOM cmake options to github actions 2022-04-29 16:25:06 +02:00
silverqx
e6e4bd2570 updated NOTES.txt common cmake for QtCreator 2022-04-29 16:24:13 +02:00
silverqx
166b6b479d bugfix in analyzers.yml 🙄 2022-04-29 15:19:07 +02:00
silverqx
7f18b75ff6 added upgrade clazy to NOTES.txt 2022-04-29 15:03:50 +02:00
silverqx
cd59b2763d upgraded to clang 14 in linux github action 2022-04-29 14:48:16 +02:00
silverqx
2baf2449a2 upgraded clang-tidy/clazy in github actions
- upgraded clang to 14 (from clang 13)
 - upgraded clazy-standalone to 1.11 (from 1.10)
 - enabled new clazy 1.11 checks use-arrow-operator-instead-of-data,
   unexpected-flag-enumerator-value, and qt6-deprecated-api-fixes
2022-04-29 14:34:49 +02:00
silverqx
ba66bf1f65 upgraded clang-tidy/clazy configs to Clang 14
Updated only one todo task, real work was in my pwsh scripts for
analyzers.

 - enabled new clazy 1.11 checks use-arrow-operator-instead-of-data and
   unexpected-flag-enumerator-value, and qt6-deprecated-api-fixes
2022-04-29 14:34:34 +02:00
silverqx
2e2b6e683a bugfix qt5 build missing #include 2022-04-29 10:30:17 +02:00
silverqx
01c203bf48 enabled tom example in github actions 2022-04-29 08:53:00 +02:00
silverqx
da1470ffd5 finished printing options with values
- different render format for options with values --env[=ENV]
 - printing a default value part after the description
 - added some validations for option names, especially validate the size
 - fixed default value name in all commands, it should be upper
2022-04-29 08:32:47 +02:00
silverqx
b732f6f115 QLatin1String to QStringLiteral 😎 2022-04-28 17:22:42 +02:00
silverqx
9078fae60f fixed clang-tidy and clazy warnings 2022-04-28 17:04:42 +02:00
silverqx
63d81e0569 used EMPTY constant in the tom example 2022-04-28 14:36:32 +02:00
silverqx
aa1815927d removed todo task 2022-04-28 14:35:58 +02:00
silverqx
a3c137b953 added support for the linux g++/clang 2022-04-28 13:10:25 +02:00
silverqx
133d9e525a removed todo task 2022-04-28 13:03:56 +02:00
silverqx
631280ad78 added string constants for tom
Created own tomconstants for the Tom namespace (folder tom/) and used
them everywhere.

Others:

 - removed Q_GLOBAL_STATIC_WITH_ARGS() in migrationcreator.cpp and used
   getter with the local static const
2022-04-28 13:03:46 +02:00
silverqx
ae65961d89 fixed clang-tidy/clazy warnings 2022-04-27 08:18:07 +02:00
silverqx
dc7a011de7 enabled linters for tom example
- added -DTOM_EXAMPLE:BOOL=ON for the github actions
 - updated header-filter regex for the clang-tidy and clazy
2022-04-26 20:33:11 +02:00
silverqx
97cd174ba7 cmake max. version to 3.23 2022-04-26 20:31:29 +02:00
silverqx
b18835c468 disabled bugprone-macro-parentheses
Problem is that it also validates macros on the compiler command line,
so it is impossible to suppress warning.
2022-04-26 20:30:59 +02:00
silverqx
373937958c provide custom migrations path to the tom example
User can provide a custom migrations path for the make:migration
command.

Default path is at database/migrations relative to the tom example
executable.

This allows to use the tom example as a real migration application and
the user doesn't have to create his own migration project.

Using:

 - TomApplication::migrationsPath()
 - TINYTOM_MIGRATIONS_PATH preprocessor macro, will be stringified
 - TOM_MIGRATIONS_PATH CMake PATH option
2022-04-26 19:56:48 +02:00
silverqx
1ad27af48a updated gitignore 2022-04-25 16:05:51 +02:00
silverqx
44584be459 removed fixed todo tasks 2022-04-25 16:00:38 +02:00
silverqx
9933354594 moved tst_version auto test
Moved to the functional/others/ folder.
2022-04-25 15:22:36 +02:00
silverqx
4dda25105f updated all docs links to www.tinyorm.org 2022-04-25 15:10:32 +02:00
silverqx
54cbc6f03e updated comment 2022-04-25 15:03:20 +02:00
silverqx
58d8b91e97 partial fix of tabulate locales on MSYS2 ucrt64 2022-04-25 14:33:41 +02:00
silverqx
25e2f63fc1 docs, added note about precompile_header 2022-04-25 12:50:42 +02:00
silverqx
e94d10076c renamed local variable 2022-04-25 12:28:29 +02:00
silverqx
4b4f072035 fixed msys2 g++/clang warnings 2022-04-25 12:18:00 +02:00
silverqx
f13ca22163 tried to make application methods const
Without success, I would have to create own parser for Command, I have
create FUTURE task for this.
2022-04-25 11:46:31 +02:00
silverqx
7ba2e3cdae added guessing of namespace and command names 👌
Only partial names no matter of case can be passed, eg. mi:st for
the migrate:status, or m for the migrate command.
If the passed name is ambiguous then the error wall with all ambiguous
commands or namespaces is displayed, ambiguous commands also contain
a description.

Following positional arguments support guessing:

 - main command name at 0 position
 - command name passed to the help command
 - namespace name passed to the list command
2022-04-24 21:10:45 +02:00
silverqx
13ab2db6df tom validate required positional arguments 2022-04-22 12:59:01 +02:00
silverqx
eb71a1f7de fix virtual dtors 2022-04-22 11:23:50 +02:00