Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/doctrine/sql-formatter
A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.
https://github.com/doctrine/sql-formatter
removed extra parenthesis and indented code by replacing tab with
spaces.
added many reserved keywords of mysql. (
SQL_SMALL_RESULT ,
GEMINI,GEMINI_SPIN_RETRIES,MASTER_...
fdaa5692efd1049d244d0c0aba403978ab02d428 authored over 11 years ago by adityagoyal <[email protected]>
Added a method remove_blank_lines(String) that checks for blank new line
and removes it.
00131d65535a923d24fa32cba72df82ad9f9cfa4 authored over 11 years ago by Rajib Ahmed <[email protected]>
Fixed bin dir issue
Fixed path
6f9501ebd4ac78eb1ff631931302891625afca32 authored over 11 years ago by Rajib Ahmed <[email protected]>d7f10fbb2f871155cdd91b077acebb378e10a95c authored over 11 years ago by Stéphane Klein <[email protected]>
Added test cases for CLI mode and compress method.
Bumped patch version.
bd1f09133f6dbbe0713856910e58ea9480c2be58 authored over 11 years ago by jdorn <[email protected]>
e38ea8a0cbd943ac78014d07f42441cd51d537db authored over 11 years ago by Jeremy Dorn <[email protected]>
4ca0c1b7e6501ec3404c07675372cf6076d8628b authored over 11 years ago by Jeremy Dorn <[email protected]>
Added "IFNULL" as a reserved word.
Changed "NOW" to "NOW()" in the reserved word list so it can b...
46ec57eb77c2aaf6e685ecb9864ac01a5878cc77 authored almost 12 years ago by Jeremy Dorn <[email protected]>
Conflicts:
lib/SqlFormatter.php
4142e37805f1042096231e3471171cadec48e2ca authored almost 12 years ago by Jeremy Dorn <[email protected]>
Now, JOIN keywords and logical operators (AND, OR, etc.) have a new line before them. Fixes #30
A...
Improved code coverage in unit tests. Now everything is covered except the infinite loop catchin...
2724ddb7fb79851a557d868a688fc269960bff87 authored almost 12 years ago by Jeremy Dorn <[email protected]>17fdbb8bd358d226dc1a9691c2245f041d72e3d3 authored almost 12 years ago by Jeremy Dorn <[email protected]>
d4c4db359863c8f597805076531df627f78f97a8 authored almost 12 years ago by Jeremy Dorn <[email protected]>
1df1f5be6d465fcc8b412c1cc30c100decf9d3f2 authored almost 12 years ago by Franck Magnan <[email protected]>
d89d902381230843629b0fb562e1929a67bafbc0 authored almost 12 years ago by Franck Magnan <[email protected]>
2bbd685687f72cd5ffc1b9f0b7c19b28f6dc694c authored almost 12 years ago by Franck Magnan <[email protected]>
b27101b27e1f5434fd985d38a5ade8cbc06cffbc authored almost 12 years ago by Franck Magnan <[email protected]>
Added PHPUnit tests and .travis integration.
2efc4bb4f6f154d67125d313b1412926fe9d70ee authored almost 12 years ago by Jeremy Dorn <[email protected]>3d8a97325e5894c72dd5c4d4f83dd3722d414d99 authored almost 12 years ago by Jeremy Dorn <[email protected]>
Resulted in a ~35% reduction in memory use and a slight decrease in performance.
7a92826fe2734518e9cd6ebcf1ba052e58351c34 authored almost 12 years ago by Jeremy Dorn <[email protected]>d9a72005ce780b73f4839a2d4931d12236bcca11 authored almost 12 years ago by Jeremy Dorn <[email protected]>
Now, you can set whatever html attributes you want for each token type. Previously you could onl...
da55bd76098f872b44343ba456db868cbcac8776 authored almost 12 years ago by Jeremy Dorn <[email protected]>Changed behavior when a parse error is encountered. It use to throw an exception, but now it jus...
a31cb6ffd64a8f7efa8e92f46b99fe9f990f9299 authored almost 12 years ago by Jeremy Dorn <[email protected]>Added set operators to special reserved list (UNION, UNION ALL, EXCEPT, and INTERSECT).
Updated t...
9aac5ea51a1c13af3e67a7d7ba7e528f94c52485 authored almost 12 years ago by Jeremy Dorn <[email protected]>
cd9e399fed1487656415f7c193d581f9dac86182 authored almost 12 years ago by Jeremy Dorn <[email protected]>
1f7d2b9b694f7999c0f60f1fbdeede9a7419e693 authored almost 12 years ago by Jeremy Dorn <[email protected]>
Specifically:
- Fixed double newlines that were appearing in some cases
- Improved algorithm for...
6b3516f87d6636dcc3f847887eec82e852943247 authored almost 12 years ago by Jeremy Dorn <[email protected]>
Found and fixed a minor bug in the process. "1.00" was being counted as 3 separate tokens ("1", "...
d0d9cea94cd6bdcdc3e164924e0d39e9192fe2bf authored almost 12 years ago by Jeremy Dorn <[email protected]>14d1b5449c635a4fae3cbabec9843a8d5a30a417 authored almost 12 years ago by Jeremy Dorn <[email protected]>
aa86b3fed70ea32f2e966342678dc7e02bb763d8 authored almost 12 years ago by Jeremy Dorn <[email protected]>
Some code readability cleanup and additional micro-optimizations
4dfcac8b42a8094dd96fbcec61cd31f0cd031350 authored about 12 years ago by Jeremy Dorn <[email protected]>346cef24c1e9c3daded6cb4c1ba3e314934ee750 authored about 12 years ago by Joseph Bielawski <[email protected]>
15ab7a899e33f42682f74804d340a6995711a0d4 authored about 12 years ago by Jeremy Dorn <jeremy@jeremy.(none)>
Update lib/SqlFormatter.php
251b032a1ae858063c4859430bee11b106bdd134 authored about 12 years ago by Jeremy Dorn <[email protected]>Introduce some micro-optimizations
d543fe462445d5c44b58f1e11a5e9ef698936d8e authored about 12 years ago by Joseph Bielawski <[email protected]>Fixed the branch alias for master
0461ab0ff16e096b8c51f085349f38ed5f2ea241 authored about 12 years ago by Jeremy Dorn <[email protected]>b802a9f1ed7cb9a2abdfb19bf37f771ccdcfd920 authored about 12 years ago by Christophe Coevoet <[email protected]>
An exception was being thrown when the last line of a query was a comment (without trailing \n).
...
e3083aafdf447af4abb47342158f6778e03c6d4b authored about 12 years ago by Jeremy Dorn <[email protected]>
2f482368c4e135779e3b294a925bb9e95777c614 authored about 12 years ago by Jeremy Dorn <jeremy@jeremy.(none)>
afdd8dd767758bba4facc058a24bc43adc73056a authored about 12 years ago by Jeremy Dorn <jeremy@jeremy.(none)>
Adding "NOW" as a reserved word.
9bd0f82ef45cc54d80e423a65f1c5e837aa11ab0 authored about 12 years ago by Jeremy Dorn <jeremy@jeremy.(none)>832e96f476327077343d4a7b5509f749334063ef authored about 12 years ago by Jeremy Dorn <jeremy@jeremy.(none)>
edfe2063dc730d1a81167583abcce1e104273885 authored about 12 years ago by Mathieu Chabanon <[email protected]>
Adding parameter to SqlFormatter::format() to disable syntax highlighting.
Making the code compat...
Changed the composer autoloading to use the classmap
fbb175cb6709d584e7e6c61aeee2b929c32d9a1a authored over 12 years ago by Jeremy Dorn <[email protected]>
Using the ``files`` type is requiring the file on each request,
even when it is not needed, ins...
Formatted source code according to PSR-1 and PSR-2. Added composer support
bd72a03db327dcbc16fb54907c247b98d012ccc8 authored over 12 years ago by Jeremy Dorn <[email protected]>997cc0e0dde3efa8e588eed419385ad8bd3b0556 authored over 12 years ago by Florin Patan <[email protected]>
94c7e4e67a5fcc989deb42e958114d829073f17b authored over 12 years ago by Jeremy Dorn <[email protected]>
Improved examples page.
1fc60240c8b31a1c8c35a82ff9d29017ac3579f1 authored over 12 years ago by Jeremy Dorn <[email protected]>of all uppercase.
94a3bfa3570f352bb9fe47831e54e8cb91064559 authored over 12 years ago by Jeremy Dorn <[email protected]>Fixed undefined variable error with highlight method.
638725ce8ebcfe244c31f24a7c1a40b609eb8ff3 authored over 12 years ago by Jeremy Dorn <[email protected]>b763e808e64ffc830ace9b8b8e6f218062ff9254 authored over 12 years ago by Jeremy Dorn <[email protected]>
5c31c9f4a79d21f8b32baa41783efcd434b4fafb authored over 12 years ago by Jeremy Dorn <[email protected]>
preserves original whitespace.
a90c9d4a49ac2d58d9737aecfeb117c2091abfe0 authored over 12 years ago by Jeremy Dorn <[email protected]>4c6d7f11e8766ba49abf27afbcc0793df50ca7db authored over 12 years ago by jdorn <[email protected]>
cd5e0db57afe55d4ed02235cdb6d9ef48fb84021 authored over 12 years ago by jdorn <[email protected]>
0ced5f358bc49de724cce2b0ab06a89369ed5c1e authored over 12 years ago by Jeremy Dorn <[email protected]>
Fixed typo in error styling.
Added example for unmatched parentheses.
Moved all syntax highlighting styles to static properties that can be overwritten.
Simplified and...
56729758424921143e38131f3b3c49682f438342 authored over 12 years ago by Jeremy Dorn <[email protected]>
Moved whitespace and quote list to static variables.
Now, multiple whitespace characters in a row...
30d8efbfa4a98d8f7da6cc038cd7026a842c288d authored over 12 years ago by jdorn <[email protected]>
88bace86f94db54774e17eddb85e6831392870fd authored over 12 years ago by Jeremy Dorn <[email protected]>
db7998963e87dd3212acef04fee0aa34dab2c9e2 authored over 12 years ago by Jeremy Dorn <[email protected]>
b676c13ae9bb3eef5620cde54556a96fe61bfbf5 authored over 12 years ago by jdorn <[email protected]>