micronaut-projects / micronaut-projects/micronaut-data

Hook to customize PreparedStatements before they are executed

Open
#3,312 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Java
Stars
482
Forks
229
Avg merge
1d 7h
Merged PRs (30d)
32

Description

Feature description

Some database drivers like Oracle's have useful features on PreparedStatement. One example is continuous query notification. Micronaut Data today can't be combined with these, because there's no way to get access to a PreparedStatement before it gets executed. It'd be useful to have a hook point which statements could be passed through after they're generated but before they're executed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the JDBC path where PreparedStatements are generated and executed, then determine how a customization hook could support driver-specific features. Done means callers can customize a PreparedStatement after generation but before execution, with coverage for the supported execution paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.