Etienne Trimaille
8f33d5ee70
Upgrade DBManager and Grass plugins to Python 3.X
2023-04-26 08:24:00 +10:00
Harrissou Sant-anna
d6b5b070d8
Remove unicode string notifier from python files
2022-12-11 08:58:21 +01:00
Andrea Giudiceandrea
57f589dd36
[dbmanager] Fix deprecation warning
...
Replace deprecated QgsCodeEditor setMarginVisible() with setLineNumbersVisible() for SQL dialog windows
2021-03-29 08:18:39 +10:00
Evan Derickson
d79100a204
List comprehension formatting
2021-01-24 16:34:35 -08:00
Evan Derickson
fe184e8e71
Formatting list comprehension
2021-01-24 16:34:03 -08:00
Evan Derickson
63e77371f6
List comprehensions to generators
2021-01-24 16:26:53 -08:00
Evan Derickson
8cd0f92139
Undo removal of else
2021-01-24 16:09:53 -08:00
Evan Derickson
4e41ee6db2
More list comprehensions, str.join()
2021-01-23 20:06:27 -08:00
Evan Derickson
4b50c1a7a7
For loops to list comprehension
2021-01-23 16:06:29 -08:00
Matthias Kuhn
2a30091f2c
Remove unused import
2020-11-25 20:44:16 +01:00
Matthias Kuhn
2b6eb652a4
Use Scintilla for word wrap
2020-11-25 20:42:30 +01:00
Matthias Kuhn
0a0d27c980
[db manager] Show error messages directly in place
...
The old behavior was to open up a new modal dialog. Each time way to small to read anything
2020-11-10 23:02:37 +01:00
Juergen E. Fischer
a15fff158a
Translation string fix
2020-09-22 09:12:15 +02:00
Alessandro Pasotti
6d866e3341
Address PR comments
2020-09-21 14:02:24 +02:00
Alessandro Pasotti
2dfc072fe7
Spellchecker, how picky you are
2020-09-19 11:30:55 +02:00
Alessandro Pasotti
d54c3101ae
Add feedback to executeSql
...
Fixes #38092 by adding an optional QgsFeedback argument to
the executeSql method and by implementing the PQCancel
method in the PG provider internals.
While the cancellation works well for all supported provider while
fetching results in the loop, the cancellation of a running query is now
implemented for the postgres provider connection only because the GPKG
and GDAL both rely on GDALDatasetExecuteSQL which cannot be interrupted.
This PR also introduce a few optimizations in the PG DB-Manager
code that should probably fix also other "slowness" issues that
were reported after 3.x during PG query execution.
A small UX change in th SQL dialog makes it evident to the user that
a cancellation request has been sent to the backend: the button text
is changed to "Cancellation requested, please wait..." so that for
provider connections that are not able to interrupt the running query
and must wait for the fetching loop to exit from the exeuteSql call
the user knows that something is happening and that a cancellation
request has been successfully sent.
2020-09-19 11:15:41 +02:00
Matthias Kuhn
9729a43df7
Merge pull request #36828 from m-kuhn/followup_36823
...
Address review comment from #36823
2020-05-30 11:25:20 +02:00
Matthias Kuhn
ffc5033976
Merge pull request #36827 from m-kuhn/win_newlines
...
Fix windows newlines replacement in db manager query layer
2020-05-30 11:24:40 +02:00
Matthias Kuhn
b1307d241c
Address review comment from #36823
2020-05-29 16:29:46 +02:00
Matthias Kuhn
d8fa7e2df4
Fix windows newlines replacement in db manager query layer
...
Fixes #36825
2020-05-29 15:50:09 +02:00
Alessandro Pasotti
dc2ff12c2b
DB Manager: remove semicolon from SQL window queries
...
Partial fix for #36205
2020-05-29 12:38:45 +02:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Alexander Bruy
bba874cd42
prompt before closing SQL editor tabs with unsaved changes ( fix #14636 )
2020-05-06 12:49:18 +03:00
Matthias Kuhn
574e0ebaa1
[db_manager] Allow opening .sql files
...
and not only .SQL files
also allow any file extension
Fix #33173
2019-12-02 01:43:28 +10:00
Stephen Knox
a39a413b92
Fixing db_manager so that it can run sql with inline comments
...
Fixes #29089
2019-09-06 10:26:34 +10:00
lbartoletti
81c4b81b3b
[bugfix] Fix the whole text instead of the selected part in db_manager save SQL file. fixes #30616
2019-07-22 18:41:01 +10:00
Nyall Dawson
ef8d893393
More QgsMapLayer python fixes
2019-03-27 09:11:15 +10:00
Nyall Dawson
ac651ee0d9
Followup 8d51a693, fix broken plugins
2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1
missing changes of QgsMapLayer::Type => QgsMapLayerType
2019-03-26 14:09:19 -05:00
Alessandro Pasotti
74aa8ca16e
Fix db manager sql query
...
Fixes #21353
2019-02-23 11:10:50 +01:00
Etienne Trimaille
f37d48f69b
keep comments when save as preset or file, remove lines starting by "--" in DBManager
2019-02-18 22:04:34 -04:00
Etienne Trimaille
427cb0b27a
fix some HIG and add missing translations in dbmanager
2019-02-05 10:48:47 +11:00
Etienne Trimaille
ac9c6f1e18
some minor code cleanup in dbmanager
2019-02-05 10:48:47 +11:00
Alessandro Pasotti
3618d63ca6
Show an error message when a query yields an invalid layer
...
... instead of failing silently
2018-12-14 15:09:46 +01:00
Alessandro Pasotti
b5181f2c50
sqlite accept aliased queries from db manager
...
Fixes #20674 - DB Manager - load sql query as layer with geom column
Well, not sure it really fixes that particular issue because it
is not really well described, but for sure this fixes the general
case of "SELECT * FROM my_table AS my_alias"
2018-12-08 11:15:49 +01:00
Blottiere Paul
4e209724cf
Merge pull request #8260 from lbartoletti/dbmanager_add_save_sql_file
...
[FEATURE][needs-docs]Add buttons to load and save an external SQL file
2018-11-19 04:49:59 +00:00
lbartoletti
03d53fb871
missing translations; add extension at save
2018-11-13 09:22:33 +01:00
lbartoletti
ebdc932ec2
add LastDir for SQL File
2018-11-13 08:20:20 +01:00
lbartoletti
5eecbf2d4c
Add translation ; add button 'load file'
2018-11-12 17:48:14 +01:00
Nyall Dawson
dc72f06e53
Bump minimum Qt version to 5.9
2018-11-06 08:45:37 +10:00
Nyall Dawson
f3e9aaf79a
Fix some inefficient python dictionary iteration
2018-10-31 08:42:51 +10:00
lbartoletti
74f7cb5414
Add a button to save the query as an external sql file
2018-10-22 12:26:14 +02:00
Alessandro Pasotti
a74b6262df
[dbmanager] Fix stored queries retrieve
...
Fixes #19802 - DB Manager saved SQL statements are saved empty
2018-09-18 18:22:58 +02:00
Nyall Dawson
9d8202b66a
[dbmanager] Fix exception on older Qt builds
...
Fixes #19309
2018-06-30 18:35:38 +10:00
Salvatore Larosa
84d86935e4
set limit to 20 to store database query in the history
2018-04-05 22:53:04 +02:00
Salvatore Larosa
1242402a56
[FEATURE][needs-docs] DB Manager: adds SQL query history
2018-04-04 23:30:48 +02:00
Blottiere Paul
fea66f9913
Update ui and add shortcut to cancel pending query
2018-03-02 09:43:26 +00:00
Blottiere Paul
957e92c847
Add async model for virtual layers
2018-03-02 09:43:26 +00:00
Blottiere Paul
bf7df6d2e3
Add a cancel button for Postgis and Spatialite
2018-03-02 09:43:26 +00:00
Matthias Kuhn
8473df562f
More endless hourglass protection
2017-07-30 22:18:25 +02:00