Skip to content

Document SQL generation review guidance#20

Open
akshithg wants to merge 1 commit into
letsencrypt:mainfrom
trailofbits:docs/sql-generation-review
Open

Document SQL generation review guidance#20
akshithg wants to merge 1 commit into
letsencrypt:mainfrom
trailofbits:docs/sql-generation-review

Conversation

@akshithg

Copy link
Copy Markdown

Summary

This draft adds a short SQL generation review guide and links it from the README.

The guide is intended to capture the invariants that came up while reviewing borp's generated SQL paths: separating borp-emitted SQL syntax from bind parameters and caller-owned SQL fragments, keeping generated identifiers in identifier context, considering cached query plans, and testing dialect-specific behavior.

This is proposed as a starting point rather than final project policy. Before landing, it would benefit from maintainer review for wording, scope, and whether the listed representative code anchors match how maintainers want future SQL-generation changes reviewed.

Verification

  • git diff --check
  • Documentation-only change; package tests were not run.

@akshithg

Copy link
Copy Markdown
Author

cc @aarongable @beautifulentropy

@aarongable aarongable requested review from a team and beautifulentropy and removed request for a team June 22, 2026 21:22
@aarongable aarongable marked this pull request as ready for review June 22, 2026 21:22
@aarongable aarongable requested a review from a team as a code owner June 22, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant