> 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
<table>
<thead>
<tr>
<th>Name</th><th>Type</th><th>Description</th><th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>query</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;"></td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>table</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">Table</td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>view</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">View</td>
<td><code>false</code></td>
</tr>
</tbody>
</table>


#### 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
<table>
<thead>
<tr>
<th>Name</th><th>Type</th><th>Description</th><th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>created_column</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">'Created at' timestamp column</td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>preserve_table_on_resync</code></td>
<td><code>boolean</code></td>
<td style="vertical-align: top;">Preserve destination table when resyncing</td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>updated_column</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">'Updated at' timestamp column</td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>write_record_timestamps</code></td>
<td><code>boolean</code></td>
<td style="vertical-align: top;">Write row timestamp metadata</td>
<td><code>false</code></td>
</tr>
</tbody>
</table>


##### 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:

<table>
<thead>
<tr>
  <th>NAME</th>
  <th>DESCRIPTION</th>
  <th>ENUM</th>
</tr></thead>
<tbody>
<tr>
  <td>name</td>
  <td>Table name</td>
  <td>false</td>
</tr>

</tbody>
</table>




## Bulk Sync
### Source
Polytomic Harbor connections may be used as a bulk sync source. No additional configuration options are required.

### Destination
#### Configuration
<table>
<thead>
<tr>
<th>Name</th><th>Type</th><th>Description</th><th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>advanced</code></td>
<td><code>object</code></td>
<td style="vertical-align: top;"></td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>mirror_schemas</code></td>
<td><code>boolean</code></td>
<td style="vertical-align: top;">Mirror schemas</td>
<td><code>false</code></td>
</tr>
<tr>
<td><code>schema</code></td>
<td><code>string</code></td>
<td style="vertical-align: top;">Output schema</td>
<td><code>false</code></td>
</tr>
</tbody>
</table>


#### 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`                    |