aboutsummaryrefslogblamecommitdiffstats
path: root/packages/pipeline/src/ormconfig.ts
blob: 2fb6b3d3c80eab040b364c0a59cdd51af7513aac (plain) (tree)
1
2

                                            



















                            
                                   

                                                 
                       
                   
             
                                             
  
 
                        
import { ConnectionOptions } from 'typeorm';

import {
    Block,
    ExchangeCancelEvent,
    ExchangeCancelUpToEvent,
    ExchangeFillEvent,
    Relayer,
    SraOrder,
    Transaction,
} from './entities';

const entities = [
    Block,
    ExchangeCancelEvent,
    ExchangeCancelUpToEvent,
    ExchangeFillEvent,
    Relayer,
    SraOrder,
    Transaction,
];

const config: ConnectionOptions = {
    type: 'postgres',
    url: process.env.ZEROEX_DATA_PIPELINE_DB_URL,
    synchronize: false,
    logging: false,
    entities,
    migrations: ['./lib/migrations/**/*.js'],
};

module.exports = config;