Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
- Initial commit.
  • Loading branch information
kethinov committed Oct 18, 2022
1 parent 58a2020 commit 8adbcb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Then you can configure `multi-db` and connect to your database.
### Connecting to a database using multi-db

```javascript
const db = await require('multi-db')(config) // config object is optional
const db = await require('multi-db-driver')(config) // config object is optional
```

That will load a `multi-db` config and connect to your chosen database.
Expand Down Expand Up @@ -262,7 +262,7 @@ Replace the `[...]` part in the above examples with the path to where your copy
When you connect to a database using `multi-db` like in the below example, the constructor will return a `db` object.

```javascript
const db = await require('multi-db')(config)
const db = await require('multi-db-driver')(config) // config object is optional
```

This is the structure of the `db` object that `multi-db` returns:
Expand Down

0 comments on commit 8adbcb4

Please sign in to comment.