Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blacklist and Whitelist functionality for Update and Insert #30

Closed
m0sth8 opened this issue Jul 3, 2016 · 7 comments
Closed

Blacklist and Whitelist functionality for Update and Insert #30

m0sth8 opened this issue Jul 3, 2016 · 7 comments
Assignees
Labels
Milestone

Comments

@m0sth8
Copy link

m0sth8 commented Jul 3, 2016

What I want for Insert or Update is to take default values from database if it's possible.

db.Update(obj, WithBlacklist("id", "created"))
db.Insert(obj, WithWhitelist("name", "surname"))
@eaglemoor
Copy link
Contributor

Refresh don't help ?

@m0sth8
Copy link
Author

m0sth8 commented Jul 4, 2016

How should it help?

@xaionaro
Copy link
Contributor

xaionaro commented Jul 4, 2016

I see method UpdateColumns. Is that what are you looking for?

https://godoc.org/gopkg.in/reform.v1#Querier.UpdateColumns

@AlekSi
Copy link
Member

AlekSi commented Jul 12, 2016

See #39.

@AlekSi AlekSi added the feature label Jul 12, 2016
@AlekSi AlekSi added this to the v1.2.0 milestone Jul 12, 2016
@AlekSi AlekSi self-assigned this Jul 12, 2016
@AlekSi
Copy link
Member

AlekSi commented Jul 13, 2016

Probably tests should be improved.

@AlekSi AlekSi reopened this Jul 13, 2016
@xaionaro
Copy link
Contributor

@AlekSi, how?

@AlekSi
Copy link
Member

AlekSi commented Jul 13, 2016

That's mostly for myself, for better understanding of the code I will maintain. I will do it.

@AlekSi AlekSi closed this as completed Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants