store_attribute
ActiveRecord extension which adds typecasting to store accessors (by palkan)
activerecord-typedstore
ActiveRecord::Store but with type definition (by byroot)
store_attribute | activerecord-typedstore | |
---|---|---|
2 | 2 | |
354 | 435 | |
- | - | |
5.4 | 3.8 | |
2 months ago | 3 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
store_attribute
Posts with mentions or reviews of store_attribute.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-08.
-
Is JSONB + Postgres still a viable way of storing varying attributes?
There are some other gems that can do similar things (each with somewhat different design and possibilities) including https://github.com/madeintandem/jsonb_accessor , https://github.com/DmitryTsepelev/store_model , and https://github.com/palkan/store_attribute
-
Just released acts_as_nosql, a gem to manage JSON fields as proper database fields
There is a store_accessor extension which adds types and works similar to Rails' attribute: https://github.com/palkan/store_attribute
activerecord-typedstore
Posts with mentions or reviews of activerecord-typedstore.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-09.
-
How would you store roles with up to 64 permissions?
I guess it depends on how frequently the roles or flags change, but we use https://github.com/byroot/activerecord-typedstore and a jsonb field. We add flags as needed and cache them, but also things like role limits, without the need for db migrations or a hefty load of columns.
-
Just released acts_as_nosql, a gem to manage JSON fields as proper database fields
Looks like store_accessor + https://github.com/byroot/activerecord-typedstore , looks really nice! Gonna give a try! Thx!
What are some alternatives?
When comparing store_attribute and activerecord-typedstore you can also consider the following projects:
StoreModel - Work with JSON-backed attributes as ActiveRecord-ish models
fuzzily - Fast fuzzy string searching/matching for Rails