https://github.com/loristns/spongecasql
A mocking spongebob SQL formatter.
https://github.com/loristns/spongecasql
code-formatter spongebob spongecase sql
Last synced: about 2 months ago
JSON representation
A mocking spongebob SQL formatter.
- Host: GitHub
- URL: https://github.com/loristns/spongecasql
- Owner: loristns
- License: mit
- Created: 2020-03-04T13:19:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T13:24:43.000Z (about 5 years ago)
- Last Synced: 2025-03-30T17:02:53.747Z (2 months ago)
- Topics: code-formatter, spongebob, spongecase, sql
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
🧽 SpOnGeCaSqL
(spongecaSQL)
![]()
**SQL** is great but it is not *case-sensistive*. Which means that keywords and objects can be called in UPPERCASE or in lowercase .
That's bad. It discourage consistency since some developer will write `SELECT`, `select` or even `Select`.
Here is a standard to fix this issue : **🧽 SpOnGeCasE**.
# Usage
```sh
$ python3 spongecasql.py yourfile.sql
```### Before
```sql
/*
Comments are ignored
*/
# Those too
-- Those too
SELECT *
FROM Customer
WHERE country = 'US'
AND city = 'New-York City'
```### After
```sql
/*
Comments are ignored
*/
# Those too
-- Those too
sElEcT *
FrOm cUsToMeR
WhErE CoUnTrY = 'US'
AnD CiTy = 'New-York City'
```