Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@putout/plugin-sql NPM version

The React Framework for the Web

(c) sql.org

🐊Putout plugin adds ability improve SQL. Not Bundled.

Install

npm i putout @putout/plugin-sql -D

Add .putout.json with:

{
    "plugins": ["sql"]
}

Rules

Here is list of rules:

{
    "rules": {
        "sql/apply-count": "on"
    }
}

apply-count

The COUNT() function returns the number of rows that matches a specified criterion.

(c) w3cshools.com

Check out in 🐊Putout Editor.

❌ Example of incorrect code

SELECT COUNT(1) FROM orders

✅ Example of correct code

SELECT COUNT(*) FROM orders

License

MIT