0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

よく使うdbtコマンドまとめ

Posted at

初めに

最近、dbtを使用することがよくあるのでよく使うコマンドを備忘録としてまとめました。

dbtとは

dbt(data build tool) は、データエンジニアリングにおいて SQLを使ってデータ変換(Transform)処理を管理・実行 するためのツール。

簡単にいうと、SQLやモデル(テーブル)をコードとして管理できる。

コマンド一覧

dbtコマンド
# dbtをbuild(run + test)したい
$ dbt build
$ dbt build --select "models/----------" #特定データセットのみに絞る

# dbtの状態を確認したい
$ dbt debug

# dbtを走らせたい
$ dbt run

# dbtをテストしたい
$ dbt test

# dbtをコンパイルしたい
$ dbt compile 

最後に

最後まで閲覧いただきありがとうございました。
ご意見、ご指摘ありましたら、コメントお願いいたします。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?