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
705a800b3fc56c3b64a1ec01740d419cd186142d authored over 4 years ago by Grégoire Paris <[email protected]>
a5fd889ce0fa940765a22af1b5214ceec17c644a authored over 4 years ago by Grégoire Paris <[email protected]>
Closes #23
292bb6d9a9fcbc93d8677ae969a840550fc192bf authored over 4 years ago by Grégoire Paris <[email protected]>Move initialization to the constructor
fbe071c79b7798b53e8ab9ae33363ec6c2d3088d authored over 4 years ago by Grégoire Paris <[email protected]>
Since this class no longer uses statism, we have state and we can
initialize it in the constructor.
Drop features unrelated to formatting
fc5b0a7421fd24980fae21550ab4a8315e864b8e authored over 4 years ago by Grégoire Paris <[email protected]>69e764b6d1915bb3e6caaeeea54fc5390adce1d8 authored over 4 years ago by Grégoire Paris <[email protected]>
Use polymorphism for highlighting
7dea318791838690eee00cf01e4b5a9f33da8c0e authored over 4 years ago by Grégoire Paris <[email protected]>a89bbdd026a7d8c016fdc4e2b6b5d1fcb7258353 authored over 4 years ago by Grégoire Paris <[email protected]>
This constant is defined since php 5.3, and we require 7.2.
f219f3ab1af229ed8373c2420d68f48f5c7f7f12 authored over 4 years ago by Grégoire Paris <[email protected]>Closes #15
a02a5ea784eacf758b025f36aa673e1ddc3f688f authored over 4 years ago by Grégoire Paris <[email protected]>3901956db22571c1b909b9abadd9445fe5c6b04f authored over 4 years ago by Grégoire Paris <[email protected]>
874834a8311d7af75ae0748923f632afe895c20f authored over 4 years ago by Grégoire Paris <[email protected]>
5d55ae48fbe9376f0d37ac7315abb65549b6e74e authored over 4 years ago by Grégoire Paris <[email protected]>
Psalm sa
4db282d8904774d422794c2fa361be0206d704b4 authored over 4 years ago by Grégoire Paris <[email protected]>Get rid of statism
1f59c685b5c52354910c6f2946b5aa461d26e125 authored over 4 years ago by Grégoire Paris <[email protected]>
That way you can have several instances with different settings (there
are no settings yet, but ...
3f884c2d0bb157e24a09ea7a3fef80c428eefb4f authored over 4 years ago by Grégoire Paris <[email protected]>
Proofread readme
1d5a5a34fb01f3fdef345e5e76a0d46991955aed authored over 4 years ago by Grégoire Paris <[email protected]>The new minimum php version is 7.2
796e3a6ba0c9e6cacd7b259102d2ddada0f73cd5 authored over 4 years ago by Grégoire Paris <[email protected]>da5635e2b8e76002dc3ed99415777a9715bcabfa authored over 4 years ago by Asmir Mustafic <[email protected]>
78641440a696a3d3c781540fbaeae5a8bfee04e2 authored over 4 years ago by Grégoire Paris <[email protected]>
SQL starts with a vowel sound ("ess")
461e6895f92f86de0d09230fccc195b50ac45f96 authored over 4 years ago by Grégoire Paris <[email protected]>a03b2ac618c9f1e3525528ec8dc80020b842098a authored over 4 years ago by Grégoire Paris <[email protected]>
Fixes #14
7853225acae2d54023a7858f0fb26e188d074955 authored over 4 years ago by Grégoire Paris <[email protected]>9ee463ef60b97afef3c513c4bb338287dedc9dd9 authored over 4 years ago by Grégoire Paris <[email protected]>
That one allows not to have to make sure the underline has as many
characters as the title above...
Use the Doctrine fork repo url as a homepage
3ce2f6f0e126de08e7e94550418f0e5b7e245002 authored over 4 years ago by Asmir Mustafic <[email protected]>Fix the phpunit coverage whitelist
add07949c5b82a0e2e9b29e054bdb69e28d3192f authored over 4 years ago by Grégoire Paris <[email protected]>The original repo will just show outdated docs.
9ccce7cd1bfe0d9032fcf9c86e90a159e4fe58cd authored over 4 years ago by Grégoire Paris <[email protected]>The source directory was renamed
347bd07b72f4871c874b0805e1e5e4079ac41119 authored over 4 years ago by Christophe Coevoet <[email protected]>Statically analyse code with PHPStan
657a79ace4ec0562dbca7dfa337a8fd19347d324 authored over 4 years ago by Grégoire Paris <[email protected]>05dbc6a095fbaa9d7ff0e3f8bd04af492a6dd869 authored over 4 years ago by Grégoire Paris <[email protected]>
Standards
1b27af256e2f813c39a5fe27650f333b39e053b4 authored over 4 years ago by Grégoire Paris <[email protected]>5deb7ac461568fb7d4f1a157811972b8c6d510cb authored almost 5 years ago by Grégoire Paris <[email protected]>
Close api
8de34cfc06073b97295ada516363aad138c47628 authored almost 5 years ago by Grégoire Paris <[email protected]>39decd158d56970e2d002c72f72aa99b55b90950 authored almost 5 years ago by Grégoire Paris <[email protected]>
e1b9890611cfde61183ea43ab61e4cff3b47bddb authored almost 5 years ago by Grégoire Paris <[email protected]>
68f961b352f08683873a079768bf84e332a4862a authored almost 5 years ago by Grégoire Paris <[email protected]>
22045a4460c744a6df7d2b7429344c8b86c3e36f authored almost 5 years ago by Grégoire Paris <[email protected]>
f9e9c1b18b1d186c6747188068effc4e23e4830d authored almost 5 years ago by Grégoire Paris <[email protected]>
Use new autoloading mechanism in examples
087f60c821512793b6ebcce2d66cc3ece757084a authored almost 5 years ago by Grégoire Paris <[email protected]>0b8eab576e8726d3c15e6e8a8bc620dab6914c4d authored almost 5 years ago by Grégoire Paris <[email protected]>
Alias master to 1.x
ebbf40a76db849ad19bf5bb8559df9603e3c5d7b authored almost 5 years ago by Grégoire Paris <[email protected]>master is the future 1.0.0
dd007c93e97ffba679c83fe104edcc7dd52cd348 authored almost 5 years ago by Grégoire Paris <[email protected]>Declare our own, separate package
9a9420f389bdb04874a1453c1b43c7924bbe20a4 authored almost 5 years ago by Grégoire Paris <[email protected]>195ae4f6a5480834b6cc9a75038138809c49510b authored almost 5 years ago by Grégoire Paris <[email protected]>
Namespacing
6182e0996483736734a95b6ceb143ad667d1bda3 authored almost 5 years ago by Grégoire Paris <[email protected]>dd5fe2c8b7400b7e2cd03fa72f988bce1e829085 authored almost 5 years ago by Grégoire Paris <[email protected]>
c813f4ff1b40c4dd08ebb02593d56d280eeacc89 authored almost 5 years ago by Grégoire Paris <[email protected]>
It is a best practice that avoids collisions with other packages.
123a106bd13aecfa5c72ea3d6fd13735dec630f7 authored almost 5 years ago by Grégoire Paris <[email protected]>64071069e97764e6a6e881c1dca24b49532ed17d authored almost 5 years ago by Grégoire Paris <[email protected]>
ec353eaa279124b00b68c1c394990278a32417ce authored almost 5 years ago by Grégoire Paris <[email protected]>
a79670a6e279e2feaa2907dfe59eb432acd37233 authored almost 5 years ago by Grégoire Paris <[email protected]>
Export only the code, the license and the README
6f039428b6cb526b3e1fbea91fb5d957406488f6 authored almost 5 years ago by Grégoire Paris <[email protected]>The rest is not needed in production.
c7378bcfb6c8599122802086dd580458b2546fa1 authored almost 5 years ago by Grégoire Paris <[email protected]>Switch Travis to the stable HHVM version
7ef9b85961956aa572413693e1194b60f50ab9ab authored over 9 years ago by Jeremy Dorn <[email protected]>035b96982049fa13efc60286624288acbdc3e053 authored over 9 years ago by Christophe Coevoet <[email protected]>
ffecdad6ca3f6235f941e960bc9d290a20054586 authored over 9 years ago by Jeremy Dorn <[email protected]>
Add color detection to bin/sql-formatter
ff0515fa8ce7d97d6cba279e8ed9d51d3eaa0316 authored over 10 years ago by Jeremy Dorn <[email protected]>Added HHVM to travis.yml
017b6628e7a3a96cfd9f96ec1531b974d1dea2b7 authored over 10 years ago by Jeremy Dorn <[email protected]>327c184c5856bfcfabe0ee90f7a8187f75207078 authored over 10 years ago by Tobias Nyholm <[email protected]>
2a30f6a8a62e7621dd1a1a351cc3cfbb8dbd1f76 authored over 10 years ago by Elan Ruusamäe <[email protected]>
so we can redirect output to file and it will not be colored while
outputing to terminal it woul...
Add bin/sql-formatter console script
ebeb18ffd93454572a829bb43c5ca8c3318c3d63 authored over 10 years ago by Jeremy Dorn <[email protected]>For #63
ffd2441bc082ab5aaf07be5676bfb1eadaeef77d authored over 10 years ago by Jeremy <[email protected]>Added EXEC as a reserved word, add square brackets as boundary characters.
9fcbe73681954170de7425dbcb24c83ecdd925aa authored over 10 years ago by Jeremy Dorn <[email protected]>f59daa21e2c9f5794044543217697a28967b31e8 authored over 10 years ago by Jonathan Drake <[email protected]>
85bd9434a3db5ac38f1e89ed94a0b52305d14767 authored over 10 years ago by Jonathan Drake <[email protected]>
08db51b6cd5639fa311f63ff7ebd71130fd58388 authored over 10 years ago by Jonathan Drake <[email protected]>
Added PHP 5.5 and 5.6 to travis.
826d01c59bb972df6769f693a8b7d6ff13347557 authored almost 11 years ago by Jeremy Dorn <[email protected]>c52c2be4713cad356442ae189b71ff5e8ec2bf4f authored almost 11 years ago by Julius Beckmann <[email protected]>
Prevent warnings in highlightToken with binary data
38058f6fc48b05bb7a18946e773f9916942dfecd authored almost 11 years ago by Jeremy Dorn <[email protected]>and added new test highlightBinaryData to test for this case
dbeecfdfbbe03c84d73e6f48aafc30a031470279 authored almost 11 years ago by Dominik Liebler <[email protected]>5e3938b7125cd677d8e4e0a4ac2630524bb43df1 authored almost 11 years ago by Dominik Liebler <[email protected]>
This was caused by a missing isset check. Fixes #57
64990d96e0959dff8e059dfcdc1af130728d92bc authored almost 11 years ago by Jeremy Dorn <[email protected]>Improve phpunit code coverage.
8859d664737492d313c34796731b35eca851b362 authored about 11 years ago by Jeremy Dorn <[email protected]>96effdcddc70f199b076b315b1ff2bb9dd8dd88b authored about 11 years ago by Jeremy Dorn <[email protected]>
Conflicts:
lib/SqlFormatter.php
d75c96309518610ebaab38f57b032d234dc90111 authored about 11 years ago by José Augusto de Araújo Nascimento <[email protected]>
62b4cc0fa103bb8f9d0cc2a9a44ad65d76c6d1cc authored about 11 years ago by Michal Brašna <[email protected]>
Fix undefined variable $clause_limit notice.
A couple PSR fixes.
Bump version number.
c3691fe2e20326e2022ec339ca1942b84cd38b77 authored over 11 years ago by Lairson Alencar <[email protected]>
504efb3558d503d9a8740ef9152410115b8d1def authored over 11 years ago by Lairson Alencar <[email protected]>
The Formatting was added as suggested by leeoniya (issue #34).
7f862d76ef8105ae8e25e1f04a49d00e06d7fd26 authored over 11 years ago by Lairson Alencar <[email protected]>7045fde3163d5a4ea6ec32e409a7dcf00779e204 authored over 11 years ago by Jeremy Dorn <[email protected]>
Add ":" to the boundary list (fixes ":=" assignment operator).
Standardize whitespace around "if"...
```sql
LEFT
OUTER
JOIN
```
becomes
```sql
LEFT OUTER JOIN
```
bccca26bfe75b30aba71c2f734e9f9dd854a85f6 authored over 11 years ago by Jeremy Dorn <[email protected]>
e1aa999f64b222bdd990be6408f832c616ac57cf authored over 11 years ago by Jeremy Dorn <[email protected]>
7dc6794a53571d5ccbe10716d20e2e3a7101c00c authored over 11 years ago by Jeremy Dorn <[email protected]>
f0bbbe193836e760c1baa581578abe19e48f2d54 authored over 11 years ago by adityagoyal <[email protected]>
This reverts commit 3f39d54f21236e9afdf0e53f759c430d0fae9365.
2b09b47a83dc2d8ce2248e7e4926e7adfd4f0b85 authored over 11 years ago by adityagoyal <[email protected]>3f39d54f21236e9afdf0e53f759c430d0fae9365 authored over 11 years ago by adityagoyal <[email protected]>
12807638751d5c094f8b7faded70c39daf31b9ee authored over 11 years ago by adityagoyal <[email protected]>
removed remove_blank_line method as suggested and calling format method
to format after removing...
Added methods to highlight mysql functions.Removed now() ,count from
reserved keyword.They are ...
a8546539505e6dc388303ee89dcde7c84c338dd4 authored over 11 years ago by Jeremy Dorn <[email protected]>
Added LEFT OUTER JOIN, RIGHT OUTER JOIN in newline reserved
keys.Removed XOR.
Added LEFT OUTER ...
removed XOR as it was there in reserved newline.Added LEFT OUTER JOIN
and RIGHT OUTER JOIN in ne...