Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added example on the right syntax for using multiple arguments to generate_source in the Cloud IDE
  • Loading branch information
cohms authored Jun 14, 2023
1 parent 2012ee8 commit 0369796
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
4. Replace the contents of the model's current SQL file with the compiled or logged code

0 comments on commit 0369796

Please sign in to comment.