Commit Graph

352 Commits

Author SHA1 Message Date
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
soyoo 7315a3f634
Update sharedpointer.md (#78) 2020-03-16 22:10:08 +03:30
soyoo 4649cdb11d
Update table.md (#79) 2020-03-16 22:09:52 +03:30
soyoo d2c9deec1d
Update sharedpointer.md (#77) 2020-03-16 22:09:36 +03:30
Miklós Márton 5eaadcd350
Extend gitignore (#72)
* Extend .gitignore

* Extend .gitignore
2020-02-13 19:53:28 +03:30
aybbega 3f94b1f02c
Bug: Doesn't compile for Qt 5.6.2 (#75) 2020-02-13 19:53:16 +03:30
Isaac Nickaein 85532eb12e
Fix minor typos in README (#74) 2020-02-10 22:41:27 +03:30
Hamed Masafi 3a8e1a22c8 Update issue templates 2020-02-08 19:22:05 +03: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
Miklós Márton 2f439541a4
Fix RelationModel == operator (#68)
I assume this was just a copy paste mistake.
2020-01-30 00:58:45 +03:30
Miklós Márton 1ccae27b7e Fix possible refering to unallocated memory by using QSharedPointer in (#66)
Query::toList
2020-01-22 12:02:50 +03:30
Miklós Márton be5434551e Set ordered config in the pro file (#63)
When building the nut.pro (with multiple threads) it was possible to have a build failure until the library have not built. 
The CONFIG += ordered line solves this problem:

> When using the subdirs template, this option specifies that the directories listed should be processed in the order in which they are given.
https://doc.qt.io/qt-5/qmake-variable-reference.html
2020-01-11 17:48:47 +03:30
Miklós Márton a88450bf13 - Use SQLite for testing on Linux (#64)
- Fix clang warning about parentheses
2020-01-11 17:48:04 +03:30
Hamed Masafi 9762d65742
Update README.md 2020-01-08 10:38:14 +03:30
Miklós Márton 3ca99e372b When specifying empty condition in the where condition the code pointed (#61)
to uninitialized memory in the conditionalphrase.cpp 115 line. This
patch fixes it.
2020-01-08 10:29:56 +03:30
Miklós Márton e062b49830 Add Q_DECLARE_METATYPE(Post*) to the example (#60) 2020-01-05 15:21:54 +03:30
Miklós Márton 546b7ae53c Fix whete typo (#59) 2020-01-05 15:20:51 +03:30
Hamed Masafi d42e1b3f5c
Update README.md 2019-12-09 09:52:03 +03:30
Hamed Masafi 1918eaad5f
Appveyor badge [skip ci] 2019-08-09 00:28:49 +04:30
Hamed Masafi 62470c6f6b
Remove extra indent in bullets [skip ci] 2019-08-09 00:04:13 +04:30
Hamed Masafi ab5b0f694d
appveyor fixed [skip ci] (#52) (#53)
* update appveyor

* update appveyor

* update appveyor

* update appveyor

* update appveyor

* update appveyor

* update appveyor

* update appveyor

* remove % from variable name

* add cotation to variable call

* path correction

* path correction

* path correction

* path correction

* removed test script

* md fix [slip ci]

* ready to merge [skip ci]
2019-08-08 19:51:41 +04:30
Hamed Masafi d6ae9a8850
Update appveyor.yml 2019-08-08 18:52:40 +04:30
Hamed Masafi e3ee721418
Update appveyor.yml 2019-08-08 18:50:57 +04:30
Hamed Masafi 06c55b49cf
Update appveyor.yml 2019-08-08 18:40:05 +04:30
Hamed Masafi 143df55673
Update appveyor.yml 2019-08-08 18:35:11 +04:30
Hamed Masafi 9579764550
updaye appveyor.qml [skip ci] 2019-08-08 12:47:22 +04:30
Hamed Masafi 1a985e9ba6
Merge pull request #51 from HamedMasafi/dev
ci
2019-08-08 10:30:28 +04:30
Hamed Masafi 12628dcd40
Merge branch 'master' into dev 2019-08-08 10:30:10 +04:30
Hamed Masafi 504a4346ab Merge branch 'dev' of https://github.com/HamedMasafi/Nut into dev 2019-08-05 09:26:32 +04:30
Hamed Masafi 6bfb8da869 fix: appveyor Qt path 2019-08-05 09:26:19 +04:30
Hamed Masafi 1f19423668
Update appveyor.yml 2019-08-04 19:54:19 +04:30
Hamed Masafi e29c6cdc73
Update appveyor.yml 2019-08-04 19:43:08 +04:30
Hamed Masafi 4a6b3a05da
Update appveyor.yml 2019-08-04 19:41:15 +04:30
Hamed Masafi 4ca814e440 oops, typo in appveyor matrix 2019-08-04 19:11:13 +04:30
Hamed Masafi 1f567c3432 appveyoe new matrix 2019-08-04 19:08:32 +04:30
Hamed Masafi 802ad513a8 update badge [skip ci] 2019-08-04 18:48:58 +04:30
Hamed Masafi ea6c0fec14
Update README.md 2019-08-04 18:48:06 +04:30
Hamed Masafi e0d011e62b update appveyor.yml script and badge [skip ci] 2019-08-04 18:41:16 +04:30
Hamed Masafi 2a1df6895d
Update README.md 2019-08-04 18:39:02 +04:30
Hamed Masafi 5dc5d89648
Update appveyor.yml 2019-08-04 18:35:08 +04:30
Hamed Masafi 0b6815bf58
Update appveyor.yml 2019-08-04 18:20:31 +04:30
Hamed Masafi 8f772818fb
Update appveyor.yml 2019-08-04 18:18:08 +04:30
Hamed Masafi 69e695a81e
Update appveyor.yml 2019-08-04 18:16:15 +04:30
Hamed Masafi 277d15707f
Merge pull request #50 from HamedMasafi/dev
add template to template method call
2019-08-04 11:49:47 +04:30
Hamed Masafi b9fa7d9495 add template to template method call 2019-08-04 11:48:15 +04:30
Hamed Masafi c8a7479a9f
Update .travis.yml
Remove extra quotation mark
2019-08-04 11:28:08 +04:30
Hamed Masafi da95ce93bf
Merge pull request #49 from HamedMasafi/dev
alpha 1.0
2019-08-04 11:13:09 +04:30
Hamed Masafi f17a35a0d7 travid -= gui 2019-08-04 11:07:32 +04:30
Hamed.Masafi 39f03d495d workign on sql server 2019-07-22 18:34:13 +04:30