Skip to content

Fixes #240: Add Database Triggers Example to SDK#264

Merged
davideast merged 1 commit intomainfrom
add-database-triggers-example-2231257463971507578
Mar 10, 2026
Merged

Fixes #240: Add Database Triggers Example to SDK#264
davideast merged 1 commit intomainfrom
add-database-triggers-example-2231257463971507578

Conversation

@davideast
Copy link
Collaborator

Fixes #240

This PR adds a new example for triggering a Jules session based on a database event using PostgreSQL's LISTEN/NOTIFY.

Changes made

  • Created packages/core/examples/database-triggers/package.json with appropriate workspace dependencies and PostgreSQL driver (pg).
  • Created packages/core/examples/database-triggers/index.ts to implement a listening script that invokes jules.session() upon receiving a notification payload.
  • Added packages/core/examples/database-triggers/README.md containing instructions on how to set up the example and emit a notification using psql.
  • Updated packages/core/README.md to link to the new Database Triggers example.

I've ensured to use bun install for dependency setup and ran bun run build and npm run test --workspace=@google/jules-sdk to verify everything works and no tests are broken.


PR created automatically by Jules for task 2231257463971507578 started by @davideast

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions github-actions bot added the fleet-merge-ready Ready for fleet sequential merge label Mar 10, 2026
@github-actions github-actions bot added this to the Examples milestone Mar 10, 2026
@davideast davideast merged commit d215d2f into main Mar 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet-merge-ready Ready for fleet sequential merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fleet Execution] [Database Triggers Example]

1 participant