Chris Tsang
5002c62b40
Use DatabaseConnection in place of Database
2021-06-19 17:28:07 +08:00
Billy Chan
62fb43c605
Add unit test for pagination ( #20 )
...
* Add unit test for pagination
* End with empty page
* Add more test cases
* Assert transaction log
* Test utils
* Feature gated
* IntoMockRow, derive macro with into MockRow
* Revert derive macro
* WIP
* WIP
* assert_transaction_log
2021-06-18 23:43:07 +08:00
Chris Tsang
faffc518ae
Mock test case
2021-06-13 23:38:21 +08:00
Chris Tsang
6b7ea75393
Mock Database Connection
2021-06-13 22:20:50 +08:00
Chris Tsang
b818138724
cargo fmt
2021-06-06 22:42:53 +08:00
Billy Chan
937af05003
Paginator API ( #10 )
...
* Paginator
* Remove unnecessary dependency, rename to num_pages
* Hotfix - nullable json value
* num_pages implemented on sub_query
2021-06-06 22:30:54 +08:00
Chris Tsang
1613a57c19
Tweak
2021-05-27 15:19:15 +08:00
Chris Tsang
97e6bb3433
Refactor JSON
2021-05-27 03:45:47 +08:00