Skip to content

Commit 9fc667b

Browse files
committed
add more aggregates
1 parent 8b6da81 commit 9fc667b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/lexer.coffee‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Lexer
103103
str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")
104104

105105
SQL_KEYWORDS = ['SELECT', 'FROM', 'WHERE', 'GROUP BY', 'ORDER BY', 'HAVING', 'AS']
106-
SQL_FUNCTIONS = ['COUNT', 'MIN', 'MAX']
106+
SQL_FUNCTIONS = ['AVG', 'COUNT', 'MIN', 'MAX', 'SUM']
107107
SQL_SORT_ORDERS = ['ASC', 'DESC']
108108
SQL_OPERATORS = ['=', '>', '<', 'LIKE', 'IS NOT', 'IS']
109109
SQL_CONDITIONALS = ['AND', 'OR']

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sql-parser",
33
"description": "Lexer and Parser for SQL Syntax",
4-
"version": "0.1.7",
4+
"version": "0.1.8",
55
"author": {
66
"name": "Andy Kent",
77
"email": "andy@forward.co.uk"

0 commit comments

Comments
 (0)