Our great sponsors
-
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
-
-
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.
-
Looks like store_accessor + https://github.com/byroot/activerecord-typedstore , looks really nice! Gonna give a try! Thx!
-
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}
-
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.
Related posts
- Everyday performance rules for Ruby on Rails developers
- Announcing pluck_in_batches - a new gem providing a faster alternative to the custom use of `in_batches` with `pluck`
- Can bundler do shallow git clones like Go?
- I fell in love with Ruby but...
- A Tale of Hashery and Woe: How Mutable Hash Keys Led to an ActiveRecord Bug