2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Kobitoメトリクス

Last updated at Posted at 2014-04-29

Kobitoが保存しているSQLiteデータベース ~/Library/Kobito/Kobito.db を直接参照して調べる。

コードを書くのが面倒な場合は、SQLite ProfessionalやIDEのデータベース参照機能などのツールを使ってクエリを実行するのが吉。

念の為、Kobitoアプリは終了しておきSQLiteデータベース参照中はノートを更新しないか、別にファイルコピーしたSQLiteデータベースを参照したりすること。

ノートの数

ゴミ箱以外にあるノートの数。

SELECT COUNT(*) FROM ZITEM WHERE ZIN_TRASH IS NULL;

毎月のノート作成数

毎月どれくらいノートを作成しているか。

SELECT strftime('%Y-%m', ZCREATED_AT, 'unixepoch', 'localtime', '+31 years') AS m, count(*) AS c
 FROM ZITEM WHERE 1 GROUP BY strftime('%Y-%m', ZCREATED_AT, 'unixepoch', 'localtime', '+31 years');
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?