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
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
f80c93f2ec
docs removed useless #include model.hpp
2023-05-20 19:31:01 +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
d01b7ef9d8
docs used QString::fromUtf8(__func__)
...
Used the QString::fromUtf8(__func__) instead of the static_cast<>.
2023-02-14 21:04:39 +01: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
b7958d2f01
docs added note about primary key auto cast
2022-11-11 12:36:27 +01:00
silverqx
7c40595850
docs fixtypo in URL hash
2022-11-11 10:00:57 +01:00
silverqx
34999d0621
docs added TinyORM: Casts
2022-11-11 09:54:54 +01:00
silverqx
c3281836bb
docs whitespaces
2022-11-11 09:54:09 +01:00
silverqx
5089a89b82
docs bugfix library include
2022-11-11 09:50:20 +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
bbdee2e7d8
docs note about u_xyz data member on Custom Pivots
...
[skip ci]
2022-09-01 17:11:09 +02:00
silverqx
9aae5549ac
docs added SoftDeletes caution
...
[skip ci]
2022-08-31 20:33:29 +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
99fce66aad
docs made some expressions more clear
2022-08-08 11:37:50 +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
d290ddbbbc
docs whitespace
2022-08-03 15:04:43 +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
5ea2c184ef
docs added closed look to intermediate tables
...
- also added link to the torrent.hpp as the showcase
[skip ci]
2022-07-09 07:32:58 +02:00
silverqx
f759ba3ba9
docs fixtypo
2022-05-28 16:44:09 +02:00
silverqx
adf891461d
docs added keywords
...
[skip ci]
2022-05-27 10:57:27 +02:00
silverqx
9758e8653e
updated README.md for github
2022-05-23 13:28:45 +02:00
silverqx
542e653a3e
docs added hash tags
2022-05-18 16:04:44 +02:00
silverqx
3e7afec04b
bugfix in urls
2022-05-18 16:02:55 +02:00
silverqx
08d63cfd74
docs added README.md files for github
2022-05-18 16:01:25 +02:00
silverqx
144dfdf395
docs categorized documentation
...
- moved docs to categories
- updated all links
[skip ci]
2022-05-18 15:43:20 +02:00