An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        


🧽 SpOnGeCaSqL



(spongecaSQL)



Mocking Spongebob meme

**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'
```