Just released acts_as_nosql, a gem to manage JSON fields as proper database fields

This page summarizes the projects mentioned and recommended in the original post on /r/rails

Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • acts_as_nosql

    Allows to treat JSON fields of postgres and mysql as real fields

    In CI, I hadn't yet time to make run the tests on all combination of DB engines / SO / ruby versions, since I had trouble to make SQLite work properly on latest version with Github Actions. At the moment, PostgreSQL is tested on ubuntu, SQLite is tested on macOS. https://github.com/monade/acts_as_nosql/blob/master/.github/workflows/test.yml

  • fuzzily

    Fast fuzzy string searching/matching for Rails

  • PopRuby

    PopRuby: Clothing and Accessories for Ruby Developers. Fashion meets Ruby! Shop our fun Ruby-inspired apparel and accessories designed to celebrate the joy and diversity of the Ruby community.

  • activerecord-typedstore

    ActiveRecord::Store but with type definition

    Looks like store_accessor + https://github.com/byroot/activerecord-typedstore , looks really nice! Gonna give a try! Thx!

  • rubygems

    Library packaging and distribution for Ruby.

    begin require "bundler/inline" rescue LoadError => e $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" raise e end gemfile(true) do source "https://rubygems.org" gem "acts_as_nosql" gem "sqlite3" end ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Schema.define do create_table :users, force: true do |t| t.string :first_name t.string :last_name t.json :data t.timestamps end end class User < ActiveRecord::Base acts_as_nosql field_name: :data nosql_attr :first_name end user = User.new user.first_name = "Dozy" puts user.attributes #=> {"id"=>nil, "first_name"=>nil, "last_name"=>nil, "data"=>{"first_name"=>"Dozy"}, "created_at"=>nil, "updated_at"=>nil}

  • store_attribute

    ActiveRecord extension which adds typecasting to store accessors

    There is a store_accessor extension which adds types and works similar to Rails' attribute: https://github.com/palkan/store_attribute

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts