Configuring your connectionsConnection configurations
Google Cloud PostgreSQL
Connection
Description
Configuration
NAME | TYPE | DESCRIPTION | REQUIRED | READONLY |
---|---|---|---|---|
connection_name | string | Takes the form of project:region:instance | true | false |
database | string | true | false | |
username | string | false | false | |
password | string | May be omitted when authenticating to Postgres using the service account key. | false | false |
credentials | string | true | false | |
change_detection | boolean | false | false | |
publication | string | false | false |
Example
1 { 2 "name": "googlecloudsql connection", 3 "type": "googlecloudsql", 4 "configuration": { 5 "change_detection": false, 6 "connection_name": "project:region:instance", 7 "credentials": "", 8 "database": "sampledb", 9 "password": "secret", 10 "publication": "polytomic", 11 "username": "cloudsql" 12 } 13 }
Model Sync
Source
Configuration
NAME | TYPE | DESCRIPTION | REQUIRED | READONLY |
---|---|---|---|---|
query | string | false | false | |
table | string | Table | false | false |
view | string | View | false | false |
Example
1 { 2 ... 3 "configuration": { 4 "query": "SELECT * from users", 5 "table": "users", 6 "view": "active_users" 7 } 8 }
Target
Configuration
NAME | TYPE | DESCRIPTION | REQUIRED | READONLY |
---|---|---|---|---|
preserve_table_on_resync | boolean | Preserve destination table when resyncing | false | false |
Example
1 { 2 ... 3 "target": { 4 "configuration": { 5 "preserve_table_on_resync": false 6 } 7 } 8 }
Bulk Sync
Source
Configuration
NAME | TYPE | DESCRIPTION | REQUIRED | READONLY |
---|---|---|---|---|
replication_slot | string | Leave blank to allow Polytomic to manage a replication slot for this sync. | false | false |
Example
1 { 2 ... 3 "source_configuration": { 4 "replication_slot": "polytomic" 5 } 6 }
Destination
Configuration
NAME | TYPE | DESCRIPTION | REQUIRED | READONLY |
---|---|---|---|---|
advanced | object | false | false | |
schema | string | Output schema to write to | false | false |
mirror_schemas | boolean | Indicates whether schemas should be mirrored | false | false |
Example
1 { 2 ... 3 "destination_configuration": { 4 "advanced": { 5 "table_prefix": "", 6 "truncate_existing": false 7 }, 8 "mirror_schemas": false, 9 "schema": "public" 10 } 11 }