-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Paste SQL from Java (or other) code? #240
Comments
Hm...Would be a great feature but this might be hard to implement. Any ideas on how? @carlosjrcabello you're right, but it's harder going the reverse direction. Eclipse knows that you are in a string and doesn't care what's inside the data, simply splits it at 80 characters (or however many) and wraps it using Java's String concatenation operators. But going the other way is harder. Since DBeaver is also a standalone application, you could be pasting in SQL from another language, like PHP with its Maybe we could have a "paste from special" operation with a different hotkey which would try a "best guess" for removing these with a regex. I wonder how effective a simple naive regex would be... something like |
@codebling, you're right. I believe that using ER could be simpler than the instance that I was thought. |
I like this feature but yes, it is not so easy to do. |
@serge-rider anything else, the code can be run as a syntax corrected java string |
For now algorithm is very simple. But works. |
When developing one often need to copy some sql statements from the code to run in the SQL editor. The problem is that these statements often includes characters like " and + that need to removed before one can run the statement.
Would be a nice feature..
The text was updated successfully, but these errors were encountered: