-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json.example_all
More file actions
57 lines (57 loc) · 1.71 KB
/
config.json.example_all
File metadata and controls
57 lines (57 loc) · 1.71 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"initial_targets": [
{
"table": "public.target_table",
"percent": 10
},
{
"table": "public.users",
"where": "split_part(email, '@', 2) = 'hotmail.com'"
}
],
"db_type": "postgres",
"source_db_connection_info": {
"user_name": "user",
"host": "host.host.com",
"db_name": "source_db",
"port": 5432
},
"destination_db_connection_info": {
"user_name": "user",
"host": "host.host.com",
"db_name": "destination_db",
"password": "if you don't include a password option, you will be prompted every time",
"port": 5432
},
"keep_disconnected_tables": false,
"upstream_filters": [
{
"table": "public.an_upstream_table",
"condition": "timestamp > '01-01-2001'"
},
{
"column": "condition_applied_to_any_table_with_this_column",
"condition": "condition_applied_to_any_table_with_this_column > 42"
}
],
"max_rows_per_table": 100000,
"excluded_tables": [
"public.table_to_ignore", "public.spatial_ref_sys"
],
"passthrough_tables": [
"public.table_of_settings", "public.table_of_constants"
],
"dependency_breaks": [
{"fk_table": "schema2.table2", "target_table": "schema3.table3"}
],
"fk_augmentation": [
{
"fk_table": "public.fk_table",
"fk_columns": ["user_id"],
"target_table": "public.user",
"target_columns": ["id"]
}
],
"pre_constraint_sql":["DELETE FROM table where non_nullable_column IS NULL"],
"post_subset_sql": ["UPDATE a_table SET a_column = 'value'"]
}