aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/ormconfig.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-20 08:30:34 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:03 +0800
commit4e6919a6e58d76766098262664c78f92d888337d (patch)
tree649bc1c711a498c6718f36994283f65c3e56aba1 /packages/pipeline/src/ormconfig.ts
parentd71fa6535987a0f13900f8e31dbb51772c12fc4f (diff)
downloaddexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.tar
dexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.tar.gz
dexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.tar.bz2
dexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.tar.lz
dexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.tar.xz
dexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.tar.zst
dexon-sol-tools-4e6919a6e58d76766098262664c78f92d888337d.zip
Add typeorm and begin inserting database records
Diffstat (limited to 'packages/pipeline/src/ormconfig.ts')
-rw-r--r--packages/pipeline/src/ormconfig.ts14
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',
+ },
+};