9C5F
div>
No labelsNo milestoneNone yetNo branches or pull requests
Open
Description
Before feedback (在反馈之前)
- There are no features that I want to submit in Issues (当前 Issues 中没有我将要提交的新功能)
Describe Feature (描述功能)
When updating a JSON column, support use ->
syntax to update the appropriate key in the JSON object.
facades.DB().Table("users").Where("id", 1).Update("options->enabled", true)
facades.DB().Table("users").Where("id", 1).Update("options->languages[0]", "en")
facades.DB().Table("users").Where("id", 1).Update("options->languages", []string{"en", "de"})
facades.DB().Table("users").Where("id", 1).Update(map[string]any{
"preferences->dining->meal": "salad",
"options->languages[0]": "en",
"options->enabled": true,
})
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
📋 To do