Skip to content

feat: implement CompileJsonColumnsUpdate#26

Merged
almas-x merged 1 commit intomasterfrom
almas/json-columns-update
Jun 26, 2025
Merged

feat: implement CompileJsonColumnsUpdate#26
almas-x merged 1 commit intomasterfrom
almas/json-columns-update

Conversation

@almas-x
Copy link
Contributor

@almas-x almas-x commented Jun 26, 2025

📑 Description

Resolve goravel/goravel#712
Resolve goravel/goravel#713
Related goravel/framework#1092

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings June 26, 2025 03:36
@almas-x almas-x requested a review from a team as a code owner June 26, 2025 03:36
Copy link
Contributor

Copilot AI left a comment

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 implements a new function to compile JSON column updates in the query builder, addressing issues #712 and #713. It introduces the CompileJsonColumnsUpdate function with associated test cases and bumps dependency versions in go.mod.

  • Adds a new function for compiling JSON update expressions.
  • Provides unit tests covering various scenarios including invalid values, single and multiple JSON column updates.
  • Updates dependency versions.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
grammar_test.go Added tests for the new CompileJsonColumnsUpdate function
grammar.go Introduced CompileJsonColumnsUpdate for JSON updates
go.mod Bumped versions of goravel/framework and other dependencies

Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

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

nice 👍

@almas-x almas-x merged commit 7a09dbc into master Jun 26, 2025
5 checks passed
@almas-x almas-x deleted the almas/json-columns-update branch June 26, 2025 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

facades.DB() Support Updating JSON Columns facades.Orm().Query() Support Updating JSON Columns

3 participants