eelke
397138eef1
Explain works with parameters to now.
...
Also de deduplicated the callback lambda in the normal query execution.
2017-12-12 20:15:07 +01:00
eelke
e9d72d391d
PgAttribute loading + ColummnTableModel
...
Required enchancement to PgContainer to make multifield key work.
2017-12-12 20:13:53 +01:00
eelke
f9caadb59e
For testing purposes a new table tab is created when a querytab is created.
2017-12-10 14:20:45 +01:00
eelke
6466062cc8
pg_classes can be loaded now, used in TablesTableModel for overview of tables in database.
2017-12-10 10:35:46 +01:00
eelke
43e6042794
First version of table overview tab, only design no implementation yet
2017-12-10 08:17:07 +01:00
eelke
cd4e99cd11
Deduplication of loading logic for catalog data.
2017-12-09 21:46:19 +01:00
eelke
ea035f58c8
Bunch of raw pointers replaced with smart pointers of references.
2017-12-09 20:21:22 +01:00
eelke
5a199c9138
QueryResultModel relies on BaseTableModel for most formatting now.
2017-12-09 19:47:33 +01:00
eelke
dec52a3829
Unit tests for ParamList to json.
2017-12-09 19:39:37 +01:00
eelke
e9f5fff6d3
Moved files to core.lib for unit testing
2017-12-09 16:43:28 +01:00
eelke
466920bf4e
Routines for converting the Param data to json.
2017-12-09 16:41:19 +01:00
eelke
0cbd0d16a1
Seperated the Param data from the model.
...
This makes saving and loading the parameter data easier to do without cluttering up the model class.
2017-12-09 15:46:33 +01:00
eelke
3bf1ef4fe0
Moved QueryParamListController to its own translation unit.
2017-12-09 14:16:47 +01:00
eelke
3a13b7ffb4
Messy commit. Testing suff and some improvements to how data is shown.
2017-12-09 10:45:13 +01:00
eelke
bebb3391c3
Builds on windows again
2017-11-26 13:07:21 +01:00
Eelke Klein
33cf39b799
Mogelijkheid om query to kopieren als raw c++ string.
2017-10-05 16:02:06 +02:00
Eelke Klein
a9534d543e
First step at defining interface for long running background tasks.
2017-10-05 16:00:16 +02:00
Eelke Klein
ee353d7da8
First attempt at configuration for code generation.
2017-10-05 15:59:33 +02:00
Eelke Klein
976623ca9b
Merge branch 'port-to-linux'
2017-09-10 10:15:14 +02:00
Eelke Klein
45515f936b
First step at detecting dollar quoted strings. Dollar quotes
...
are now recognized by the lexical analyzer.
Plan is to let the parser decide how to handle the content.
2017-09-10 10:13:58 +02:00
Eelke Klein
56bd304756
Improved error reporting.
2017-09-10 10:11:58 +02:00
Eelke Klein
b372fb6c6b
Setting -Wall on compilers that support it.
2017-09-10 10:10:42 +02:00
Eelke Klein
fd41613b5c
Expected copycon didn't compile, added unit tests for copycon.
2017-09-10 10:09:28 +02:00
Eelke Klein
b9bc00a389
Using a global variable to register meta types instead of the main() function.
...
Prevents needing to have extra includes in the main.
2017-09-03 14:37:12 +02:00
Eelke Klein
fe0681f19c
Ignore kdevelop4 IDE files.
2017-09-03 10:18:55 +02:00
Eelke Klein
acd6c14566
Remove kdev4 files
2017-09-03 10:17:03 +02:00
Eelke Klein
3befef2464
ASyncDBConnection uses Qt signals now for reporting state changes and notices
2017-09-03 10:06:32 +02:00
Eelke Klein
90d0a14b63
Fixed crash from trying to close a socket that isn't open in the first place.
2017-09-02 11:55:47 +02:00
Eelke Klein
aa50d3097e
Fixed some cases where nullptr were not correctly handled.
2017-09-01 21:07:37 +02:00
Eelke Klein
e66326472e
Removed invalid default value for the type.
...
Caused a compiler error on FreeBSD. Either because of different Qt verion (5.7) or because of clang
not sure which but that default was a nonsense left over of an older implementation anyway.
2017-09-01 10:22:13 +02:00
Eelke Klein
8dc8c3a86d
Added missing dependency on boost to core so it can find the boost headers.
2017-09-01 10:21:29 +02:00
Eelke Klein
067fd7d7a2
Find botan also looks in /usr/local now. Works for manual build under FreeBSD 11
2017-09-01 09:50:08 +02:00
Eelke Klein
fbead4d782
fix
2017-09-01 09:33:46 +02:00
Eelke Klein
f6728e6191
test -> test
2017-08-27 17:39:35 +02:00
Eelke Klein
6d8342b3f3
move tests to core as it contains tests on core
2017-08-27 17:38:52 +02:00
Eelke Klein
f32b7370dc
Switched to CMakeLists.txt per directory but most detecting is still done in
...
global one. Includes and libraries are properly propagated using
PUBLIC/INTERFACE so we do not have to repeat dependencies.
2017-08-27 13:25:16 +02:00
Eelke Klein
7c4e8e95e8
Restructured locations of source.
2017-08-27 07:36:42 +02:00
Eelke Klein
78a4c6d730
Remove use of ASSERT_THAT
2017-08-26 19:07:01 +02:00
Eelke Klein
4c658d7811
Added the test to CMakeLists.txt, all tests OK.
2017-08-26 15:53:15 +02:00
Eelke Klein
cb0ef0b130
Removed obsolete SqlHighlighter the newer SqlSyntaxHighlighter is much better and faster.
...
Also removed the never completed sqlparser.
2017-08-26 14:58:01 +02:00
Eelke Klein
f7cf93bb9a
Moved lowlevel postgresql wrappers to seperate folder and static lib.
2017-08-26 14:50:36 +02:00
Eelke Klein
869d867191
Removed duplicates with old name adjusted includes to match new header name.
2017-08-26 11:48:47 +02:00
Eelke Klein
243f1c0a42
Renamed PgsqlDatabaseCatalogue to PgDatabaseCatalogue so name is consistend
...
with other related classes.
2017-08-26 11:44:40 +02:00
Eelke Klein
52442a145d
Cleanup, removed commented out code, removed two units specific to windows which were not needed anymore
...
because we are using boost::asio now.
2017-08-25 08:45:54 +02:00
Eelke Klein
03f1c55f0b
Added the kdeveloper files
2017-08-25 08:38:07 +02:00
Eelke Klein
16676aa910
Cancel functionality works again.
...
Also async operations are now cancelled when the dbconnection is closed and if needed also a cancel is
send before closing the connection.
2017-08-25 08:37:18 +02:00
Eelke Klein
f11f9545ac
ASyncDBConnection is now based of boost::asio instead of using it's own thread.
...
connection: tested OK
querying: tested OK
notices: should be working
cancel: todo
2017-08-24 21:12:32 +02:00
Eelke Klein
4beea05ba6
Adding in boost::asio support
...
main starts a thread that keep a global io_service object
running and makes sure it is stopped when everything else is
stopped.
2017-08-24 19:45:00 +02:00
Eelke Klein
a6755c20f2
Splitter between sql and parameters.
2017-08-24 19:43:17 +02:00
Eelke Klein
4167c483f5
Most seems to work. Multi threading is not optimal
...
however some points use a timeout with select or wait_for
to poll a condition at the same time.
2017-08-23 17:41:10 +02:00