Skip to content

Commit 8fc0aa5

Browse files
update TODO
1 parent 59399e8 commit 8fc0aa5

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4+
npm run format
45
npm run prepublish
56
npm run test

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ generator.execute(`
3131
- [x] Accept Where in Select Statement
3232
- [x] Accept Group By in Select Statement
3333
- [x] Accept Order By in Select Statement
34+
- [ ] Accept JSON Objects in From Statement
3435
- [ ] Add Support Aggregates Functions inside Select Statement
3536
- [ ] Make Order by accept Numeric Expressions and Aggregate Functions
3637
- [ ] Support sub-queries in Select Statement

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
8+
"format": "npx prettier --write .",
89
"prepublish": "tsc",
910
"prepare": "husky install",
1011
"test": "jest"
@@ -33,4 +34,4 @@
3334
"@rollup/plugin-babel": "^6.0.2",
3435
"tape": "^5.6.3"
3536
}
36-
}
37+
}

src/expressions/unary.expression.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export type UnaryToken = TokenType.MINUS | TokenType.NOT
88
export class UnaryExpression extends Expression {
99
public override variant: Variant = 'operation'
1010

11-
constructor(public operator: Token<UnaryToken>, public right: Expression) {
11+
constructor(
12+
public operator: Token<UnaryToken>,
13+
public right: Expression
14+
) {
1215
super()
1316
}
1417
public override accept<R>(visitor: Visitor<R>): R {

0 commit comments

Comments
 (0)