File tree Expand file tree Collapse file tree 9 files changed +94
-65
lines changed
Expand file tree Collapse file tree 9 files changed +94
-65
lines changed Original file line number Diff line number Diff line change 11name : Deploy package to NPM
22on :
3- push :
4- branches :
5- - main
3+ push :
4+ branches :
5+ - main
66jobs :
7- deploy :
8- runs-on : ubuntu-latest
9- steps :
10- - name : Checkout
11- uses : actions/checkout@v4
12- - name : Setup Node.js
13- uses : actions/setup-node@v3
14- with :
15- node-version : 18
16- registry-url : ' https://registry.npmjs.org'
17- - name : Install dependencies and build 🔧
18- run : npm ci && npm run build
19- - name : Publish package on NPM 📦
20- run : npm publish
21- env :
22- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
7+ deploy :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+ - name : Setup Node.js
13+ uses : actions/setup-node@v3
14+ with :
15+ node-version : 18
16+ registry-url : " https://registry.npmjs.org"
17+ - name : Install dependencies and build 🔧
18+ run : npm ci && npm run build
19+ - name : Publish package on NPM 📦
20+ run : npm publish
21+ env :
22+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11src
2- test
2+ test
3+ .github
4+ .gitignore
Original file line number Diff line number Diff line change 1+ dist
Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 11As the name suggests, ** sql-to-nosql** lets you run SQL scripts on your NoSQL database.
22
33## Status
4+
45---
5- The project is under active development and is not yet ready to use in production. I'm aiming to launch * v-1.0* by November 2023 with some of the most common sql operations. 🤞
6+
7+ The project is under active development and is not yet ready to use in production. I'm aiming to launch _ v-1.0_ by November 2023 with some of the most common sql operations. 🤞
68
79### Installation
10+
811---
12+
913``` bash
1014npm insall sql-to-nosql
1115```
1216
1317### Roadmap
18+
1419- [ ] Database
15- - [ ] MongoDB
20+ - [ ] MongoDB
1621- [ ] Commands
17- - [ ] SELECT
18- - [ ] INSERT
19- - [ ] DELETE
20- - [ ] UPDATE
22+ - [ ] SELECT
23+ - [ ] INSERT
24+ - [ ] DELETE
25+ - [ ] UPDATE
2126- [ ] Clauses
22- - [ ] WHERE
23- - [ ] ORDER BY
24- - [ ] LIMIT
25- - [ ] OFFSET
26- - [ ] GROUP BY
27- - [ ] HAVING
28- - [ ] JOIN
29- - [ ] UNION
30- - [ ] INTERSECT
31- - [ ] EXCEPT
27+ - [ ] WHERE
28+ - [ ] ORDER BY
29+ - [ ] LIMIT
30+ - [ ] OFFSET
31+ - [ ] GROUP BY
32+ - [ ] HAVING
33+ - [ ] JOIN
34+ - [ ] UNION
35+ - [ ] INTERSECT
36+ - [ ] EXCEPT
3237- [ ] Functions
33- - [ ] COUNT
34- - [ ] SUM
35- - [ ] AVG
36- - [ ] MIN
37- - [ ] MAX
38+ - [ ] COUNT
39+ - [ ] SUM
40+ - [ ] AVG
41+ - [ ] MIN
42+ - [ ] MAX
3843- [ ] Operators
39- - [ ] =
40- - [ ] !=
41- - [ ] >
42- - [ ] <
43- - [ ] > =
44- - [ ] <=
45- - [ ] AND
46- - [ ] OR
47- - [ ] NOT
48- - [ ] IN
49- - [ ] BETWEEN
50- - [ ] LIKE
51- - [ ] IS NULL
52- - [ ] IS NOT NULL
53-
54-
55-
44+ - [ ] =
45+ - [ ] !=
46+ - [ ] >
47+ - [ ] <
48+ - [ ] > =
49+ - [ ] <=
50+ - [ ] AND
51+ - [ ] OR
52+ - [ ] NOT
53+ - [ ] IN
54+ - [ ] BETWEEN
55+ - [ ] LIKE
56+ - [ ] IS NULL
57+ - [ ] IS NOT NULL
Original file line number Diff line number Diff line change 1010 "main" : " dist/index.js" ,
1111 "scripts" : {
1212 "start" : " tsc && node dist/index.js" ,
13- "build" : " tsc" ,
14- "test" : " echo \" Error: no test specified\" && exit 1"
13+ "build" : " npx prettier . --check && tsc" ,
14+ "test" : " echo \" Error: no test specified\" && exit 1" ,
15+ "pretty" : " npx prettier . --write"
1516 },
1617 "author" : " Arif Hossain" ,
1718 "license" : " MIT" ,
1819 "devDependencies" : {
20+ "prettier" : " 3.0.3" ,
1921 "typescript" : " ^5.2.2"
2022 },
2123 "dependencies" : {
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ export const parseQuery = (query: string): ParsedSqlType => {
3434 value : rest [ whereIndex + 3 ] ,
3535 } ,
3636 ] ;
37- // throw new Error("Invalid query, WHERE clause is not supported");
3837 }
3938
4039 return parsedQuery ;
Original file line number Diff line number Diff line change 1- import { greetings } from "sql-to-nosql"
1+ import { greetings } from "sql-to-nosql" ;
22
3- console . log ( greetings ( ) )
3+ console . log ( greetings ( ) ) ;
You can’t perform that action at this time.
0 commit comments