Skip to content

Fix vtab::dequote#1835

Merged
gwenn merged 1 commit into
rusqlite:masterfrom
gwenn:dequote
Apr 19, 2026
Merged

Fix vtab::dequote#1835
gwenn merged 1 commit into
rusqlite:masterfrom
gwenn:dequote

Conversation

@gwenn

@gwenn gwenn commented Apr 19, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@gwenn gwenn force-pushed the dequote branch 2 times, most recently from e00776b to 9bbd59a Compare April 19, 2026 09:39
@gwenn gwenn requested a review from Copilot April 19, 2026 09:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the vtab argument parsing helpers to improve dequoting behavior (including support for additional quoting styles) and propagates the new Cow<str>-based return type through virtual table modules.

Changes:

  • Reworked vtab::dequote to return Cow<str> and attempt to handle inner escaped quotes.
  • Updated vtab::parameter to return a Cow<str> value and adjusted vtab modules to consume it.
  • Expanded unit tests for dequote and updated parameter parsing tests for the new return type.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/vtab/mod.rs Refactors dequote/parameter to use Cow<str> and extends dequoting logic + tests.
src/vtab/vtablog.rs Adapts vtablog argument parsing to the new parameter() return type.
src/vtab/csvtab.rs Adapts csvtab argument parsing to the new parameter() return type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/vtab/mod.rs
Comment thread src/vtab/csvtab.rs
Comment thread src/vtab/vtablog.rs
Comment thread src/vtab/mod.rs Outdated
Comment thread src/vtab/mod.rs
@codecov

codecov Bot commented Apr 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.61905% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.57%. Comparing base (cac7dca) to head (368b93a).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/vtab/mod.rs 97.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1835      +/-   ##
==========================================
+ Coverage   87.54%   87.57%   +0.02%     
==========================================
  Files          58       58              
  Lines       10794    10825      +31     
==========================================
+ Hits         9450     9480      +30     
- Misses       1344     1345       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gwenn gwenn merged commit 9ad789c into rusqlite:master Apr 19, 2026
17 checks passed
@gwenn gwenn deleted the dequote branch April 19, 2026 10:10
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.

2 participants