From 0369796e5ccf1edf1d41f5d40654cd794efe7e35 Mon Sep 17 00:00:00 2001 From: cohms <73711838+cohms@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:08:06 -0600 Subject: [PATCH] Update README.md Added example on the right syntax for using multiple arguments to generate_source in the Cloud IDE --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 481b07f..50056a8 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,12 @@ the schema to your source definition ``` {{ codegen.generate_source('raw_jaffle_shop') }} +``` + + or for multiple arguments + +``` +{{ codegen.generate_source(schema_name= 'jaffle_shop', database_name= 'raw') }} ``` Alternatively, call the macro as an [operation](https://docs.getdbt.com/docs/using-operations): @@ -333,4 +339,4 @@ final as ( select * from final ``` -4. Replace the contents of the model's current SQL file with the compiled or logged code \ No newline at end of file +4. Replace the contents of the model's current SQL file with the compiled or logged code