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 .
33
44# Installing
55
66``` sh
7- $ npm i --save @devsnowflake/jsql
7+ $ npm i --save json-sql-query
88```
99
1010> Note: This library is very new and does not support most of the statements
1111
1212# Example
1313
1414``` js
15- const { Database } = require (" @devsnowflake/jsql " );
15+ const { Database } = require (" json-sql-query " );
1616
1717// file based
1818const db = new Database (" ./database.json" );
Original file line number Diff line number Diff line change 11{
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 ." ,
55 "main" : " index.js" ,
66 "types" : " typings/index.d.ts" ,
77 "scripts" : {
1515 },
1616 "repository" : {
1717 "type" : " git" ,
18- "url" : " git+https://github.com/DevSnowflake/JSQL .git"
18+ "url" : " git+https://github.com/DevSnowflake/json-sql-query .git"
1919 },
2020 "keywords" : [
2121 " JSQL" ,
2222 " SQL" ,
2323 " Database" ,
2424 " JavaScript" ,
2525 " 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"
2735 ],
2836 "bugs" : {
29- "url" : " https://github.com/DevSnowflake/JSQL /issues"
37+ "url" : " https://github.com/DevSnowflake/json-sql-query /issues"
3038 },
31- "homepage" : " https://github.com/DevSnowflake/JSQL #readme" ,
39+ "homepage" : " https://github.com/DevSnowflake/json-sql-query #readme" ,
3240 "devDependencies" : {
3341 "prettier" : " ^2.2.1"
3442 }
Original file line number Diff line number Diff line change 11import { AST } from 'node-sql-parser' ;
22
3- declare module '@devsnowflake/jsql ' {
3+ declare module 'json-sql-query ' {
44 export interface Handlers {
55 create : ( q : AST , db : Database ) => void ;
66 select : ( q : AST , db : Database ) => SelectOperation [ ] & ParseFunction ;
You can’t perform that action at this time.
0 commit comments