-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mjs
38 lines (36 loc) · 806 Bytes
/
config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const main = {
aws: {
bucket: 'BUCKET_NAME'
},
db: {
host: 'DB_HOST',
user: 'DB_USER',
database: 'DB_NAME',
password: 'DB_PASSWORD',
port: DB_PORT,
isServer: false,
ssl: { rejectUnauthorized: false}
},
exportHeader: false,
csvSeparator: ',',
enclosure: true
};
const rules = {
// Option 1: Specify tables you want to migrate...
specificTablesOnly: [
'TABLE_NAME'
],
// Option 2: ...or migrate anything and define regex to exclude some tables
excludeTablesPatterns: [
'EXCLUDED_TABLES_REGEX'
],
// Rules evalated in both options 1 and 2
excludeColumns: [
'table_name.table_column',
'table_name.table_column'
]
};
export {
main,
rules
};