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
Hamed.Masafi
9413c882dc
do not remove if not count
2019-06-23 18:37:06 +04:30
Hamed Masafi
e3800f44ab
fix; invalid insert command generation
2019-06-22 17:18:35 +04:30
Hamed Masafi
f696ffc5c4
working on it
2019-06-22 09:49:06 +04:30
Hamed Masafi
74b2a4524a
initial
2019-06-22 01:32:37 +04:30
Hamed Masafi
136c393f6e
#36 misspelling of "foreign" [skip ci]
2019-06-19 14:06:49 +04:30
Hamed Masafi
a199d91135
minor bug fix [skip ci]
2019-06-19 13:54:58 +04:30
Hamed Masafi
6254c11267
Merge branch 'dev' of https://github.com/HamedMasafi/Nut into dev
2019-06-19 13:47:09 +04:30
Hamed Masafi
06d661e4de
minor bug fix [skip ci]
2019-06-19 13:46:55 +04:30
Hamed Masafi
9eacb3e991
Merge branch 'master' into dev
2019-06-19 11:37:43 +04:30
Hamed Masafi
02ab615005
Merge branch 'dev' into wip/shared_pointer
2019-06-19 11:31:46 +04:30
Hamed Masafi
dfb5df6af9
merge ok [slip ci]
2019-06-19 11:25:46 +04:30
Hamed Masafi
d3b4698b3e
fix uuid as primary key on sqlite [skip ci]
2019-06-19 11:22:00 +04:30
Hamed Masafi
251fc50d53
recover sql model invalid line [skip ci]
2019-06-19 09:47:10 +04:30
Hamed Masafi
dc99f3ed01
Workinsg
2019-06-19 01:02:27 +04:30
Hamed Masafi
b3193cf1c6
some shared pointer [skip ci]
2019-06-18 20:41:26 +04:30
Hamed Masafi
5e5471fdeb
working :-( [skip ci]
2019-06-18 20:07:03 +04:30
Hamed Masafi
e946a54753
initial
2019-06-18 18:10:40 +04:30
Hamed Masafi
e659190f4a
travis test
2019-06-08 16:46:25 +04:30
Hamed Masafi
357634edb6
create custom object in query
2019-06-08 13:10:00 +04:30
Hamed Masafi
5f60b325aa
support PostGis types with equal operator [skip ci]
2019-06-08 13:01:23 +04:30
Hamed Masafi
d2822e3ef3
polish alpha [skip ci]
2019-06-07 12:49:20 +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
070254bd02
continue
2019-06-06 15:32:02 +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
d8b99d04bf
working on pgsql
2019-06-03 19:52:21 +04:30
Hamed Masafi
0f86f0a5e7
fix:ConditionalPhrase operators
2019-04-11 13:28:38 +04:30
Hamed Masafi
94753fbb2f
bool {,de}serialization
2019-04-09 11:55:19 +04:30
Hamed Masafi
2c7ee423de
remove some comments
2019-03-10 19:04:16 +03:30
Hamed Masafi
37a2e8f5fc
added toModel(QSqlQueryModel*) to Nut::Query [skip ci]
2019-03-09 18:59:24 +03: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
f555515e5e
TableSetBase release Table when going to delete [skip ci]
2019-03-07 19:45:58 +03:30
Hamed Masafi
ac2fa1a4ae
fix: crash when table destroyed and new query going to execute [skip ci]
2019-03-07 19:05:57 +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
ebb8913747
generator fix [skip ci]
2019-03-02 19:49:12 +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
7564017a98
created dynamic creation pro file [skip ci]
2019-02-28 13:08:28 +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
fb7b914c73
restore AbstractFieldPhrase::operator !
2019-02-26 23:45:46 +03:30
Hamed Masafi
6489d7bad4
another test for travis
2019-02-26 23:38:31 +03:30
Hamed.Masafi
d5487966dc
include lib in tests [skip ci]
2019-02-26 19:37:14 +03:30
Hamed.Masafi
9c182ea7f2
fix datephrase file path in pro file
2019-02-26 18:34:13 +03:30
Hamed Masafi
2a60f0c00e
wip:msvc phrase cast fix
2019-02-26 18:23:57 +03:30
Hamed Masafi
0857a7b165
wip
2019-02-26 16:51:16 +03:30
Hamed Masafi
9782d1ff7e
remove qml from test units
2019-02-26 15:38:38 +03:30
Hamed Masafi
08777d4f00
wip: specilization datetime field phrase [skip ci]
2019-02-26 13:26:23 +03:30
Hamed Masafi
02d5486939
date parts sql [skip ci]
2019-02-26 13:19:50 +03:30
Hamed Masafi
058c34d023
seprate file for phrases [skip ci]
2019-02-26 13:17:08 +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
a0550b4e65
wip: upgrades test
2019-02-14 17:55:53 +03:30
Hamed Masafi
ee82e97777
mysql passed datatypes test
2019-02-13 18:23:42 +03:30
Hamed Masafi
49f006e2d5
psql passes datatypes test
2019-02-12 18:53:46 +03:30
Hamed Masafi
b3e23864ce
postgres data types [skip ci]
2019-02-12 18:03:16 +03:30
Hamed Masafi
1bce39539f
generators data types
2019-02-11 11:30:00 +03:30
Hamed Masafi
177fb6808c
wip: postgres data types [skil ci]
2019-02-10 20:03:14 +03:30
Hamed Masafi
f18f4481c2
a few clazy-ing (cont) [skip ci]
2019-02-10 17:44:25 +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