mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-24 09:48:26 -05:00
renamed c macro to TINYORM_USING_PCH
- also added this macro to docs
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ target_sources(${TinyOrm_target} PRIVATE
|
||||
target_precompile_headers(${TinyOrm_target} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:"pch.h">)
|
||||
|
||||
if(NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
|
||||
target_compile_definitions(${TinyOrm_target} PRIVATE USING_PCH)
|
||||
target_compile_definitions(${TinyOrm_target} PRIVATE TINYORM_USING_PCH)
|
||||
endif()
|
||||
|
||||
# TinyORM library specific configuration
|
||||
|
||||
@@ -16,7 +16,7 @@ ${TINY_UNPARSED_ARGUMENTS}")
|
||||
)
|
||||
|
||||
if(NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
|
||||
target_compile_definitions(${name} PRIVATE USING_PCH)
|
||||
target_compile_definitions(${name} PRIVATE TINYORM_USING_PCH)
|
||||
endif()
|
||||
|
||||
set_target_properties(${name}
|
||||
|
||||
@@ -279,6 +279,7 @@ But a special situation is when you are building your application / library and
|
||||
| `TINYORM_DISABLE_THREAD_LOCAL` | Remove all [`thread_local`](https://en.cppreference.com/w/c/language/storage_duration) storage duration specifiers, it disables threading support.<br/><small>Defined when [`disable_thread_local`](#disable_thread_local) <small>(qmake)</small> / [`DISABLE_THREAD_LOCAL`](#DISABLE_THREAD_LOCAL) <small>(cmake)</small> configuration `build option` is enabled.</small> |
|
||||
| `TINYTOM_MIGRATIONS_DIR` | Default migrations path for the `make:migration` command, can be an absolute or relative path (to the <abbr title='Current working directory'>pwd</abbr>).<br/><small>Default value: `database/migrations` <small>(relative to the pwd)</small></small><br/><small>Defined by [`TOM_MIGRATIONS_DIR`](#TOM_MIGRATIONS_DIR) <small>(cmake)</small> configuration build option.<br/><small>(qmake note) You can use `DEFINES += TINYTOM_MIGRATIONS_DIR="\"database/migrations\""` on the command-line or set it in the __main__ [`conf.pri`](https://github.com/silverqx/TinyORM/blob/main/conf.pri.example#L4-L9) file.</small></small> |
|
||||
| `TINYTOM_SEEDERS_DIR` | Default seeders path for the `make:seeder` command, can be an absolute or relative path (to the <abbr title='Current working directory'>pwd</abbr>).<br/><small>Default value: `database/seeders` <small>(relative to the pwd)</small></small><br/><small>Defined by [`TOM_SEEDERS_DIR`](#TOM_SEEDERS_DIR) <small>(cmake)</small> configuration build option.<br/><small>(qmake note) You can use `DEFINES += TINYTOM_SEEDERS_DIR="\"database/seeders\""` on the command-line or set it in the __main__ [`conf.pri`](https://github.com/silverqx/TinyORM/blob/main/conf.pri.example#L11-L12) file.</small></small> |
|
||||
| `TINYORM_USING_PCH` | Defined if building with precompiled headers.<br/><small>Controlled by [`qmake`](#precompile_header) / [`CMake`](#CMAKE_DISABLE_PRECOMPILE_HEADERS).</small> |
|
||||
|
||||
</APITable>
|
||||
</div>
|
||||
|
||||
@@ -1327,7 +1327,6 @@ TINYORM_END_COMMON_NAMESPACE
|
||||
// CUR docs, add all the implemented features summary somewhere silverqx
|
||||
// CUR export dll paths in Invoke- ps1 scripts, also check dotenv and source if needed and add dotenv example to tools/ silverqx
|
||||
// TODO cache static_cast<>(*this) in the model()/basemodel() CRTP as a class data member std::optional<std::reference_wrapper<Derived>> m_model = std::nullopt, but I will have to create copy ctor to set m_model {std::nullopt}, the same for other similar model() methods like Model::model(), then I can to check if (m_model) and return right away and I will call static_cast or dynamic_cast only once for every instance, it is casted everytime now 😟 silverqx
|
||||
// CUR rename USING_PCH to TINY_USING_PCH or TINYORM_USING_PCH/TINYUTILS_USING_PCH? silverqx
|
||||
// CUR docs exceptions, which methods throw which exceptions, so user know which exception classes to define in a catch blocks silverqx
|
||||
// CUR Belongs To Many firstOrNew, firstOrCreate, and updateOrCreate Methods, revisit first and second argument silverqx
|
||||
// CUR add attribute to touch() method silverqx
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ PRECOMPILED_HEADER = $$quote($$PWD/pch.h)
|
||||
HEADERS += $$PRECOMPILED_HEADER
|
||||
|
||||
precompile_header: \
|
||||
DEFINES *= USING_PCH
|
||||
DEFINES *= TINYORM_USING_PCH
|
||||
|
||||
@@ -38,7 +38,7 @@ add_library(${TinyOrm_ns}::${TinyUtils_target} ALIAS ${TinyUtils_target})
|
||||
target_precompile_headers(${TinyUtils_target} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:"pch.h">)
|
||||
|
||||
if(NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
|
||||
target_compile_definitions(${TinyUtils_target} PRIVATE USING_PCH)
|
||||
target_compile_definitions(${TinyUtils_target} PRIVATE TINYORM_USING_PCH)
|
||||
endif()
|
||||
|
||||
# TinyORM library specific configuration
|
||||
|
||||
@@ -5,4 +5,4 @@ PRECOMPILED_HEADER = $$quote($$PWD/pch.h)
|
||||
HEADERS += $$PRECOMPILED_HEADER
|
||||
|
||||
precompile_header: \
|
||||
DEFINES *= USING_PCH
|
||||
DEFINES *= TINYORM_USING_PCH
|
||||
|
||||
Reference in New Issue
Block a user