Hamed Masafi
c382e4d53f
fix: query initial values on some compilers
2020-08-10 18:16:35 +04:30
Hamed Masafi
c0bfa5cc57
fix: test fil (again!!!)
2020-08-10 18:04:26 +04:30
Hamed Masafi
d29795ea09
make BulkInserter movable
2020-08-10 18:03:07 +04:30
Hamed Masafi
22195353c1
removed abstractquery
2020-08-10 17:49:21 +04:30
Hamed Masafi
457d9a5d77
test ci
2020-08-10 17:41:48 +04:30
Hamed Masafi
9a10c53bee
:-(
2020-08-10 12:21:43 +04:30
Hamed Masafi
d39c6aee37
movable query
2020-08-10 11:12:06 +04:30
Hamed Masafi
bc88cd246c
Merge branch 'qt_module' of https://github.com/HamedMasafi/Nut into qt_module
...
# Conflicts:
# tests/auto/tst_basic/tst_basic.cpp
2020-08-10 11:11:41 +04:30
Hamed Masafi
38e43dc61a
fix: test build fail duo invalid skip & take values;
2020-08-09 19:58:16 +04:30
Hamed Masafi
3caf9fa284
Merge branch 'qt_module' of https://github.com/HamedMasafi/Nut into qt_module
2020-08-09 15:03:06 +04:30
Hamed Masafi
3ea38c1e58
/QTEST_ASSERT/QCOMPARE/ for better debugging
2020-08-09 15:02:45 +04:30
Hamed Masafi
ef6a30a3f3
test provate classes
2020-08-08 11:59:16 +04:30
Hamed Masafi
f7160bd23f
convert tablesetbasedata to abstracttablesetdata
2020-08-06 20:11:02 +04:30
Hamed Masafi
abc62fcedf
wip: make needed headers public
2020-08-06 19:49:27 +04:30
Hamed Masafi
1fb87d6a03
wip: fix same type
2020-08-01 13:27:18 +04:30
Hamed Masafi
8c889e98ac
update sub module
2020-07-30 20:44:59 +04:30
Hamed Masafi
7e5e2588a7
wip: make auto tests
2020-07-30 20:43:57 +04:30
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