.to_dbt()
from a SQLChain (where output_directory
is an absolute path to your dbt /models folder).output_directory
path on your machine and raise an error if it does not exist.<model_name>.sql
file in the directory, where <model_name>
is the output_alias
of your SQLChain. If a file with this name already exists in this directory it will be overwritten.include_schema
param is passed as True
). If a schema.yml file already exists, it will be appended..to_dbt()
function requires an output_directory
parameter. All other parameters are optional.{output_alias}.sql
of SQLChain