Skip to content

Commit 652e705

Browse files
committed
feat: Starts project.
1 parent ebd6ad9 commit 652e705

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ jobs:
77
build:
88
docker:
99
- image: circleci/node:8@sha256:ff2c2a3fd5105396697de4c20139435fe9f47d62716fa241d225122deb711d50
10-
- image: circleci/mysql:8.0.3@sha256:ea4c062323a944b9152137a62f5b2c8b3d5e235d98af66675871506a1bf6cc6e
10+
- image: mongo:3.7.9@sha256:736eec20a17eafaa988d299902fcaab521cb0ca56af4400f782576afc878d6bc
1111
environment:
1212
- NPM_CONFIG_LOGLEVEL: warn
13-
- KNEX_DATABASE: circle_test
14-
- KNEX_USER: root
1513
working_directory: ~/repo
1614
steps:
1715
- checkout

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@js-migrations/mongo",
3-
"version": "1.0.0",
4-
"description": "Implementation of the js-migrations RepoFacade using mongo",
3+
"version": "0.0.0-development",
4+
"description": "Implementation of the js-migrations RepoFacade using Mongo.",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/js-migrations/mongo"

readme.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# mongo
2-
> Implementation of the js-migrations RepoFacade using mongo
2+
> Implementation of the js-migrations RepoFacade using Mongo.
33
44
### Usage
55
1. Install it with `npm i @js-migrations/mongo`.
@@ -13,23 +13,18 @@ import connectToDb from '@js-migrations/mongo/dist/utils/connectToDb';
1313

1414
const migrationsRepoFacade = mongoMigrationsRepoFactory({
1515
db: connectToDb({
16-
client: 'mysql',
17-
connection: {
18-
database: 'todoapp',
19-
host: '127.0.0.1',
20-
password: 'pword',
21-
user: 'todouser',
22-
},
16+
dbName: 'your_db_name',
17+
url: 'mongodb://127.0.0.1',
2318
}),
2419
// Optional property.
25-
lockTableName: 'migrationsLock',
20+
collectionName: 'migrations',
21+
// Optional property.
22+
lockCollectionName: 'migrationsLock',
2623
// Optional property.
2724
migrations: [{
2825
down: async () => {},
2926
key: 'your_migration_name',
3027
up: async () => {},
3128
}],
32-
// Optional property.
33-
tableName: 'migrations',
3429
});
3530
```

src/factory.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as sourceMapSupport from 'source-map-support';
1+
import sourceMapSupport from 'source-map-support';
22
sourceMapSupport.install();
33

44
import serviceFactory from '@js-migrations/core/dist/factory';

0 commit comments

Comments
 (0)