An open API service indexing awesome lists of open source software.

https://github.com/web3-storage/db-migration-pipeline


https://github.com/web3-storage/db-migration-pipeline

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# db-migration-pipeline

Migration pipeline to move data from Fauna DB into Postgres.

## Setup

```sh
npm install
```

To run locally you will need the following in your `.env.local` file:

```ini
# Running environment (dev, staging, production)
ENV=dev

# Fauna keys
DEV_FAUNA_KEY=
STAGING_FAUNA_KEY=
PRODUCTION_FAUNA_KEY=

# Postgres keys
DEV_PG_CONNECTION=
STAGING_PG_CONNECTION=
PRODUCTION_PG_CONNECTION=
```

## Usage

### Full Migration

```sh
node bin.js full
```

### Partial Migration

```sh
node bin.js partial
```

### Full Fauna Dump

```sh
node bin.js fauna-dump
```