2 ms·
If you are using Rails and jsonb, you may be interested in https://github.com/jrochkind/attr_json https://github.com/jrochkind/attr_json (by myself), or https:/
by jrochkind1 5y ago
If you are using Rails and jsonb, you may be interested in https://github.com/jrochkind/attr_json https://github.com/jrochkind/attr_json (by myself), or https://github.com/madeintandem/jsonb_accessor https://github.com/madeintandem/jsonb_accessor (an alternative).
- bullfightonmars 5y agoWe wrote a similar library that hooks into ActiveRecord. https://github.com/data-axle/superstore https://github.com/data-axle/superstore
- jrochkind1 5y agoInteresting, thanks, I hadn't seen this one before! So many of us inventing the same wheel! The docs on yours are kind of limited, I don't really understand how it maps to your postgres tables, what schema it's expecting. But I plan to find time to check it out just to compare and contrast with mine! Thanks!
- bullfightonmars 5y agoYeah. We built this for our own use and haven’t really documented it extensively. We use it in conjunction with an elastic search ORM. https://github.com/data-axle/elastic_record https://github.com/data-axle/elastic_record
- jrochkind1 5y agoAgain, interesting, thanks! I hadn't seen that ElasticSearch ORM either! The more popular one of course is: https://github.com/elastic/elasticsearch-rails https://github.com/elastic/elasticsearch-rails It can be hard to know what open source is out there!