aboutsummaryrefslogblamecommitdiffstats
path: root/packages/pipeline/src/ormconfig.ts
blob: eaafeb7d5139c7bc85270318169cb5fbabb4854e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                            
                                              










                                                 




                                                 
                   






                                                 
import { ConnectionOptions } from 'typeorm';

export const testConfig: ConnectionOptions = {
    type: 'sqlite',
    database: 'database.sqlite',
    synchronize: true,
    logging: false,
    entities: ['./lib/src/entities/**/*.js'],
    migrations: ['./lib/src/migrations/**/*.js'],
    cli: {
        entitiesDir: 'lib/src/entities',
        migrationsDir: 'lib/src/migrations',
    },
};

export const deployConfig: ConnectionOptions = {
    type: 'postgres',
    url: process.env.ZEROEX_DATA_PIPELINE_DB_URL,
    synchronize: true,
    logging: false,
    entities: ['./lib/src/entities/**/*.js'],
    migrations: ['./lib/src/migrations/**/*.js'],
    cli: {
        entitiesDir: 'lib/src/entities',
        migrationsDir: 'lib/src/migrations',
    },
};