Menu dokumentacji

Postmark#

Połącz Postmark za pomocą tokenów API serwera i konta. Źródło zapisuje 5 stałych tabel w schemacie titan.postmark.

sql
select
  id,
  name,
  description
from titan.postmark.message_streams
limit 10

Połącz Postmark#

  1. Otwórz Aplikacje, wybierz Połącz aplikację, a następnie Postmark.

  2. Podaj tokeny API serwera i konta.

  3. Sprawdź tabele, a następnie zapisz źródło.

  4. Obserwuj Historię synchronizacji, aż pierwsze uruchomienie się zakończy.

Dane uwierzytelniające są przechowywane jako sekrety. Nigdy nie stają się kolumnami jeziora ani nie pojawiają się w wynikach zapytań.

Sposób synchronizacji#

Strumienie wiadomości, wiadomości wychodzące, odbicia, szablony i podpisy nadawców są synchronizowane razem.

Nowe źródło synchronizuje się po połączeniu, a następnie zgodnie z harmonogramem. Domyślny interwał cykliczny wynosi 4 godziny. Przerwane uruchomienie zachowuje ukończone postępy i jest bezpiecznie ponawiane.

Każda tabela jeziora ma też kolumny systemowe _synced_at i _deleted; poniższa dokumentacja kolumn obejmuje wyłącznie kolumny źródłowe.

Dokumentacja tabel#

message_streams#

titan.postmark.message_streams ma 6 kolumn źródłowych.

postmark.message_streams6 kolumn
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

descriptionstring

Pole źródłowe description.

message_stream_typestring

Pole źródłowe messageStreamType.

created_atdatetime

Pole źródłowe createdAt.

updated_atdatetime

Pole źródłowe updatedAt.

outbound_messages#

titan.postmark.outbound_messages ma 8 kolumn źródłowych.

postmark.outbound_messages8 kolumn
message_idstringpk

Pole źródłowe messageID.

tojson

Pole źródłowe to.

fromstring

Pole źródłowe from.

subjectstring

Pole źródłowe subject.

statusstring

Pole źródłowe status.

received_atdatetime

Pole źródłowe receivedAt.

tagstring

Pole źródłowe tag.

message_streamstring

Pole źródłowe messageStream.

bounces#

titan.postmark.bounces ma 8 kolumn źródłowych.

postmark.bounces8 kolumn
idintegerpk

Pole źródłowe id.

typestring

Pole źródłowe type.

message_idstring

Pole źródłowe messageID.

descriptionstring

Pole źródłowe description.

bounced_atdatetime

Pole źródłowe bouncedAt.

emailstring

Pole źródłowe email.

subjectstring

Pole źródłowe subject.

message_streamstring

Pole źródłowe messageStream.

templates#

titan.postmark.templates ma 5 kolumn źródłowych.

postmark.templates5 kolumn
template_idintegerpk

Pole źródłowe templateId.

namestring

Pole źródłowe name.

subjectstring

Pole źródłowe subject.

activeboolean

Pole źródłowe active.

template_typestring

Pole źródłowe templateType.

sender_signatures#

titan.postmark.sender_signatures ma 5 kolumn źródłowych.

postmark.sender_signatures5 kolumn
idintegerpk

Pole źródłowe id.

domainstring

Pole źródłowe domain.

email_addressstring

Pole źródłowe emailAddress.

confirmedboolean

Pole źródłowe confirmed.

created_atdatetime

Pole źródłowe createdAt.

Usunięcia i historia#

Wiersze są scalane według klucza źródłowego. Gdy źródło może potwierdzić usunięcie wiersza, Supernova zachowuje go i ustawia _deleted, dzięki czemu zapytania mogą zdecydować, czy uwzględniać historię. Aby pobierać bieżący stan, filtruj zapytania przez where not _deleted.