File tree Expand file tree Collapse file tree 3 files changed +20
-12
lines changed Expand file tree Collapse file tree 3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1
- # JSQL
2
- Use ** JSON** as ** SQL** .
1
+ # JSON SQL Query
2
+ Use ** CRUD ** operations on ** JSON** with ** SQL** queries .
3
3
4
4
# Installing
5
5
6
6
``` sh
7
- $ npm i --save @devsnowflake/jsql
7
+ $ npm i --save json-sql-query
8
8
```
9
9
10
10
> Note: This library is very new and does not support most of the statements
11
11
12
12
# Example
13
13
14
14
``` js
15
- const { Database } = require (" @devsnowflake/jsql " );
15
+ const { Database } = require (" json-sql-query " );
16
16
17
17
// file based
18
18
const db = new Database (" ./database.json" );
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @devsnowflake/jsql " ,
3
- "version" : " 1 .0.5 " ,
4
- "description" : " Use JSON as SQL." ,
2
+ "name" : " json-sql-query " ,
3
+ "version" : " 2 .0.0 " ,
4
+ "description" : " Use CRUD operations on JSON with SQL queries ." ,
5
5
"main" : " index.js" ,
6
6
"types" : " typings/index.d.ts" ,
7
7
"scripts" : {
15
15
},
16
16
"repository" : {
17
17
"type" : " git" ,
18
- "url" : " git+https://github.com/DevSnowflake/JSQL .git"
18
+ "url" : " git+https://github.com/DevSnowflake/json-sql-query .git"
19
19
},
20
20
"keywords" : [
21
21
" JSQL" ,
22
22
" SQL" ,
23
23
" Database" ,
24
24
" JavaScript" ,
25
25
" JSON" ,
26
- " JSONSQL"
26
+ " JSONSQL" ,
27
+ " sql-to-json" ,
28
+ " json-to-sql" ,
29
+ " nosql-to-sql" ,
30
+ " sql-to-nosql" ,
31
+ " simple-sql" ,
32
+ " sql2json" ,
33
+ " json2sql" ,
34
+ " json.sqlite"
27
35
],
28
36
"bugs" : {
29
- "url" : " https://github.com/DevSnowflake/JSQL /issues"
37
+ "url" : " https://github.com/DevSnowflake/json-sql-query /issues"
30
38
},
31
- "homepage" : " https://github.com/DevSnowflake/JSQL #readme" ,
39
+ "homepage" : " https://github.com/DevSnowflake/json-sql-query #readme" ,
32
40
"devDependencies" : {
33
41
"prettier" : " ^2.2.1"
34
42
}
Original file line number Diff line number Diff line change 1
1
import { AST } from 'node-sql-parser' ;
2
2
3
- declare module '@devsnowflake/jsql ' {
3
+ declare module 'json-sql-query ' {
4
4
export interface Handlers {
5
5
create : ( q : AST , db : Database ) => void ;
6
6
select : ( q : AST , db : Database ) => SelectOperation [ ] & ParseFunction ;
You can’t perform that action at this time.
0 commit comments