@@ -139,7 +139,7 @@ function funcToSQL(expr) {
139139 */
140140function columnsToSQL ( columns ) {
141141 return columns
142- . map ( column => {
142+ . map ( ( column ) => {
143143 let str = exprToSQL ( column . expr ) ;
144144
145145 if ( column . as !== null ) {
@@ -198,7 +198,7 @@ function withToSql(withExpr) {
198198 'WITH ' +
199199 ( withExpr [ 0 ] . recursive ? 'RECURSIVE ' : '' ) +
200200 withExpr
201- . map ( cte => {
201+ . map ( ( cte ) => {
202202 const name = `"${ cte . name } "` ;
203203 const columns = Array . isArray ( cte . columns ) ? '(' + cte . columns . join ( ', ' ) + ')' : '' ;
204204
@@ -240,7 +240,7 @@ function selectToSQL(stmt) {
240240 if ( has ( stmt , 'having' ) && stmt . having !== null ) clauses . push ( 'HAVING ' + exprToSQL ( stmt . having ) ) ;
241241
242242 if ( Array . isArray ( stmt . orderby ) && stmt . orderby . length > 0 ) {
243- const orderExpressions = stmt . orderby . map ( expr => exprToSQL ( expr . expr ) + ' ' + expr . type ) ;
243+ const orderExpressions = stmt . orderby . map ( ( expr ) => exprToSQL ( expr . expr ) + ' ' + expr . type ) ;
244244 clauses . push ( 'ORDER BY' , orderExpressions . join ( ', ' ) ) ;
245245 }
246246
@@ -271,12 +271,12 @@ exprToSQLConvertFn = {
271271 case : caseToSQL ,
272272 cast : castToSQL ,
273273 column_ref : columnRefToSQL ,
274- expr_list : expr => {
274+ expr_list : ( expr ) => {
275275 const str = getExprListSQL ( expr . value ) ;
276276 return ! expr . parentheses ? str : `(${ str } )` ;
277277 } ,
278278 function : funcToSQL ,
279- select : expr => {
279+ select : ( expr ) => {
280280 const str = typeof expr . _next !== 'object' ? selectToSQL ( expr ) : unionToSQL ( expr ) ;
281281 return ! expr . parentheses ? str : `(${ str } )` ;
282282 } ,
0 commit comments