diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-20 08:30:34 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:23 +0800 |
commit | bd7bde9bb02a4d51f3a65e255262caf5f5072cd4 (patch) | |
tree | 1c193d47f14b1147faceeb0266fd08cc1ec7cc3e /packages/pipeline/src/ormconfig.ts | |
parent | a6e5d126c37e03c50aa4b9b77eee1cce78dc2d9b (diff) | |
download | dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.tar dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.tar.gz dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.tar.bz2 dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.tar.lz dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.tar.xz dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.tar.zst dexon-sol-tools-bd7bde9bb02a4d51f3a65e255262caf5f5072cd4.zip |
Add typeorm and begin inserting database records
Diffstat (limited to 'packages/pipeline/src/ormconfig.ts')
-rw-r--r-- | packages/pipeline/src/ormconfig.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/pipeline/src/ormconfig.ts b/packages/pipeline/src/ormconfig.ts new file mode 100644 index 000000000..48e316078 --- /dev/null +++ b/packages/pipeline/src/ormconfig.ts @@ -0,0 +1,14 @@ +import { ConnectionOptions } from 'typeorm'; + +export const config: 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', + }, +}; |