Commit Graph

24 Commits

Author SHA1 Message Date
silverqx
978f9160fb docs bugfix class vs className 😱
[skip ci]
2024-08-16 20:40:22 +02:00
silverqx
e38b3b7228 docs updated note admonition
[skip ci]
2024-08-16 18:07:56 +02:00
silverqx
550feec424 docs added API Stability boxes and a new page 2024-07-06 19:10:18 +02:00
silverqx
4c031cd70a docs renamed QVector to QList 2024-07-02 17:35:27 +02:00
silverqx
8e89a5abed docs renamed toVector to toList
Also renamed attributesToVector() to attributesToList().
2024-07-02 17:24:51 +02:00
silverqx
1c2f17facf removed deprecated up to Qt v6.9 (Qt::TimeSpec) 🎉
- removed using of QDateTime methods using plain Qt::TimeSpec
 - set QT_DISABLE_DEPRECATED_UP_TO to 0x060900 (also 0x061000 works)
 - maintained Qt v5 and <v6.5 code still 😬 (next step will be to drop
   Qt v5 🎉)
 - updated auto tests
 - updated docs
 - updated comments

See:
8c8d6ff7b6
2024-06-25 12:13:07 +02:00
silverqx
5e98f39bd5 upgraded to Docusaurus v3.3.2 🥳👌
Also bumped to tinyorm.org v1.0.0.

 - changed :::caution to :::warning
 - enhanced assigning font-size for APITable-s
 - bugfix class vs className
 - bugfix unintended extra paragraphs (a new behavior after the upgrade
   to MDX v3)

[skip ci]
2024-05-06 18:51:10 +02:00
silverqx
74b40e2806 docs removed 4 spaces indent for cpp code blocks
This was hell too.

[skip ci]
2024-05-06 12:32:23 +02:00
silverqx
6603918531 docs added ```cpp around all code blocks 😵‍💫
This was hell.

[skip ci]
2024-05-06 10:29:49 +02:00
silverqx
b83b8247c2 docs used /qt/ in URLs instead of /qt-6/ 2024-04-21 15:07:24 +02:00
silverqx
a1d2c44c34 docs added external link 2023-06-24 20:05:48 +02:00
silverqx
6bb85fae76 docs added missing collection methods
Added documentation for all, toBase, toJson, toJsonArray,
toJsonDocument, toMap, toMapVariantList, toVector, and
toVectorVariantList.
2023-06-24 19:58:26 +02:00
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
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
c837293de1 docs added ModelsCollection 💎 2023-05-27 17:49:26 +02:00