Commit Graph

28 Commits

Author SHA1 Message Date
silverqx
8ca7813a4a docs fixtypo C++ 2023-07-15 14:14:41 +02:00
silverqx
fe0c6547e0 docs bugfix and updated heading IDs 2023-07-15 14:06:42 +02:00
silverqx
b7dd2e5811 docs fixtypo 2023-06-01 14:35:37 +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
e7f845a6cd docs unified links to Qt's documentation
Used the /qt/ instead of specific versions, eg. /qt-5/xyz.
2023-01-27 14:23:21 +01:00
silverqx
fdb1c4c164 docs QLatin1Char 2022-11-12 03:37:33 +01:00
silverqx
c3281836bb docs whitespaces 2022-11-11 09:54:09 +01:00
silverqx
2f2d3e865a docs add Model::only 2022-11-08 13:51:02 +01:00
silverqx
035b4dfeb8 docs described Model ctor and QDateTime problem 2022-11-08 13:42:52 +01:00
silverqx
c650aacc51 docs used currentDateTimeUtc() 2022-11-08 13:42:34 +01:00
silverqx
b9c7761535 docs added paragraph about u_dates
[skip ci]
2022-09-02 07:48:13 +02:00
silverqx
46808b1005 added unix timestamps support
The Model::u_dateFormat now also accepts 'U' for unix timestamps.
The database column type should be qint64 or int.

 - added extensive unit tests also for null values, for getAttribute()
   and also for setAttribute()
 - updated migrations, added a new added_on unix timestamp column
   to the Role model
 - updated database seeders
 - updated docs
2022-08-30 10:26:40 +02:00
silverqx
7b38c719bb docs removed useless tip 2022-08-29 09:32:48 +02:00
silverqx
0946ad6046 added TinyBuilder::touch()
- added unit tests
 - added model proxy touchAll()
 - added docs
2022-08-27 11:21:40 +02:00
silverqx
26c719689d docs fixtypo 2022-08-27 09:51:34 +02:00
silverqx
61bd9e87f1 added Soft Deleting support 🤯🙌
In addition to actually removing records from your database, TinyORM
can also "soft delete" models. When models are soft deleted, they are
not actually removed from your database. Instead, a deleted_at attribute
is set on the model indicating the date and time at which the model was
"deleted".

 - added docs
 - added all proxies
 - added complete functional tests and a few unit tests
 - carefully verified all possible scenarios because it changes
   practically all queries 🤯

Others:

 - also added from() to all proxies
 - bugfix in seeders, bad ID in the PostgreSQL primary key (sequence)
2022-08-26 18:21:45 +02:00
silverqx
bb8adaa28a docs added Model::upsert 2022-08-21 18:55:30 +02:00
silverqx
135e61eb40 docs fixtypo 2022-08-21 18:34:35 +02:00
silverqx
191db6a48d docs added note about operator== 2022-08-20 17:01:44 +02:00
silverqx
96b80488d0 added HasOne/BelongsTo::is/isNot
It allows comparing a related model without issuing a query to retrieve
that model.

 - added functional tests for both HasOne and also BelongsTo relations
 - added docs

Others:

 - added the new unit test case tst_Relations_Connection_Independent
2022-08-19 16:31:38 +02:00
silverqx
21c5f3c4be docs added Model::replicate 2022-08-19 07:28:16 +02:00
silverqx
ea30ef90d5 docs fixtypo tab completion
Used tab completion in docs instead of tab-completion.
2022-08-06 14:33:41 +02:00
silverqx
a3d06fdd6f added docs for TinyBuilder::BuildsQueries 2022-07-29 08:42:45 +02:00
silverqx
8f726a0878 docs add Model::findOr() and aggregates example 2022-07-26 10:16:31 +02:00
silverqx
16494b4507 docs moved tip to other page
[skip ci]
2022-07-10 21:06:43 +02:00
silverqx
1fb49dbcac docs added Generating Model Classes section
[skip ci]
2022-07-10 14:14:49 +02:00
silverqx
adf891461d docs added keywords
[skip ci]
2022-05-27 10:57:27 +02:00
silverqx
144dfdf395 docs categorized documentation
- moved docs to categories
 - updated all links

[skip ci]
2022-05-18 15:43:20 +02:00