Giter Club home page Giter Club logo

nvim-mysql's People

Contributors

dependabot[bot] avatar jobo3208 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nvim-mysql's Issues

Support connection strings

Have :MySQLConnect accept a connection string instead of just a host name. This allows the user to specify ports, usernames, passwords, custom my.cnf files, etc.

Unicode errors for non-ascii characters in warnings, log messages

(seen in python 2)

when a non-ascii values is part of a warning:

Traceback (most recent call last):
  File "/home/jboyd/.dotfiles/base/vim/pack/nvim-mysql/start/nvim-mysql/rplugin/python/nvim_mysql/__init__.py", line 824, in show_results
    current_tab.results_buffer[:] = format_results(current_tab.results, format_, metadata)
  File "/home/jboyd/.dotfiles/base/vim/pack/nvim-mysql/start/nvim-mysql/rplugin/python/nvim_mysql/__init__.py", line 267, in format_results
    lines.append("({}) {}".format(warning[1], warning[2]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 41: ordinal not in range(128)

when a non-ascii value is in a query itself:

e.g. select 'étage'

Traceback (most recent call last):
  File "/home/jboyd/.dotfiles/base/vim/pack/nvim-mysql/start/nvim-mysql/rplugin/python/nvim_mysql/__init__.py", line 646, in exec_query_under_cursor
    current_tab.execute_query(query)
  File "/home/jboyd/.dotfiles/base/vim/pack/nvim-mysql/start/nvim-mysql/rplugin/python/nvim_mysql/__init__.py", line 493, in execute_query
    self.execute_queries([query], False)
  File "/home/jboyd/.dotfiles/base/vim/pack/nvim-mysql/start/nvim-mysql/rplugin/python/nvim_mysql/__init__.py", line 445, in execute_queries
    logger.debug("executing query: {}".format(query))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 8: ordinal not in range(128)

both errors break the plugin completely and require an editor restart

Make spinner optional

It turns out that there's an inconvenient side-effect of the spinner: it doesn't play well with the visual activity indicators in tmux/screen. As soon as you switch away from a window where a query is running, the visual indicator lights up because it detected a change in the spinner. Without the spinner, the visual activity indicator usually indicated that a query was actually done, which was quite useful. We should give the user an option to turn it off.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.