Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2023 05:11 PM
name: my_project
version: 1.0.0
config-version: 2
# Set the name of the target profile
profiles:
my_target_profile:
target_name: prod # or uat, or any name you want
# Set the target in your models
models:
my_model:
schema: my_schema
database: my_database
target: prod # or uat, or any name you wantIn this example, we have specified a target profile named my_target_profile with a target_name of 'prod'. We have also set the target parameter in the my_model model to 'prod'. You can change this to 'uat' or any other name you want, depending on your needs.
By setting the target parameter in your models, you can change the behavior of the models based on the environment you're running in.