Skip to content

Commit f12846a

Browse files
committed
add example to readme
1 parent fb54a34 commit f12846a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ add the following line to keymap settings
1515
{ "keys": ["super+k", "super+s"], "command": "format_sql" },
1616

1717

18+
## Example
19+
20+
Original:
21+
22+
select a,b from foo join bar on val1 = val2 where id = 123 and cd = 99;
23+
24+
Formated:
25+
26+
SELECT a,
27+
b
28+
FROM foo
29+
JOIN bar ON val1 = val2
30+
WHERE id = 123
31+
AND cd = 99;
32+
1833
## License
1934

2035
[python-sqlparse library](http://code.google.com/p/python-sqlparse/) and this code are both on [2-clauses BSD](http://www.opensource.org/licenses/bsd-license.php)

0 commit comments

Comments
 (0)