Send a Slack notification whenever new high-value orders appear in your PostgreSQL database.
- Queries PostgreSQL for orders above a threshold (e.g. > £1,000)
- Sends a Slack message per order via Incoming Webhook
- Uses incremental sync — only processes new orders since last run
drt init # select "postgres" as sourceEdit ~/.drt/profiles.yml:
default:
type: postgres
host: localhost
port: 5432
dbname: your_database
user: your_user
password_env: POSTGRES_PASSWORDCreate an Incoming Webhook in Slack, then set the environment variable:
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/YOUR/WEBHOOK/URL"drt runpostgres_to_slack/
├── drt_project.yml
├── syncs/
│ ├── alert_high_value_orders.yml
│ └── models/
│ └── high_value_orders.sql
└── README.md