Hamed Masafi
94c2c4ad5f
all warnings was fixed !!!
2020-07-30 19:35:11 +04:30
Hamed Masafi
3a2115b309
revert qmake.conf for invalidate ascii casting
2020-07-30 18:05:58 +04:30
Hamed Masafi
6e186e0365
wip: remove ascii cast warnings
2020-07-30 17:41:45 +04:30
Hamed Masafi
a6c6c9b4d6
fix: build error
2020-07-30 13:22:07 +04:30
Hamed Masafi
ac77f8aa4f
fix: build errors
2020-07-30 13:08:48 +04:30
Hamed Masafi
f1e21d8087
test module
2020-07-29 17:01:47 +04:30
Hamed Masafi
9871891772
wip: remove warnings
2020-07-29 14:12:27 +04:30
Hamed Masafi
4dd6a7296f
test module
2020-07-29 13:20:32 +04:30
Hamed Masafi
cd8f8af922
fix: upload name in build workflow
2020-07-29 09:30:12 +04:30
Hamed Masafi
3470f7f8b3
resolve symbols export errors on msvc
2020-07-28 12:50:57 +04:30
Miklós Márton
b077defc81
Fix X->x typo in the NUT_PRIMARY_AUTO_INCREMENT macro ( #92 )
...
* Extend .gitignore
* Extend .gitignore
* Fix X->x typo in the NUT_PRIMARY_AUTO_INCREMENT macro
2020-07-27 18:13:52 +04:30
Miklós Márton
a3d9d0a1e0
Add Q_ENUM to the Table::Status (makes debugging easier) ( #101 )
2020-07-27 18:13:36 +04:30
Hamed Masafi
471deff196
change to creating lib to dynamic
2020-07-27 12:31:26 +04:30
Jack Lilhammers
ee7151ea2f
Fixed some warnings and typos ( #99 )
...
* Draft of support for the unique constraint
* Update table.md
Removed the note beside the unique keyword description
* Fixed typo
* Fixed typo
* Removed a warning on initialization order
* Small refactoring of TableSet::at() and TableSet::operator[]
* Fixed a couple of warnings
2020-07-14 18:02:52 +04:30
Jack Lilhammers
6ce50e2250
Draft of support for the unique constraint ( #95 )
2020-07-07 19:20:17 +04:30
Miklós Márton
0d638a6fae
Fix qVariantFromValue deprecation ( #94 )
2020-06-13 11:52:42 +04:30
zhengshuyuan
8ceea29d3e
Update database_p.h ( #89 )
...
update function's param name according to database.cpp file.
2020-04-28 18:17:51 +04:30
Miklós Márton
4cef64c4b6
Fix typos ( #88 )
2020-04-28 18:17:25 +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
aybbega
3f94b1f02c
Bug: Doesn't compile for Qt 5.6.2 ( #75 )
2020-02-13 19:53:16 +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
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
Hamed Masafi
b9fa7d9495
add template to template method call
2019-08-04 11:48:15 +04:30
Hamed.Masafi
39f03d495d
workign on sql server
2019-07-22 18:34:13 +04:30
Hamed Masafi
850434617c
datetime test pass by mysql
2019-07-22 12:37:53 +04: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
5dc28f024a
done
2019-07-21 11:41:34 +04:30
Hamed Masafi
a25e94e930
polish query
2019-07-21 11:16:02 +04:30
Hamed Masafi
dfef256598
few tidy
2019-07-20 11:07:08 +04:30
Hamed Masafi
b79f4c88bc
add qDebug()
2019-07-20 09:52:25 +04:30
Hamed Masafi
8af5f06727
working for now && compiler in success form
2019-07-19 17:22:52 +04:30
Hamed Masafi
7871092a81
revert
2019-07-18 12:08:16 +04:30
Hamed Masafi
4e0731f50d
tbc
2019-07-18 11:39:31 +04:30
Hamed Masafi
65b94d363b
try to polish Query::toList
2019-07-17 18:13:30 +04:30
Hamed.Masafi
34f494e674
Nut::Table::d changed to QExplicitlySharedDataPointer
2019-07-17 17:11:33 +04:30
Hamed Masafi
1975ff0027
wip: shared pointer childs for tableset
2019-07-08 19:23:02 +04:30
Hamed Masafi
1c196fe3ef
polish FieldPhrase<QDate/QTime/QDateTime>
2019-07-07 19:42:37 +04:30
Hamed Masafi
e539a1da75
date/time parts added for sqlite
2019-07-07 19:18: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
73c5295f6d
removed few comment lines
2019-07-03 18:27:00 +04:30
Hamed Masafi
52937cbcb3
do clear in shared pointer mode
2019-07-02 22:00:29 +04:30
Hamed Masafi
3b39018985
join works on shared pointer mode
2019-07-02 12:23:44 +04:30
Hamed Masafi
04bfecd66e
fix between sql operator
2019-07-02 11:00:49 +04:30
Hamed Masafi
91b1701475
Merge pull request #46 from HamedMasafi/plan/new_macro_model
...
Plan/new macro model
2019-06-26 19:51:45 +04:30
Hamed Masafi
2c4495bfb4
basic test passed
2019-06-26 19:36:44 +04:30