Skip to content

Support for partial updates - #396

Open
xiam wants to merge 7 commits into
masterfrom
issue-394
Open

Support for partial updates#396
xiam wants to merge 7 commits into
masterfrom
issue-394

Conversation

@xiam

@xiamxiam commented Jul 30, 2017

Copy link
Copy Markdown
Member

This PR adds support for partial updates via embedding a new sqlbuilder.Entity struct:

typeMyStructstruct {
IDuint64`db:"id,omitempty"`...
sqlbuilder.Entity
}

Now UPDATE statements won't insert the whole struct anymore, only the fields that changed from the last time the struct was pulled.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@xiam