Connector kit kind options

Look up the options a kind takes in the connector kit, and what each does to a row in Marfa and to what goes back to the vendor.

A kind is one sort of record a connector built on the connector kit brings, such as an issue or a highlight. A connector has at most ten. Each kind has a name in lowercase snake case, a direction (in, out or both), a type (the type definition) and the fields the vendor holds.

Options

Every option is optional.

OptionWhat it does
readOnlyFields the vendor holds that are never carried back. A change to one in Marfa is put back on the next run, from what the connector last wrote, and the run names the field. It can also name connection types the vendor can't change, such as the repository an issue sits in.
derivedRead-only fields that say where a row sits, not what happened to it. A change in one never brings a row back from the bin.
reviveWhen true, a row in the bin comes back when the vendor changes it, once its trash has reached the vendor.
retiredProperties an earlier version wrote and this one doesn't. The next write of a row removes them.
archived(properties)Whether the vendor holds the row archived. A row the connector archived stays archived while this says so, and comes back otherwise. It archives nothing itself.
unreadable(field, value)Whether a row's stored value for a field is one the connector can't read, such as an entry in a shape its type no longer has.
policy(item, entry, archiving)A RowPolicy for one row: whether the connector owns it, and whether each field is mirrored, carried or only kept.

Every field is read only for a connector without onChange, and for a type its carries(env) leaves out, so any kind can run read only.

An unreadable value

For a row whose stored value unreadable flags, the field behaves as a read-only one:

  • The value never goes back to the vendor. A change to it in Marfa is put back from the vendor's value.
  • The next read rewrites it. Where neither side changed it since the last agreement, the vendor's value replaces it, in the shape the connector reads.

A row whose stored value is readable is unaffected. The GitHub connector uses it for assignees entries held in an older shape.

On this page