> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://apidocs.polytomic.com/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server. # Polytomic Harbor Supports: * ✅ Models * ✅ Model sync destination * ✅ Bulk sync source * ✅ Bulk sync destination ## Connection ### Configuration #### Example ```json { "name": "Polytomic Harbor connection", "type": "polytomic_harbor", "configuration": {} } ``` ## Model Sync ### Source #### Configuration
NameTypeDescriptionRequired
query string false
table string Table false
view string View false
#### Example ```json { ... "configuration": { "query": "SELECT * from users", "table": "users", "view": "active_users" } } ``` ### Target Polytomic Harbor connections may be used as the destination in a model sync. #### All targets ##### Configuration
NameTypeDescriptionRequired
created_column string 'Created at' timestamp column false
preserve_table_on_resync boolean Preserve destination table when resyncing false
updated_column string 'Updated at' timestamp column false
write_record_timestamps boolean Write row timestamp metadata false
##### Example ```json { ... "target": { "configuration": { "created_column": "", "preserve_table_on_resync": false, "updated_column": "", "write_record_timestamps": false } } } ``` ### Target creation Polytomic Harbor connections may be used to create a new target for a model sync. The following parameters are required to create a new target:
NAME DESCRIPTION ENUM
name Table name false
## Bulk Sync ### Source Polytomic Harbor connections may be used as a bulk sync source. No additional configuration options are required. ### Destination #### Configuration
NameTypeDescriptionRequired
advanced object false
mirror_schemas boolean Mirror schemas false
schema string Output schema false
#### Example ```json { ... "destination_configuration": { "advanced": { "empty_strings_null": false, "hard_deletes": false, "initial_execution": "", "table_prefix": "", "truncate_existing": false }, "mirror_schemas": false, "schema": "schema" } } ``` ## Type handling ### Destination types | POLYTOMIC TYPE | POLYTOMIC HARBOR TYPE | |-----------------------------|----------------------------| | `array<>` | `VARCHAR[]` | | `bigint` | `BIGINT` | | `boolean` | `BOOLEAN` | | `date` | `DATE` | | `datetime` | `TIMESTAMP` | | `decimal(precision, scale)` | `DECIMAL(precision,scale)` | | `double` | `DOUBLE` | | `int` | `INTEGER` | | `json` | `JSON` | | `jsonarray` | `JSON` | | `number` | `DECIMAL(38,18)` | | `object{}` | `JSON` | | `single` | `REAL` | | `smallint` | `SMALLINT` | | `string` | `VARCHAR` | | `time` | `TIME` | ### Source types | POLYTOMIC HARBOR TYPE | POLYTOMIC TYPE | |-------------------------------|-----------------------------| | `BIGINT` | `bigint` | | `BPCHAR` | `string` | | `CHAR` | `string` | | `DATE` | `date` | | `DECIMAL` | `number` | | `DECIMAL(precision, scale)` | `decimal(precision, scale)` | | `DOUBLE` | `double` | | `FLOAT` | `single` | | `FLOAT4` | `single` | | `FLOAT8` | `double` | | `HUGEINT` | `bigint` | | `INTEGER` | `int` | | `INTERVAL` | `string` | | `LIST` | `array<>` | | `MAP()` | `object{}` | | `REAL` | `single` | | `SMALLINT` | `smallint` | | `STRING` | `string` | | `STRUCT()` | `object{}` | | `TEXT` | `string` | | `TIME` | `time` | | `TIME WITH TIME ZONE` | `time` | | `TIME WITHOUT TIME ZONE` | `time` | | `TIMESTAMP` | `datetime` | | `TIMESTAMP WITH TIME ZONE` | `datetime_tz` | | `TIMESTAMP WITHOUT TIME ZONE` | `datetime` | | `TIMESTAMPTZ` | `datetime_tz` | | `TIMETZ` | `time` | | `TINYINT` | `smallint` | | `UBIGINT` | `bigint` | | `UHUGEINT` | `bigint` | | `UINTEGER` | `int` | | `USMALLINT` | `smallint` | | `UTINYINT` | `smallint` | | `UUID` | `string` |