---
title: Canny
description: Cannyを接続して同期の動作を把握し、書き込まれるすべてのテーブルと列をクエリします。
species: reference
---
# Canny

API キーを使って Canny を接続します。このソースは `titan.canny` に 8 個の固定テーブルを書き込みます。
```sql
select
  id,
  name,
  created
from titan.canny.boards
limit 10
```

## Cannyを接続する

1. **アプリ**を開き、**アプリを接続**を選択してから、**Canny**を選択します。
2. API キーを入力します。
3. テーブルを確認してからソースを保存します。
4. 初回の実行が完了するまで**同期履歴**を確認します。

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

## 同期の動作

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

新しいソースは接続時に同期し、その後はスケジュールに従います。デフォルトの繰り返し間隔は 4 時間です。実行が中断しても、完了した進捗を保持して安全に再試行します。

すべてのレイクのテーブルには[システム列](/docs/concepts/your-lake#システム列) `_synced_at` と `_deleted` もあります。以下の列リファレンスにはソースの列のみを記載しています。

## テーブルリファレンス

### `boards`

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

```columns table=canny.boards
id                                      string pk           ソースのフィールド `id`。
name                                    string              ソースのフィールド `name`。
created                                 datetime            ソースのフィールド `created`。
url                                     string              ソースのフィールド `url`。
post_count                              integer             ソースのフィールド `postCount`。
```

### `posts`

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

```columns table=canny.posts
id                                      string pk           ソースのフィールド `id`。
title                                   string              ソースのフィールド `title`。
details                                 string              ソースのフィールド `details`。
status                                  string              ソースのフィールド `status`。
score                                   integer             ソースのフィールド `score`。
comment_count                           integer             ソースのフィールド `commentCount`。
author_id                               string              ソースのフィールド `authorID`。
board_id                                string              ソースのフィールド `boardID`。
created                                 datetime            ソースのフィールド `created`。
```

### `votes`

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

```columns table=canny.votes
id                                      string pk           ソースのフィールド `id`。
post_id                                 string              ソースのフィールド `postID`。
voter_id                                string              ソースのフィールド `voterID`。
created                                 datetime            ソースのフィールド `created`。
```

### `comments`

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

```columns table=canny.comments
id                                      string pk           ソースのフィールド `id`。
post_id                                 string              ソースのフィールド `postID`。
author_id                               string              ソースのフィールド `authorID`。
value                                   string              ソースのフィールド `value`。
created                                 datetime            ソースのフィールド `created`。
```

### `users`

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

```columns table=canny.users
id                                      string pk           ソースのフィールド `id`。
name                                    string              ソースのフィールド `name`。
email                                   string              ソースのフィールド `email`。
created                                 datetime            ソースのフィールド `created`。
user_id                                 string              ソースのフィールド `userID`。
```

### `changelog_entries`

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

```columns table=canny.changelog_entries
id                                      string pk           ソースのフィールド `id`。
title                                   string              ソースのフィールド `title`。
status                                  string              ソースのフィールド `status`。
published_at                            datetime            ソースのフィールド `publishedAt`。
```

### `tags`

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

```columns table=canny.tags
id                                      string pk           ソースのフィールド `id`。
name                                    string              ソースのフィールド `name`。
board_id                                string              ソースのフィールド `boardID`。
created                                 datetime            ソースのフィールド `created`。
```

### `status_changes`

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

```columns table=canny.status_changes
id                                      string pk           ソースのフィールド `id`。
post_id                                 string              ソースのフィールド `postID`。
status                                  string              ソースのフィールド `status`。
changer_id                              string              ソースのフィールド `changerID`。
created                                 datetime            ソースのフィールド `created`。
```

## 削除と履歴

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