Git Product home page Git Product logo

sublime-uroborosql-formatter's Issues

Better handle for weird LIMIT param

Hi,

I have the following sql and the formatter would not reformat it
SELECT * FROM table DESC LIMIT ?,?

However, it will reformat the sql if I remove the "?,?" at the end like:
SELECT * FROM table DESC LIMIT

I know that ?,? is not a valid input for sql, but would you consider supporting this user case?

Thank You.

uppercase switch

Greetings, First of all, nice package.

The package option uf_uppercase (boolean) changes reserved words and tables/columns indifferently. In MySQL without lower_case_table_names set to 1 this breaks queries. Can you please be more open allowing:

  • uf_all_uppercase actual behavior
  • uf_reserved_case for reserved words
  • uf_tables_case for tables
  • uf_columns_case for columns
  • uf_reserved_words with a list of words to be considered in uf_reserved_case

How do you change and/or disable the keybinding?

I can't figure out how you are supposed to change the key binding.

I have several formatters installed, and right now, it seems that this particular one has won somehow, and it seems to be applied when I press ctrl+alt+f no matter what the file type (C++ becomes really interesting when fed through the SQL formatter, incidentally).

How can I change (or preferably disable) the shortcut key?

Update sqlparse to last version 0.3.0

Pls update sqlparse:

#
# Copyright (C) 2009-2018 the sqlparse authors and contributors
# <see AUTHORS file>
#
# This module is part of python-sqlparse and is released under
# the BSD License: https://opensource.org/licenses/BSD-3-Clause

"""Parse SQL statements."""

# Setup namespace
from sqlparse import sql
from sqlparse import cli
from sqlparse import engine
from sqlparse import tokens
from sqlparse import filters
from sqlparse import formatter

from sqlparse.compat import text_type

__version__ = '0.3.0'

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.