ドキュメントメニュー

Canny#

API キーを使って Canny を接続します。このソースは titan.canny に 8 個の固定テーブルを書き込みます。

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

Cannyを接続する#

  1. アプリを開き、アプリを接続を選択してから、Cannyを選択します。

  2. API キーを入力します。

  3. テーブルを確認してからソースを保存します。

  4. 初回の実行が完了するまで同期履歴を確認します。

認証情報はシークレットとして保存されます。レイクの列になったり、クエリ結果に表示されたりすることはありません。

同期の動作#

ボード、投稿、投票、コメント、ユーザー、変更履歴の項目、タグ、ステータス変更をまとめて同期します。

新しいソースは接続時に同期し、その後はスケジュールに従います。デフォルトのスケジュールでは、組織のタイムゾーンで平日の 5:00、10:00、15:00、20:00 と日曜日の 20:00 に同期し、各ソースはその時刻から 30 分以内に開始します。実行が中断しても、完了した進捗を保持して安全に再試行します。

すべてのレイクのテーブルにはシステム列 _synced_at と _deleted もあります。以下の列リファレンスにはソースの列のみを記載しています。

テーブルリファレンス#

boards#

titan.canny.boards には 5 個のソース列があります。

canny.boards5列
idstringpk

ソースのフィールド id。

namestring

ソースのフィールド name。

createddatetime

ソースのフィールド created。

urlstring

ソースのフィールド url。

post_countinteger

ソースのフィールド postCount。

posts#

titan.canny.posts には 9 個のソース列があります。

canny.posts9列
idstringpk

ソースのフィールド id。

titlestring

ソースのフィールド title。

detailsstring

ソースのフィールド details。

statusstring

ソースのフィールド status。

scoreinteger

ソースのフィールド score。

comment_countinteger

ソースのフィールド commentCount。

author_idstring

ソースのフィールド authorID。

board_idstring

ソースのフィールド boardID。

createddatetime

ソースのフィールド created。

votes#

titan.canny.votes には 4 個のソース列があります。

canny.votes4列
idstringpk

ソースのフィールド id。

post_idstring

ソースのフィールド postID。

voter_idstring

ソースのフィールド voterID。

createddatetime

ソースのフィールド created。

comments#

titan.canny.comments には 5 個のソース列があります。

canny.comments5列
idstringpk

ソースのフィールド id。

post_idstring

ソースのフィールド postID。

author_idstring

ソースのフィールド authorID。

valuestring

ソースのフィールド value。

createddatetime

ソースのフィールド created。

users#

titan.canny.users には 5 個のソース列があります。

canny.users5列
idstringpk

ソースのフィールド id。

namestring

ソースのフィールド name。

emailstring

ソースのフィールド email。

createddatetime

ソースのフィールド created。

user_idstring

ソースのフィールド userID。

changelog_entries#

titan.canny.changelog_entries には 4 個のソース列があります。

canny.changelog_entries4列
idstringpk

ソースのフィールド id。

titlestring

ソースのフィールド title。

statusstring

ソースのフィールド status。

published_atdatetime

ソースのフィールド publishedAt。

tags#

titan.canny.tags には 4 個のソース列があります。

canny.tags4列
idstringpk

ソースのフィールド id。

namestring

ソースのフィールド name。

board_idstring

ソースのフィールド boardID。

createddatetime

ソースのフィールド created。

status_changes#

titan.canny.status_changes には 5 個のソース列があります。

canny.status_changes5列
idstringpk

ソースのフィールド id。

post_idstring

ソースのフィールド postID。

statusstring

ソースのフィールド status。

changer_idstring

ソースのフィールド changerID。

createddatetime

ソースのフィールド created。

削除と履歴#

行はソースのキーでマージされます。ソース側で行の削除を確認できた場合、Supernova は行を残して _deleted を設定します。クエリで履歴を含めるかどうかを選べます。現在の状態だけを取得するには where not _deleted で絞り込んでください。