Skip to content

Commit f9ff9d1

Browse files
authored
Merge pull request #6 from ariflogs/dev
fixed pritter errors
2 parents d3ad289 + 2b7b004 commit f9ff9d1

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
"mongodb": "^6.1.0"
3636
},
3737
"type": "module"
38-
}
38+
}

0 commit comments

Comments
 (0)