2 ms·
A changeset is basically an accumulator object that contains both a diff and DB operation specifics. It basically says "I have to change this object's 3 fields
by pdimitar 8y ago
A changeset is basically an accumulator object that contains both a diff and DB operation specifics. It basically says "I have to change this object's 3 fields to the following values and then perform a DB update". It can also contain validation errors. And... that's all there is to it. And you can use it without a database. It's perfectly useable when you accept external data and want to inspect how would it modify your state. No persistence need be involved.
For everything else, poke us at ElixirForum. People are helpful there.