Skip to content

feat(storage): copy query builder into fabric vault driver and redirect imports - #1478

Draft
sid200727 wants to merge 4 commits into
hyperledger-labs:mainfrom
sid200727:feat/copy-query-builder-to-fabric-vault
Draft

feat(storage): copy query builder into fabric vault driver and redirect imports#1478
sid200727 wants to merge 4 commits into
hyperledger-labs:mainfrom
sid200727:feat/copy-query-builder-to-fabric-vault

Conversation

@sid200727

@sid200727 sid200727 commented May 23, 2026

Copy link
Copy Markdown
Contributor

Closes #1479

Part of the query builder migration (2 of 3 PRs).
Following the same approach as fabric-token-sdk PR #1734, this PR copies the SQL query builder from platform/view/services/storage/driver/sql/query/ into platform/fabric/services/db/driver/sql/query/ for the fabric vault driver.
Changes:

-> Copied query builder (common, cond, select, insert, update, delete, pagination) into fabric vault driver
-> Redirected vault.go imports to use the local copy
-> Added test interpreters for each subpackage
-> Full build passes, all tests pass

Next PR: Remove the query builder from platform/view/services/storage/driver/sql/query/ entirely once this is merged.

@github-actions

github-actions Bot commented May 23, 2026

Copy link
Copy Markdown

Hey @sid200727 👋 thanks for the PR!
I'm your friendly PR Helper Bot 🤖 and I'll be riding shotgun on this one, keeping track of your PR's status to help you get it approved and merged.

This comment updates automatically as you push changes -- think of it as your PR's live scoreboard!
Here's the latest:


PR Checks

DCO Sign-off -- All commits have valid sign-offs. Nice work!


GPG Signature -- All commits have verified GPG signatures. Locked and loaded!


Merge Conflicts -- No merge conflicts detected. Smooth sailing!


Issue Link -- Linked to #1479 (assigned to you).


🎉 All checks passed! Your PR is ready for review. Great job!

@github-actions github-actions Bot added the status: needs revision The pull request requires changes from the author before it can be reviewed or merged label May 23, 2026
@sid200727
sid200727 force-pushed the feat/copy-query-builder-to-fabric-vault branch 2 times, most recently from a5c429f to b62445c Compare May 23, 2026 22:15
@github-actions github-actions Bot added status: needs review The pull request is ready for maintainer review and removed status: needs revision The pull request requires changes from the author before it can be reviewed or merged labels May 27, 2026
…direct imports

- Copy query builder package from platform/view into platform/fabric/services/db/driver/sql/query
- Redirect vault.go imports to use the copied query builder with squirrel PlaceholderFormat
- Use view pagination package in vault.go to match existing test types
- Fix formatting, lint, and SPDX license issues

Signed-off-by: Siddhi Khandelwal <siddhi.200727@gmail.com>
@sid200727
sid200727 force-pushed the feat/copy-query-builder-to-fabric-vault branch from fcf42f6 to 22ca596 Compare June 4, 2026 19:42
@sid200727
sid200727 marked this pull request as draft June 10, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs review The pull request is ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[storage] Migrate query builder from view storage driver to fabric vault driver

1 participant