Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

make-sql-stage.sh 335 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. #!/bin/sh
  2. # This script automates setting up the DVC jobs for an SQL stage.
  3. set -e
  4. set -x
  5. script="$1"; shift
  6. dvc run -o "$script.transcript" -f "$script.dvc" -d "$script.sql" "$@" python ../run.py sql-script "$script".sql
  7. dvc run -O "$script.status" -d "$script.transcript" --always-changed python ../run.py stage-status "$script"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...