★ wanayoo — archive 1999 https://github.com/catherinedevlin/ipython-sql/pull/110Nouvelle recherche | Portail wanayoo
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

Syntax highlight, verbosity, PEP8 #110

Open
wants to merge 5 commits into
base: master
from

Conversation

@gcbeltramini
Copy link

gcbeltramini commented Nov 28, 2017

  • Used PyCharm to reformat code and optimize imports
  • Syntax highlight for SQL is working with load_ipython_extension
  • %config SqlMagic.feedback also enables print the connection list
Copy link

iamjoeker left a comment

Use of default connection is broken when SqlMagic.feedback = False

@@ -41,7 +41,7 @@ def set(cls, descriptor):
cls.connections.get(descriptor.lower())
cls.current = existing or Connection(descriptor)
else:
if cls.connections:
if cls.connections and verbose:

This comment has been minimized.

@iamjoeker

iamjoeker Dec 19, 2017

This causes the default connection to not be used if you have disabled feedback. You need another check to see if cls.current is defined and only go to the environment if it is not.

@ViktorQvarfordt
Copy link

ViktorQvarfordt commented Jan 1, 2018

What about syntax highlighting for %sql, not only %%sql?

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

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.