Menu dokumentacji

Canny#

Połącz Canny za pomocą klucza API. Źródło zapisuje 8 stałych tabel w schemacie titan.canny.

sql
select
  id,
  name,
  created
from titan.canny.boards
limit 10

Połącz Canny#

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

  2. Podaj klucz API.

  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#

Tablice, wpisy, głosy, komentarze, użytkownicy, wpisy dziennika zmian, tagi i zmiany statusu 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#

boards#

titan.canny.boards ma 5 kolumn źródłowych.

canny.boards5 kolumn
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

createddatetime

Pole źródłowe created.

urlstring

Pole źródłowe url.

post_countinteger

Pole źródłowe postCount.

posts#

titan.canny.posts ma 9 kolumn źródłowych.

canny.posts9 kolumn
idstringpk

Pole źródłowe id.

titlestring

Pole źródłowe title.

detailsstring

Pole źródłowe details.

statusstring

Pole źródłowe status.

scoreinteger

Pole źródłowe score.

comment_countinteger

Pole źródłowe commentCount.

author_idstring

Pole źródłowe authorID.

board_idstring

Pole źródłowe boardID.

createddatetime

Pole źródłowe created.

votes#

titan.canny.votes ma 4 kolumny źródłowe.

canny.votes4 kolumny
idstringpk

Pole źródłowe id.

post_idstring

Pole źródłowe postID.

voter_idstring

Pole źródłowe voterID.

createddatetime

Pole źródłowe created.

comments#

titan.canny.comments ma 5 kolumn źródłowych.

canny.comments5 kolumn
idstringpk

Pole źródłowe id.

post_idstring

Pole źródłowe postID.

author_idstring

Pole źródłowe authorID.

valuestring

Pole źródłowe value.

createddatetime

Pole źródłowe created.

users#

titan.canny.users ma 5 kolumn źródłowych.

canny.users5 kolumn
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

emailstring

Pole źródłowe email.

createddatetime

Pole źródłowe created.

user_idstring

Pole źródłowe userID.

changelog_entries#

titan.canny.changelog_entries ma 4 kolumny źródłowe.

canny.changelog_entries4 kolumny
idstringpk

Pole źródłowe id.

titlestring

Pole źródłowe title.

statusstring

Pole źródłowe status.

published_atdatetime

Pole źródłowe publishedAt.

tags#

titan.canny.tags ma 4 kolumny źródłowe.

canny.tags4 kolumny
idstringpk

Pole źródłowe id.

namestring

Pole źródłowe name.

board_idstring

Pole źródłowe boardID.

createddatetime

Pole źródłowe created.

status_changes#

titan.canny.status_changes ma 5 kolumn źródłowych.

canny.status_changes5 kolumn
idstringpk

Pole źródłowe id.

post_idstring

Pole źródłowe postID.

statusstring

Pole źródłowe status.

changer_idstring

Pole źródłowe changerID.

createddatetime

Pole źródłowe created.

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.