rosschapman / if-ross-wrote-javascript

I'm building a universal JavaScript app for all of my code dreams
0 stars 1 forks source link

Follow Active Record design patterns more closely #24

Closed rosschapman closed 6 years ago

rosschapman commented 6 years ago

A notion of a Store in the Ember Data sense doesn't really work here since we don't need an identity map and to be truer to Active Record I should merge the db querying and persistence logic on the AR object.

Active Record uses the most obvious approach, putting data access logic in the domain object. This way all people know how to read an write their data to and from the database. (p160, PEAA)