3 ms·
The Phoenix framework does this for forms. It requires a whole system built around a type called a Changeset that describes input parameters, their validity, an
by iudqnolq 5y ago
The Phoenix framework does this for forms. It requires a whole system built around a type called a Changeset that describes input parameters, their validity, and how to modify a struct to reflect the valid changes. In practice this ends up tightly coupled to the database layer for simplity.
- pokoleo 5y agoDoes "tightly coupled with the database" work, in practice?
- bongobingo1 5y agoIt's only tightly coupled if you let it be. You can create changesets around any data shape, whether thats connected to your schema' table, a partial view of a table or entirely independent.