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
17
17
```
18
18
19
19
### Usage
20
- ``` js
21
20
22
- import { SqlToNoSql } from ' sql-to-nosql' ;
21
+ ``` js
22
+ import { SqlToNoSql } from " sql-to-nosql" ;
23
23
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
+ });
29
29
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
+ );
31
33
32
- console .log (resp);
33
- /** ☝️ [{
34
+ console .log (resp);
35
+ /** ☝️ [{
34
36
_id: new ObjectId("622f07d56852c662cb8b953b"),
35
37
role: 'admin',
36
38
name: 'Arif Hossain',
37
39
email: 'devarifhossain@gmail.com',
38
40
__v: 0
39
41
}]*/
40
-
41
42
```
42
43
43
-
44
-
45
44
### Roadmap
46
45
47
46
- [ ] Database
Original file line number Diff line number Diff line change 35
35
"mongodb" : " ^6.1.0"
36
36
},
37
37
"type" : " module"
38
- }
38
+ }
You can’t perform that action at this time.
0 commit comments