File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -17,31 +17,30 @@ npm insall sql-to-nosql
1717```
1818
1919### Usage
20- ``` js
2120
22- import { SqlToNoSql } from ' sql-to-nosql' ;
21+ ``` js
22+ import { SqlToNoSql } from " sql-to-nosql" ;
2323
24- const runner = new SqlToNoSql ({
25- srcDBtype: " postgresql" ,
26- destDBtype: " mongodb" ,
27- connection: " YOUR_DIST_DB_CONNECTION_STRING"
28- });
24+ const runner = new SqlToNoSql ({
25+ srcDBtype: " postgresql" ,
26+ destDBtype: " mongodb" ,
27+ connection: " YOUR_DIST_DB_CONNECTION_STRING" ,
28+ });
2929
30- const resp = await runner .run (" select * from users where email = devarifhossain@gmail.com" );
30+ const resp = await runner .run (
31+ " select * from users where email = devarifhossain@gmail.com" ,
32+ );
3133
32- console .log (resp);
33- /** ☝️ [{
34+ console .log (resp);
35+ /** ☝️ [{
3436 _id: new ObjectId("622f07d56852c662cb8b953b"),
3537 role: 'admin',
3638 name: 'Arif Hossain',
3739 email: 'devarifhossain@gmail.com',
3840 __v: 0
3941 }]*/
40-
4142```
4243
43-
44-
4544### Roadmap
4645
4746- [ ] Database
Original file line number Diff line number Diff line change 3535 "mongodb" : " ^6.1.0"
3636 },
3737 "type" : " module"
38- }
38+ }
You can’t perform that action at this time.
0 commit comments