Commit Graph

60 Commits

Author SHA1 Message Date
Jack Lilhammers 6ce50e2250
Draft of support for the unique constraint (#95) 2020-07-07 19:20:17 +04:30
Miklós Márton 7d7a3caf41
Remove semicolons after Q_UNUSED macros (#84)
* Extend .gitignore

* Extend .gitignore

* Removed unneccessary semicolons after the Q_UNUSED macros
2020-04-04 14:55:35 +04:30
Miklós Márton f56ccd7055
Add sum feature (#83)
* Fix possible refering to unallocated memory by using QSharedPointer in
Query::toList

* - Implemented sum field feature
- Fixed SingleField typo
- Added test for sum, and count field feature
- Fixed test case for average field feature
2020-04-03 10:43:38 +04:30
Miklós Márton 89c362f20b
Fix Query::first (#71)
The Query::first fetched all records. Now the limit number is properly
propagated to the SQL generators.

- Optimized limited but not offseted queries in SqliteGenerator
- Implemented limit and offset generation in the MySqlGenerator
- Added test for limited data query
2020-02-08 11:47:08 +03:30
Hamed Masafi ad808afc6c fix:datetime test pass by postgresql 2019-07-22 11:48:11 +04:30
Hamed Masafi c5c9551e74 some tidy 2019-07-21 19:58:20 +04:30
Hamed Masafi 3cee4dae4f sqlite passed tst_datetime 2019-07-07 12:20:49 +04:30
Hamed Masafi f02e409ee2 wip: date time functions 2019-07-06 18:38:40 +04:30
Hamed Masafi 04bfecd66e fix between sql operator 2019-07-02 11:00:49 +04:30
Hamed Masafi e3800f44ab fix; invalid insert command generation 2019-06-22 17:18:35 +04:30
Hamed Masafi 136c393f6e #36 misspelling of "foreign" [skip ci] 2019-06-19 14:06:49 +04:30
Hamed Masafi e946a54753 initial 2019-06-18 18:10:40 +04:30
Hamed Masafi 370d5234e0 merbe back 2019-06-06 18:38:11 +04:30
Hamed Masafi 9626e5f863 Merge branch 'dev' of https://github.com/HamedMasafi/Nut into dev 2019-06-06 17:31:56 +04:30
Hamed Masafi 4028471303 remove extra model check 2019-06-06 17:30:03 +04:30
Hamed Masafi 27a8908e26 working to remove extra model check [skip ci] 2019-06-06 01:13:36 +04:30
Hamed Masafi ae1ee06f85 wip: remove unneeded TableModel creation 2019-06-05 00:45:30 +04:30
Hamed Masafi 94753fbb2f bool {,de}serialization 2019-04-09 11:55:19 +04:30
Hamed Masafi 0e61d62ab6 added contains method to string field type [skip ci] 2019-03-08 12:44:07 +03:30
Hamed Masafi 1b02d795a9 bulk inserter [skip ci] 2019-03-07 20:18:48 +03:30
Hamed Masafi c9250482b2 fix: crash when old table class removed from nut::database [skip ci] 2019-03-07 12:21:16 +03:30
Hamed Masafi bb55b4b743 wip: CONSTRAINT [skip ci] 2019-03-02 19:21:43 +03:30
Hamed Masafi a6f6217d89 rename readValue to unescapeValue [skip ci] 2019-02-28 13:19:43 +03:30
Hamed Masafi d3f43ca15e init for ci test 2019-02-28 12:58:59 +03:30
Hamed Masafi d906bd81fd remove -=gui from tests 2019-02-28 11:40:41 +03:30
Hamed Masafi 02d5486939 date parts sql [skip ci] 2019-02-26 13:19:50 +03:30
Hamed Masafi 762481ba2f mysql passed upgrade test [skip ci] 2019-02-25 18:25:16 +03:30
Hamed Masafi f3748241ff upgrade passed by sqlite [skip ci] 2019-02-16 17:06:38 +03:30
Hamed Masafi 177fb6808c wip: postgres data types [skil ci] 2019-02-10 20:03:14 +03:30
Hamed Masafi a6e1dd932d a few clazy-ing [skip ci] 2019-02-10 17:41:22 +03:30
Hamed Masafi ce55d7df81 AVERAGE => AVG 2019-02-10 16:22:21 +03:30
Hamed Masafi c208908b3a sqlite support many types :-) 2019-02-10 13:05:35 +03:30
Hamed Masafi 6f31c4e6b9 teste 2019-02-08 12:41:53 +03:30
Hamed Masafi f5c10e8759 subdirs 2019-02-08 12:09:24 +03:30
Hamed Masafi afcfa39ada wip:serializer 2019-02-07 19:22:57 +03:30
Hamed Masafi 81f23a1874 sqlite primary key 2019-01-28 11:23:34 +03:30
Hamed Masafi f2f793b106 some polish 2019-01-16 20:05:49 +03:30
Hamed Masafi 0af41ed396 some polish 2019-01-09 19:19:50 +03:30
Hamed Masafi 8654b6a1f9 add donate button in readme [skip ci] 2018-10-15 18:05:40 +03:30
Hamed Masafi cd1bf90608 create model without extra property 2018-07-12 11:17:41 +04:30
AmR EiSa 1d84e61de7 * Remove old style QString::null to avoid clang warring. 2018-04-03 07:29:29 +02:00
Hamed Masafi 9f712a55ea wip 2018-03-11 13:24:36 +03:30
Hamed Masafi 465aee8998 some polish 2018-02-26 13:44:36 +03:30
Hamed Masafi fa21efde1b wip: detect and apply foreign keys 2018-02-24 19:13:15 +03:30
Hamed Masafi 9c0df27eea skip and take new sign 2018-02-21 19:11:45 +03:30
Hamed Masafi 0762e647fb wip: phrases polish 2018-02-17 19:14:39 +03:30
Hamed Masafi 2a1b2766ab comment travis ci broken line 2018-01-15 17:50:26 +03:30
Hamed Masafi f0717cc05b visit method for table result 2018-01-15 01:42:46 +03:30
Hamed Masafi 02037ba2b2 wip: new method: feresh and fast but complicated! 2018-01-14 00:13:51 +03:30
Hamed Masafi c236342ea1 pass to home 2018-01-13 19:29:55 +03:30