Skip to content

[Feature Request] update data by specify columns #591

@chen-yan

Description

@chen-yan

right now, the generated sql update all fields (or skip null value), Can we specify the fields to be updated instead of generating SQL statements that update all fields?

for example:

update_by_map(rb, model, fields: &Vec, condition: &Value)

only update value that in &fields.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions