Commit Graph

380 Commits

Author SHA1 Message Date
silverqx bc65688714 docs updated ModelsCollection::tap example 2023-06-01 15:18:07 +02:00
silverqx 5f44b52875 added Orm::collect<Model>
This method creates a ModelsCollection using the given attributes, it
internally calls the Models::instance() method.

The Orm::collect<Model> function is mandatory if the given attributes
contain the QDateTime instance.

 - updated tests used everywhere
 - updated docs
2023-06-01 14:39:14 +02:00
silverqx b7dd2e5811 docs fixtypo 2023-06-01 14:35:37 +02:00
silverqx 5f7375a29b bugfix crash with SoftDeletes and CRTP 2023-06-01 11:23:03 +02:00
silverqx 48c0f6fc02 added sortBy() sort by multiple columns overload
- added unit tests
 - updated docs
2023-05-31 17:26:40 +02:00
silverqx d7952e2a1b added const to filter, reject, doesnt/constains
Added const to callbacks where appropriate.

 - updated unit tests
 - updated disc
2023-05-31 10:10:01 +02:00
silverqx 7ec8887b57 added ModelsCollection::unique/uniqueBy
- added unit tests
 - updated docs
2023-05-30 16:38:48 +02:00
silverqx acfaead435 added ModelsCollection::sort/sortBy
- also added stableSort() and stableSortBy()
 - added the descending variants for all above methods
 - added Model three way comparison operator for comparing/sorting
   models by the primary key
 - added unit tests
 - updated docs
2023-05-30 11:48:21 +02:00
silverqx 8bb8e090b9 added ModelsCollection::fresh()
- added unit tests
2023-05-28 15:35:55 +02:00
silverqx 6d52565329 docs fixtypo 2023-05-28 15:34:24 +02:00
silverqx 4eb468f4d3 bugfix ModelsCollection::map() return type
- updated docs
2023-05-28 10:44:06 +02:00
silverqx db84428b5e docs used new with() and load() overloads 2023-05-28 08:44:37 +02:00
silverqx ef71215afd added pluck overload
- added unit tests
 - updated docs
2023-05-28 08:25:30 +02:00
silverqx b4b5f5b0ad docs updated Feature Summary 2023-05-27 17:50:02 +02:00
silverqx 164d32f239 docs changed id to class 2023-05-27 17:49:46 +02:00
silverqx c837293de1 docs added ModelsCollection 💎 2023-05-27 17:49:26 +02:00
silverqx 023d27e2de docs used getAttribute<> 2023-05-27 09:54:55 +02:00
silverqx e40de0a58c docs whitespaces 2023-05-27 09:54:25 +02:00
silverqx bbe8f6f56d docs added note about Qt 5 end of life
[skip ci]
2023-05-26 15:34:25 +02:00
silverqx 3dc3cc0281 docs fixtypo 2023-05-26 14:36:47 +02:00
silverqx f80c93f2ec docs removed useless #include model.hpp 2023-05-20 19:31:01 +02:00
silverqx 56eb5ee036 bump version to TinyORM v0.30.3 and tom v0.5.7
[skip ci]
2023-04-17 09:15:49 +02:00
silverqx a851cb5372 sync docs, updated images
[skip ci]
2023-04-16 11:05:00 +02:00
silverqx 931a759f27 sync docs
[skip ci]
2023-04-16 09:56:46 +02:00
silverqx 8a9998a4ba bump version to TinyORM v0.30.2 and tom v0.5.6 2023-04-15 17:37:30 +02:00
silverqx 185be84222 bump version to tom v0.5.5
[skip ci]
2023-04-14 17:37:03 +02:00
silverqx c70f54c3cc docs updated compiler version
[skip ci]
2023-04-08 21:19:02 +02:00
silverqx 7e91b05c97 docs updated compiler versions
[skip ci]
2023-04-08 21:12:59 +02:00
silverqx 458fa46251 bump version to TinyORM v0.30.1 2023-04-04 16:33:06 +02:00
silverqx fb63c66c7f bump version to TinyORM v0.30.0 and tom v0.5.4
- also bump version to TinyUtils v0.3.0
2023-04-02 16:07:09 +02:00
silverqx 9bccda590e changed Model timestamps to getter methods
Changed from static data members to static getter methods to avoid Clang
crashed because of static initialization order.

 - updated docs
2023-04-02 11:07:17 +02:00
silverqx 92529936b2 docs updated number of unit tests to 2796 2023-03-29 16:15:11 +02:00
silverqx 7171fd1045 docs fixtypo
[skip ci]
2023-03-17 12:08:57 +01:00
silverqx cf3a8b12b2 docs QMYSQL fixed json columns
[skip ci]
2023-03-17 07:42:07 +01:00
silverqx 6dac10bcc9 bump version to TinyORM v0.29.3 2023-03-15 21:05:26 +01:00
silverqx 64baa827a7 docs added end-of-life info
[skip ci]
2023-03-15 20:17:58 +01:00
silverqx 156dd7a570 bump version to TinyORM v0.29.2 2023-03-15 16:41:01 +01:00
silverqx 618a904402 docs updated number of unit tests to 2795 2023-03-15 16:40:04 +01:00
silverqx fbe82cef05 bump version to TinyORM v0.29.1 2023-03-15 12:09:03 +01:00
silverqx dba6badad2 docs updated number of unit tests to 2793 2023-03-15 12:06:43 +01:00
silverqx a57ead53f1 bump version to TinyORM v0.29.0 2023-03-15 08:51:21 +01:00
silverqx 90f2441aaa updated number of unit tests to 2729 2023-03-14 17:36:21 +01:00
silverqx 8097037805 schema modifying columns 🔥🚀🥳
Added the change() method which allows to modify the type and attributes
of existing columns.

 - added renameTo() for MySQL which can be used with the change()
 - added tests
 - updated docs
2023-03-14 16:29:07 +01:00
silverqx d1e0d73839 docs added MariaDB configuration example 2023-03-14 12:48:23 +01:00
silverqx 65438acdc4 docs updated supported databases 2023-03-14 12:48:20 +01:00
silverqx bc867de028 bump version to TinyORM v0.28.2
- removed pointless and confusing methods on Model
2023-03-14 11:12:42 +01:00
silverqx 0d34243920 bump version to TinyORM v0.28.1
- bugfix dangling reference 😵‍💫😲🙃
2023-03-12 17:35:18 +01:00
silverqx b8f58deb1b updated number of unit tests to 2187 2023-03-12 15:10:26 +01:00
silverqx ec96b66d9e docs added support page
[skip ci]
2023-02-22 21:48:19 +01:00
silverqx 06892cec11 docs fixtypo
[skip ci]
2023-02-22 14:48:22 +01:00