future-architect / sublime-uroborosql-formatter Goto Github PK
View Code? Open in Web Editor NEWBeautiful SQL Formatter for Sublime Text 3
License: BSD 2-Clause "Simplified" License
Beautiful SQL Formatter for Sublime Text 3
License: BSD 2-Clause "Simplified" License
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.
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 behavioruf_reserved_case
for reserved wordsuf_tables_case
for tablesuf_columns_case
for columnsuf_reserved_words
with a list of words to be considered in uf_reserved_case
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?
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'
Thanks for your code
ported: https://github.com/CudaText-addons/cuda_uroboro_sql_format
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.