Skip to content

Commit

Permalink
Merge pull request #3 from mongodb-developer/load-sql-file-option
Browse files Browse the repository at this point in the history
Load sql file option
  • Loading branch information
dfreniche authored Jul 30, 2024
2 parents 60c8c58 + 7715fe3 commit 77c12f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/20-prerequisites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ docker run -p 5432:5432 sample-postgres-library
```
The PostgreSQL server can be accessed at localhost:5432 with a username of `postgres` and a password of `postgres`.

### Option 4: Load an SQL file
Choose this option if you just want a quick hands-on experience and you don't need to run actual migration.
Download the file [library-schema.sql](https://github.com/mongodb-developer/relational-migrator-lab/blob/main/resource/library-schema.sql)
and upload this file later on at the **create a project** step. However, you will not be able to perform an actual migration if you not have a source database.

## 2. MongoDB Database

As we'll be importing data from a Relational Database into MongoDB, you'll need to have a MongoDB database. You have a
Expand Down
4 changes: 3 additions & 1 deletion docs/50-Create a Project/50-create-new-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Ensure Relational Migrator is installed and running (normally at http://127.0.0.

<Screenshot url="https://www.mongodb.com/products/tools/relational-migrator" src="img/50-image-001.png" alt="Screenshot of the connect modal" />

## Click Connect to live database
## Select an option
1. Click **Connect to live database**
2. Click **Load schema from a file** if you NOT have access to a source database.

<Screenshot url="https://www.mongodb.com/products/tools/relational-migrator" src="img/50-image-002.png" alt="Screenshot of the connect modal" />

0 comments on commit 77c12f9

Please sign in to comment.