Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically strip out any comments in SQL templates #60

Merged
merged 2 commits into from
Feb 21, 2025
Merged

Conversation

NuroDev
Copy link
Member

@NuroDev NuroDev commented Feb 21, 2025

This change fixes a small problem with the sql function where if you placed any -- comments inside template string it will fail the request because there is no way to determine the end of the comment. Instead we will strip any & all comments from raw SQL queries.

@NuroDev NuroDev requested review from leo and colodenn February 21, 2025 16:35
@NuroDev NuroDev self-assigned this Feb 21, 2025
@NuroDev NuroDev enabled auto-merge (squash) February 21, 2025 16:35
Copy link

Released an experimental package:

bun add @ronin/syntax@ben-ron-1099-experimental-147

This package will be removed after the pull request has been merged.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/queries/statements.ts 100.00% <100.00%> (ø)

@NuroDev NuroDev merged commit 1022684 into main Feb 21, 2025
3 checks passed
@NuroDev NuroDev deleted the ben/ron-1099 branch February 21, 2025 16:38
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.

3 participants