fabianfiorotto / quick-query Goto Github PK
View Code? Open in Web Editor NEWDo queries against your local databases
License: MIT License
Do queries against your local databases
License: MIT License
It could be nice if we can directly apply the changes we made through a button and by copying the SQL with "Copy changes' SQL" and a new tab that we have to run.
We would reduce the number of steps (3 or 4) with a simple button for it.
DBMS I'm using: ((MySQL))
OS I'm using: ((10.12.3))
Atom version: ((1.13.1))
Hello @fabianfiorotto, thank you for putting all that work in this nice package!
Previously, due to some request you were able to integrate that cool feature.
#29
However, there are still some things not really clear for me. (Sorry in advance for that long illustration):
Example:
Having two schemas A and B
Schema A has tables C and D with C.ID, C.Age and D.ID, D.gender
Schema B has tables F and G with F.ID, F.income and G.ID, G.attitude
I would expect the following (at least by using some popular clients):
SELECT
*
FROM A.D d -- After putting A. alphabetical listing of C and D appears initially.
INNER JOIN B.F f ON f.ID = d.ID -- After putting B. alphabetical listing of F and G appears initially.
-- After putting f. alphabetical listing of ID and Income appears initially and so on.
Working with the current state of autocompletion:
SELECT
*
FROM A.D d --After putting A. no listing appears so one has to know all tables ex ante
INNER JOIN B.F f ON f.ID = d.ID --After putting B. no listing appears. After typing, tables from A are suggested somehow..
It would be so cool if quick- query could integrate the upper behavior.
Thank you
Eugene
Hi!
Is there an example about how to get quick query working with a homestead box database?
Thanks!
SHOW DATABASES
USE test
(or other database)Atom Version: 0.201.0
System: Unknown Windows Version
Thrown From: quick-query package, v0.2.0
Uncaught ReferenceError: editor is not defined
At C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Parser.js:82
ReferenceError: editor is not defined
at C:\Users\Per\.atom\packages\quick-query\lib\quick-query.coffee:120:27
at Query._callback (C:\Users\Per\.atom\packages\quick-query\lib\quick-query-mysql-connection.coffee:90:7)
at Query.Sequence.end (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\sequences\Sequence.js:96:24)
at Query._handleFinalResultPacket (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\sequences\Query.js:144:8)
at Query.OkPacket (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\sequences\Query.js:78:10)
at Protocol._parsePacket (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Protocol.js:271:23)
at Parser.write (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Parser.js:77:12)
at Protocol.write (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket.<anonymous> (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\Connection.js:92:28)
at emitOne (events.js:77:13)
at Socket.emit (events.js:166:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:109:10)
at TCP.onread (net.js:517:20)
-4:14.1.0 timecop:view (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-3:54.8.0 symbols-view:toggle-file-symbols (ul.list-inline.tab-bar.inset-panel)
-3:48.6.0 symbols-view:toggle-project-symbols (ul.list-inline.tab-bar.inset-panel)
-3:45.2.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-3:45.2.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-2:49.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-1:49.6.0 quick-query:new-editor (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
-1:43.1.0 quick-query:toggle-browser (atom-text-editor.editor.is-focused)
-1:40.7.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
-1:17.5.0 quick-query:run (atom-text-editor.editor.is-focused)
-1:11.4.0 core:select-all (atom-text-editor.editor.is-focused)
-1:06.7.0 quick-query:run (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
],
"disabledPackages": [
"tab-switcher"
]
}
}
# User
keyboard-localization, v1.4.0
localization, v1.16.1
quick-query, v0.2.0
# Dev
No dev packages
DBMS I'm using: ((MySQL))
OS I'm using: ((10.12 Sierra))
Atom version: ((1.12.6))
Hello, I like your package very much. So thanks for providing it.
Is there a way to include the support for autocompletion?
Hi! Thanks for maintaining the quick-query package!
In Atom v1.12, we are going to upgrade CoffeeScript to the latest version. This upgrade entails one potentially breaking change to the language:
Changed strategy for the generation of internal compiler variable names. Note that this means that @example function parameters are no longer available as naked example variables within the function body.
We think your package may be affected by this upgrade, in the following places:
fields
variable hereThese findings are based on linting packages with coffeescope
. We could be wrong about some of them. When we release v1.12 beta, please test your package against it to make sure that it works. Let me know if you have any further questions; I will be happy to help!
Thanks for creating this package: it is exactly what I was looking for. I was using DBeaver before finding your package and one feature I miss is the ability to filter tables in the browser. I have upwards of 100+ tables, but I only need to see a handful of them.
Ideally, I would be able to do the following:
Maybe a lot to ask for, but I would also be happy with just basic filtering. Thanks again.
First off, I have to say this is a great package so thanks for your work on it already.
My feature request is when creating a new connection can you add an optional field for database. This can be used running a query if one isn't specified in the SQL.
Hello
Currently the browser is already resizable, it would add to convenience if its width is somehow remembered between sessions. (This also happens for the tree view side bar.)
Thanks in advance
DBMS I'm using: PostgreSql
Is it possible that the Database Browser can show the information_schema schema in the database list ?
I think i would be usefull for PostgreSql and for MySql (I don't really know if other Dbms are following the ANSI, as of this list https://en.wikipedia.org/wiki/Information_schema#Implementation).
When I have the connection window open and I have a long list of tables there is no scrollbar and I can't scroll using the scroll wheel or arrow keys so I can't reach a bunch of my tables.
Tried disabling all other packages didn't help.
I'm on elementary OS 0.3.2 freya using atom 1.6.0.
Would you please add option to the connect popup to force SSL ?
Steps to reproduce:
Some better handling of the error is recommended.
Atom Version: 0.201.0
System: Windows 7 Professional
Thrown From: quick-query package, v0.2.0
Uncaught Error: Connection lost: The server closed the connection.
At events.js:141
Error: Connection lost: The server closed the connection.
at Protocol.end (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Protocol.js:103:13)
at Socket.<anonymous> (C:\Users\Per\.atom\packages\quick-query\node_modules\mysql\lib\Connection.js:98:28)
at emitNone (events.js:72:20)
at Socket.emit (events.js:163:7)
at _stream_readable.js:891:16
at process._tickCallback (node.js:357:13)
2x -6:43.9.0 core:move-down (atom-pane.pane.active)
2x -6:43.1.0 core:move-left (atom-pane.pane.active)
-5:59.8.0 quick-query:run (atom-text-editor.editor.is-focused)
-5:51.7.0 pane:show-next-item (ul.list-inline.tab-bar.inset-panel)
-5:49.9.0 pane:show-previous-item (ul.list-inline.tab-bar.inset-panel)
2x -5:49.3.0 pane:show-next-item (atom-text-editor.editor.is-focused)
2x -5:47.8.0 pane:show-previous-item (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
2x -5:46.5.0 pane:show-next-item (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
-5:43.3.0 pane:show-previous-item (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
-3:21 pane:show-next-item (ul.list-inline.tab-bar.inset-panel)
-3:07.9.0 core:close (ul.list-inline.tab-bar.inset-panel)
-3:06.6.0 pane:show-next-item (atom-text-editor.editor.is-focused)
-2:36.2.0 core:close (div.settings-view.pane-item)
-1:54.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-1:37.6.0 editor:select-to-first-character-of-line (atom-text-editor.editor.mini.is-focused)
-1:37.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
],
"disabledPackages": [
"composer"
]
},
"quick-query": {
"resultsInTab": true
}
}
# User
autocomplete-php, v0.3.6
minimap, v4.9.0
quick-query, v0.2.0
# Dev
No dev packages
I'm on version 0.7.1 using a postgres connection and the get changes SQL button doesn't work anymore, it doesn't generate the query in the textarea above
[Enter steps to reproduce below:]
Atom Version: 1.12.9
Electron Version: 1.3.13
System: Mac OS X 10.12.1
Thrown From: quick-query package, v0.9.0
Uncaught TypeError: Cannot read property 'saveCSV' of undefined
At /Users/marcelobarbosa/.atom/packages/quick-query/lib/quick-query.coffee:131
TypeError: Cannot read property 'saveCSV' of undefined
at space-pen-div.atom.commands.add.quick-query:save-csv (/Users/marcelobarbosa/.atom/packages/quick-query/lib/quick-query.coffee:131:52)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1142:28)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:332:25)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
-3:10.4.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
-3:07.5.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
-3:07.5.0 core:cancel (atom-text-editor.editor.is-focused)
-3:00.3.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
3x -2:34.9.0 core:paste (atom-text-editor#quick-query-host.editor.mini.is-focused)
-2:02.5.0 core:cancel (div.package-detail.panels-item)
-2:01.2.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
3x -1:39.4.0 quick-query:run (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
-1:05.5.0 quick-query:new-editor (atom-text-editor.editor.is-focused)
-1:04.2.0 core:close (atom-text-editor.editor.is-focused)
-1:01.8.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
-0:39.4.0 core:delete (div.header.list-item.qq-connection-item)
-0:29.9.0 quick-query:set-default (div.header.list-item.qq-database-item)
-0:28 quick-query:run (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
-0:23.1.0 settings-view:open (button#quick-query-run.btn.icon.icon-playback-play)
-0:00.1.0 quick-query:save-csv (td.selected)
{
"core": {
"disabledPackages": [
"grunt-runner",
"run-command2",
"linter"
],
"telemetryConsent": "limited"
},
"quick-query": {}
}
# User
chrome-dark-syntax, v0.5.0 (inactive)
compare-files, v0.8.0 (active)
data-atom, v0.24.0 (active)
dracula-theme, v1.2.8 (inactive)
file-icons, v2.0.7 (active)
imdone-atom, v2.1.2 (active)
language-blade, v0.26.2 (active)
language-prolog, v0.10.0 (active)
linter, v1.11.18 (inactive)
linter-prolog, v0.1.3 (active)
quick-query, v0.9.0 (active)
remote-sync, v4.1.5 (active)
terminal-plus, v0.14.5 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.45.0 (inactive)
base16-tomorrow-dark-theme, v1.3.0 (inactive)
base16-tomorrow-light-theme, v1.3.0 (inactive)
one-dark-ui, v1.6.2 (active)
one-light-ui, v1.6.2 (inactive)
one-dark-syntax, v1.5.0 (active)
one-light-syntax, v1.5.0 (inactive)
solarized-dark-syntax, v1.0.5 (inactive)
solarized-light-syntax, v1.0.5 (inactive)
about, v1.7.0 (active)
archive-view, v0.62.0 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.13.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.4 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.2 (active)
command-palette, v0.39.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.202.2 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.60.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.2 (inactive)
markdown-preview, v0.158.8 (active)
metrics, v1.1.2 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.1 (inactive)
package-generator, v1.0.1 (inactive)
settings-view, v0.243.1 (active)
snippets, v1.0.4 (active)
spell-check, v0.68.4 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.2 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.103.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.210.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.35.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.54.0 (active)
language-clojure, v0.22.1 (active)
language-coffee-script, v0.48.0 (active)
language-csharp, v0.13.0 (active)
language-css, v0.40.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.43.0 (active)
language-html, v0.47.1 (active)
language-hyperlink, v0.16.1 (active)
language-java, v0.24.0 (active)
language-javascript, v0.122.0 (active)
language-json, v0.18.3 (active)
language-less, v0.29.6 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.37.0 (active)
language-php, v0.37.3 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.1 (active)
language-ruby, v0.70.2 (active)
language-ruby-on-rails, v0.25.1 (active)
language-sass, v0.57.0 (active)
language-shellscript, v0.23.0 (active)
language-source, v0.9.0 (active)
language-sql, v0.25.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.29.1 (active)
language-toml, v0.18.1 (active)
language-xml, v0.34.12 (active)
language-yaml, v0.27.1 (active)
# Dev
No dev packages
DBMS I'm using: ((MySQL))
OS I'm using: ((Ubuntu 17.04))
Theme I'm using: ((one-dark-ui, atom-dark))
Atom version: ((1.22.1 x64))
Hi, do you have any plan to add support to MongoDB?
DBMS I'm using: MYSQL
OS I'm using: Mac OS
Theme I'm using: dark
Atom version: 1.33
it would be nice if f5 would execute the query under the cursor.
Actually behaviour is that the first or the selected query gets executed.
[Enter steps to reproduce:]
Escape
- you see this errorAtom: 1.20.1 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: quick-query package 0.12.1
Uncaught TypeError: resultView.stopLoop is not a function
At /Users/deem0n/.atom/packages/quick-query/lib/quick-query.coffee:408
TypeError: resultView.stopLoop is not a function
at Object.cancel (/packages/quick-query/lib/quick-query.coffee:408:20)
at /packages/quick-query/lib/quick-query.coffee:121:26)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)
-1:42.1.0 editor:indent (input.hidden-input)
-1:40.5.0 core:backspace (input.hidden-input)
-1:37 core:copy (input.hidden-input)
-1:35.9.0 core:paste (input.hidden-input)
4x -1:34.5.0 core:backspace (input.hidden-input)
-1:12.9.0 core:copy (input.hidden-input)
-1:10.3.0 core:paste (input.hidden-input)
4x -1:06.8.0 core:backspace (input.hidden-input)
-1:02.9.0 core:move-right (input.hidden-input)
-1:00.4.0 inline:clear-current (input.hidden-input)
-1:00.4.0 autocomplete-plus:cancel (input.hidden-input)
-0:55 core:save (input.hidden-input)
-0:47.8.0 quick-query:run (input.hidden-input)
-0:41 quick-query:set-default (div.header.list-item.qq-database-item)
-0:39 quick-query:run (ol#quick-query-connections.list-tree.has-collapsable-children.focusable-panel)
2x -0:15 core:cancel (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)
api-workbench 0.8.47
atom-beautify 0.30.5
atom-commander 0.10.2
busy-signal 1.4.3
dash 1.7.1
elm-format 3.0.0
elmjutsu 6.0.0
git-plus 7.9.3
ink 0.7.6
intentions 1.1.5
julia-client 0.6.3
language-elm 1.5.0
language-elmx 2.1.1
language-haskell 1.14.1
language-julia 0.12.0
language-lua 0.9.11
language-pgsql 0.2.3
language-scheme 1.4.0
latex-completions 0.3.3
linter 2.2.0
linter-ui-default 1.6.10
proto-repl 1.4.21
proto-repl-charts 0.4.1
quantum-shell 0.7.1
quick-query 0.12.1
regex-railroad-diagram 0.19.4
Sublime-Style-Column-Selection 1.7.4
tool-bar 1.1.0
uber-juno 0.1.2
The items in the browser (connections, tables, columns...) are not sorted alphabetically.
It would be very useful if they were sorted or there would be an entry in the context menu for sorting them.
I have a lot of connections on localhost just hitting different ports and the UI is very hard to tell which is which because they all have the name:
mysql://[email protected]
It would be a great help if you could name each connection so then I can have something like prod and test, etc.
[Enter steps to reproduce:]
Atom: 1.18.0 x64
Electron: 1.3.15
OS: Ubuntu 16.04.2
Thrown From: quick-query package 0.10.1
Uncaught TypeError: Cannot read property 'showOpenDialog' of undefined
At /home/ubuntu/.atom/packages/quick-query/lib/quick-query-connect-view.coffee:57
TypeError: Cannot read property 'showOpenDialog' of undefined
at /packages/quick-query/lib/quick-query-connect-view.coffee:57:22)
at HTMLButtonElement.dispatch (/packages/quick-query/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLButtonElement.elemData.handle (/packages/quick-query/node_modules/jquery/dist/jquery.js:4121:28)
-0:32.5.0 quick-query:toggle-browser (input.hidden-input)
-0:30.9.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:21 core:cancel (button#quick-query-browse-file.btn.btn-default.icon.icon-file-directory)
-0:15.4.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:07.4.0 core:cancel (atom-pane.pane)
-0:05.5.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-0:00.2.0 core:cancel (button#quick-query-browse-file.btn.btn-default.icon.icon-file-directory)
atom-autocomplete-php undefined
atom-ctags 5.1.0
autocomplete-php 0.3.7
busy-signal 1.4.3
ex-mode 0.15.0
hyperclick 0.1.1
improved-autocomplete-php 1.1.1
intentions 1.1.2
linter 2.2.0
linter-eslint 8.2.1
linter-php 1.3.2
linter-phpcs 1.6.7
linter-ui-default 1.6.2
php-integrator-autocomplete-plus 1.5.0
php-integrator-call-tips 1.2.1
php-integrator-navigation 1.1.2
php-integrator-tooltips 1.1.5
quick-query 0.10.1
quick-query-sqlite 0.3.1
vim-mode-plus 0.93.0
DBMS I'm using: Postgres
OS I'm using: OS X 10.11.6
Theme I'm using: Seti UI
Atom version: 1.10.2
styles/quick-query.less
tries to import git.less
, which doesn't exist in all UI themes. Currently this stops the LESS from compiling when using those themes, which breaks some of the layout rendering.
Would be great to include a fallback where git.less
can't be found, though it's obviously not a huge priority as it's simple enough to just use a theme that has the file as a workaround.
Will try and create a PR myself if I get a chance - have only just started using quick-query but I can tell it's going to be a lifesaver!
MS SQL Server
Windows 10
One Dark / Atom Dark
1.19.7
Logging in to MS SQL Server does not work when using "domain" authentication.
[Enter steps to reproduce:]
Atom: 1.24.0 ia32
Electron: 1.6.16
OS: Unknown Windows version
Thrown From: quick-query package 0.12.3
Failed to load the quick-query package
At 'ui-mixins.less' wasn't found. Tried - C:\Users\Domingo Fraga Hdz\.atom\packages\quick-query\styles\ui-mixins.less,C:\Users\Domingo Fraga Hdz\.atom\packages\city-lights-syntax\styles\ui-mixins.less,C:\Users\Domingo Fraga Hdz\.atom\packages\city-lights-ui\styles\ui-mixins.less,C:\Users\Domingo Fraga Hdz\AppData\Local\atom\app-1.24.0\resources\app.asar\static\variables\ui-mixins.less,C:\Users\Domingo Fraga Hdz\AppData\Local\atom\app-1.24.0\resources\app.asar\static\ui-mixins.less,ui-mixins.less in C:\Users\Domingo Fraga Hdz\.atom\packages\quick-query\styles\results.less:2:0
LessError: 'ui-mixins.less' wasn't found. Tried - C:\Users\Domingo Fraga Hdz\.atom\packages\quick-query\styles\ui-mixins.less,C:\Users\Domingo Fraga Hdz\.atom\packages\city-lights-syntax\styles\ui-mixins.less,C:\Users\Domingo Fraga Hdz\.atom\packages\city-lights-ui\styles\ui-mixins.less,C:\Users\Domingo Fraga Hdz\AppData\Local\atom\app-1.24.0\resources\app.asar\static\variables\ui-mixins.less,C:\Users\Domingo Fraga Hdz\AppData\Local\atom\app-1.24.0\resources\app.asar\static\ui-mixins.less,ui-mixins.less
at C:\Users\Domingo Fraga Hdz\.atom\packages\quick-query\styles\results.less:2:0
-0:18.5.0 core:move-down (div.image-view)
city-lights-syntax 1.1.8
city-lights-ui 1.3.3
docblockr 0.13.7
emmet 2.4.3
file-icons 2.1.17
jquery-snippets 11.0.0
language-vbscript 0.9.0
pigments 0.40.2
quick-query 0.12.3
script 3.17.3
DBMS I'm using: postgresql
OS I'm using: windows 10 (1703)
Theme I'm using: Default
Atom version: 1.18
I'm trying to connect to a database using a user with no access to the "postgres" database.
When I connect I get this error:
error: permission denied for database "postgres"
I cannot find how to select a different database :/
First of all, I just want to say that I like using this package a lot better than pgAdmin.
Is there a way to execute psql queries using the quick-query package?
Thanks.
DBMS I'm using: PostgreSQL
OS I'm using: Linux Ubuntu 16.04
Theme I'm using: One Dark
Atom version: 1.18.0 x64
Plugin version: quick-query 0.11.0
When getting Changes SQL, the id field with uuid pgsql field is not escaped with single quotes.
E.G.
What Change SQL
produce :
UPDATE "myProject"."public"."sylius_payment" SET "state" = 'new' WHERE "id" = 46630845-548d-496b-ac37-abfa85c7c963;
What Change SQL
should produce :
UPDATE "myProject"."public"."sylius_payment" SET "state" = 'new' WHERE "id" = '46630845-548d-496b-ac37-abfa85c7c963';
Here the DQLs for the example table :
CREATE EXTENSION "uuid-ossp";
CREATE TABLE sylius_payment
(
id uuid NOT NULL,
method_id uuid,
order_id uuid NOT NULL,
currency_code character varying(3) NOT NULL,
amount integer NOT NULL,
state character varying(255) NOT NULL,
details json NOT NULL,
created_at timestamp(0) without time zone NOT NULL,
updated_at timestamp(0) without time zone DEFAULT NULL::timestamp without time zone,
CONSTRAINT sylius_payment_pkey PRIMARY KEY (id),
CONSTRAINT fk_d9191bd419883967 FOREIGN KEY (method_id)
REFERENCES sylius_payment_method (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT fk_d9191bd48d9f6d38 FOREIGN KEY (order_id)
REFERENCES myProject_ecommerce_order (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
[Enter steps to reproduce below:]
Atom Version: 1.5.3
System: Microsoft Windows 10 Pro
Thrown From: quick-query package, v0.7.0
Uncaught TypeError: Cannot read property 'constructor' of undefined
At C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Parser.js:77
TypeError: Cannot read property 'constructor' of undefined
at Query._callback (C:/Users/agusdiyansyah/.atom/packages/data-atom/lib/data-managers/mysql-manager.js:48:53)
at Query.Sequence.end (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\sequences\Sequence.js:96:24)
at Query._handleFinalResultPacket (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\sequences\Query.js:144:8)
at Query.EofPacket (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\sequences\Query.js:128:8)
at Protocol._parsePacket (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Protocol.js:280:23)
at Parser.write (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Parser.js:73:12)
at Protocol.write (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\protocol\Protocol.js:39:16)
at Socket.<anonymous> (C:\Users\agusdiyansyah\.atom\packages\quick-query\node_modules\mysql\lib\Connection.js:96:28)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at TCP.onread (net.js:523:20)
-5:12 settings-view:open (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-3:57.7.0 quick-query:new-editor (div.package-detail.panels-item)
-3:49.3.0 quick-query:find-table-to-select (div.package-detail.panels-item)
7x -3:34.7.0 data-atom:execute (atom-text-editor.editor.is-focused)
2x -2:32.3.0 data-atom:toggle-query-source (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-2:28.6.0 data-atom:new-connection (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-2:18 data-atom:toggle-results-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
3x -2:17.1.0 data-atom:execute (atom-text-editor.editor.is-focused)
-1:30.2.0 quick-query:run (atom-text-editor.editor.is-focused)
14x -1:04.9.0 core:undo (atom-text-editor.editor.is-focused)
-0:56.3.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
-0:56.1.0 core:backspace (atom-text-editor.editor.is-focused)
-0:47.8.0 data-atom:execute (atom-text-editor.editor.is-focused)
-0:45.4.0 core:select-all (atom-text-editor.editor.mini.is-focused)
11x -0:43.3.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:30 core:select-all (atom-text-editor.editor.mini.is-focused)
{
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"quick-query"
],
"packagesWithKeymapsDisabled": []
}
}
# User
autocomplete-paths, v1.0.2
bootstrap3-snippets, v0.1.2
color-picker, v2.1.1
data-atom, v0.18.1
emmet, v2.4.1
jQuery, v1.2.1
jquery-snippets, v11.0.0
language-nginx, v0.6.1
terminal-plus, v0.14.5
# Dev
No dev packages
When I'm trying to connect without specifying the host, username and password (which normally lets me log in via the peer authentication), I get the error that I failed the password authentication.
DBMS I'm using: sqlite
OS I'm using: OSX High Sierra 10.13.2
Theme I'm using: Default (One Light)
Atom version: 1.23.1
not sure if im being stupid or something maybe wrong
it just seems to not be refreshing the data in view?
DBMS I'm using: ((MySQL,Postgresql))
OS I'm using: ((10.12.3))
Atom version: ((1.15.0))
Hello @fabianfiorotto , thanks again for your cool package. My colleagues and me are more and more relying on atom in our day to day business. For the database query part we are relying on quick query where we almost hourly query multiple connections (mysql & postgresql)
In that regard, we four experience the same "strange" behaviour. When a query is a bit complex aka multiple joins for instance errors occur:
Error: inactivity timeout
or read ETIMEDOUT
The same queries run without issues with different other clients.
Additionally, after some time we have to reopen a connection or reopen atom in order to query the existing multiple connections.
Feel free to ask if I explained myself inaccurately.
Hello
Whenever you execute an INSERT or UPDATE statement, an overlay will be shown with a message such as "1 row(s) affected". It seems this overlay can only be closed by clicking the (small) banner or pressing the escape key. Would it be possible to allow closing it by clicking the darkened overlay around it as well?
Another interesting possibility would be to show a (persistent or not) atom notification with the result in it, which is less disruptive to the workflow than the entire Atom window being hijacked ;-).
Thanks in advance
Where is the connection configuration file?
Hello
It would be neat if the panel could be restored on start-up if it was visible (or just always visible on start-up, perhaps by toggling a preference).
Thanks in advance
This is a feature request.
It'be nice to be able to select whether to show the database browse in the left pane or the right side.
For the left side, the order should be:
file navigation | db browse | editor
Great package! Thanks for it
Hiyas the most of time Sqlite are the db basic to start the proyects my sugestion is can add sqlite support please :)
DBMS I'm using: MySQL (MariaDB)
OS I'm using: Linux
Theme I'm using: One Dark
Atom version: 1.7.2
Hello
The active/default database feature is very useful as it removes the need to prefix queries with the database name. Would it be possible to remember the default per project/workspace instead of globally? This is most useful if you have several projects with each their own database on a local development machine.
Thanks in advance
DBMS I'm using: Postgres
OS I'm using: Mac
Theme I'm using: N/A
Atom version: 1.19.2
To Reproduce:
create table example (
data jsonb
);
insert into example
values('{"key": "value"}');
select * from example;
Result:
# | data |
---|---|
1 | [object Object] |
Expected:
# | data |
---|---|
1 | {"key": "value"} |
[Enter steps to reproduce below:]
fs = require('fs')
to quick-query-result-view.coffee and it is working for me. If this works for you, I can PR.)Atom Version: 1.3.2
System: Mac OS X 10.10
Thrown From: quick-query package, v0.6.1
Uncaught ReferenceError: fs is not defined
At /Users/briandavidwetzel/.atom/packages/quick-query/lib/quick-query-result-view.coffee:139
ReferenceError: fs is not defined
at /Users/briandavidwetzel/.atom/packages/quick-query/lib/quick-query-result-view.coffee:139:13
at /Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:22:9
at createColumnContent (/Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:132:3)
at /Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:21:7
at createColumnTitles (/Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:96:3)
at /Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:19:5
at checkParams (/Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:75:3)
at module.exports (/Users/briandavidwetzel/.atom/packages/quick-query/node_modules/json2csv/lib/json2csv.js:17:3)
at QuickQueryResultView.module.exports.QuickQueryResultView.saveCSV (/Users/briandavidwetzel/.atom/packages/quick-query/lib/quick-query-result-view.coffee:135:9)
at space-pen-div.QuickQueryResultView.atom.commands.add.quick-query:save-csv (/Users/briandavidwetzel/.atom/packages/quick-query/lib/quick-query-result-view.coffee:14:34)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1016:28)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)
at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:143:29)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/context-menu-manager.js:156:33)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentContextmenu (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:250:47)
at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)
-2:10.5.0 tree-view:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-one-dark-ui)
-2:04.8.0 quick-query:toggle-browser (atom-pane.pane.active)
-2:02.8.0 quick-query:run (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-one-dark-ui)
-1:59.7.0 quick-query:new-connection (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-one-dark-ui)
-1:50.4.0 core:confirm (button#quick-query-connect.btn.btn-default.icon.icon-plug)
-1:33.9.0 quick-query:set-default (div.header.list-item.qq-database-item)
-1:28.9.0 command-palette:toggle (atom-pane.pane.active)
5x -1:26.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-1:23.2.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-1:22.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-1:22.8.0 quick-query:new-editor (atom-pane.pane.active)
-1:19.8.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
2x -1:17.4.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
-1:12.8.0 editor:select-to-first-character-of-line (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
-1:11.1.0 quick-query:run (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-light-syntax.theme-one-dark-ui)
2x -0:50.7.0 quick-query:save-csv (td.selected)
{
"core": {
"projectHome": "/Users/briandavidwetzel/code/",
"themes": [
"one-dark-ui",
"one-light-syntax"
]
}
}
# User
atom-ternjs, v0.10.3
autocomplete-ruby, v0.1.0
floobits, v0.29.3
language-ember-htmlbars, v0.3.0
minimap, v4.16.2
quick-query, v0.6.1
vim-mode, v0.63.0
# Dev
No dev packages
DBMS I'm using: Mysql
OS I'm using: Win 10
Theme I'm using: One Dark
Atom version: 1.12.7
DBMS I'm using: MySQL
OS I'm using: Ubuntu 16.10
Theme I'm using: default
Atom version: Atom : 1.13.1
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
After doing a database drop, the browser should refresh to make it disappear from it. Instead right now we just get the error message "Quit inactivity timeout " (even if the drop was successful).
[Enter steps to reproduce below:]
Atom Version: 1.0.0
System: Mac OS X 10.10.4
Thrown From: quick-query package, v0.4.1
Failed to load the quick-query package
At variable @text-color-added is undefined in /Users/Trent/.atom/packages/quick-query/styles/quick-query.less:139:13
LessError: variable @text-color-added is undefined
at /Users/Trent/.atom/packages/quick-query/styles/quick-query.less:139:13
{
"core": {
"themes": [
"isotope-ui",
"behave-theme"
],
"disabledPackages": [
"markdown-preview"
]
},
"quick-query": {}
}
# User
atom-spotify2, v2.1.2
behave-theme, v1.5.0
emmet, v2.3.12
file-icons, v1.5.8
go-to-view, v0.3.0
html2haml, v0.10.0
isotope-ui, v2.5.0
language-haml, v0.21.0
linter, v1.1.0
linter-coffeelint, v1.0.0
linter-haml, v0.4.0
linter-rubocop, v0.2.7
markdown-preview-plus, v1.5.0
minimap, v4.10.2
pigments, v0.8.2
project-manager, v1.15.10
# Dev
No dev packages
Use remote.Dialog
instead of remote.require("dialog")
Object.require (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:57:12)
HTMLButtonElement.<anonymous> (/Users/dcaruelle/.atom/packages/quick-query/lib/quick-query-connect-view.coffee:88:27)
HTMLButtonElement.dispatch (/Users/dcaruelle/.atom/packages/quick-query/node_modules/jquery/dist/jquery.js:4435:9)
HTMLButtonElement.elemData.handle (/Users/dcaruelle/.atom/packages/quick-query/node_modules/jquery/dist/jquery.js:4121:28)
DBMS I'm using: Mysql
OS I'm using: MAC
Theme I'm using: Dark
Atom version: 1.27.2
Hello there,
First of all thank you for your work.
I am using "ftp remote edit" and usually do not work by opening a project folder.
I usually access the project via ftp and I always have to write my MySQL connection information again and again.
Does this have a solution?
I apologize for the bad english. I hope you understand.
Thank you.
Do you have any plan to add support to Oracle?
DBMS I'm using: (PostgreSQL)
OS I'm using: (OSX)
Theme I'm using: (default)
Atom version: (1.19.2)
Great package, very useful. Unfortunately our DB has lots of tables and we cannot access the last few tables as the panel is not scrollable. Please add scroll feature.
hiyas im using ruby on rails and for example a make a migration and update the database creatin a new table but the table is not refresh in the table browser
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.