Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute AQL from context menu #4

Open
konsultaner opened this issue Dec 10, 2018 · 3 comments
Open

Execute AQL from context menu #4

konsultaner opened this issue Dec 10, 2018 · 3 comments

Comments

@konsultaner
Copy link

I have a query that produces an error and I wanted to execute it with the plugin. The query does not execute. Nothing happens. Then I found out that the database was not connected correctly, but it still does not execute or tries to execute anything. the code looks a bit like this:

String query = "FOR u IN " + myCollectionName(User.class) + "\n RETURN u"
@machak
Copy link
Collaborator

machak commented Dec 10, 2018

I don't think that will work in current version,
what's worse, I thought that I enabled it for *.aql files only, all file or selected part of the query (so, disabled for java file context etc)

So far only "simple" statements should work, e.g something like: FOR doc in X FILTER doc.name =@someParamName RETURN DOC. You'll get popup to fill in the parameter,

I need to look into resolving of things like in your case (myCollectionName(User.class) ), hopefully there will be no problem resolving those contexts.
I am working on improvements for query execution (table results, parameter handling) and also looking into rendering of graph results.

@machak machak added this to the QUERY_EXEXCUTION_AND_RANDERING milestone Dec 10, 2018
@konsultaner
Copy link
Author

I've never looked into intellij plugin development, but it seems logical that this kind of expressions are only executable at debug time. Maybe there is a some way to check if the code is in debug state.

@vovahost
Copy link

vovahost commented Mar 3, 2020

@machak I couldn't undesrtand why it wasn't doing anything when I'd select Execute AQL query. After reading your comment I realized that it will not work for Kotlin files because you only enabled it for *.aql files only. Can you enable it for Kotlin as well in the next version.
AlsoI suggest mentioning that it will only work in a specific context in the plugin description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants