sequel-activerecord_connection
Roda
sequel-activerecord_connection | Roda | |
---|---|---|
5 | 21 | |
125 | 2,037 | |
- | - | |
5.9 | 8.0 | |
7 days ago | 19 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
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.
sequel-activerecord_connection
-
What It Took to Build a Rails Integration for Rodauth
For the integration to work, I would need to make Sequel reuse Active Record's database connection. I discussed this idea with Jeremy Evans (the lead Sequel maintainer), and he provided me with some guidance, thanks to which I was able to come up a solution. It was a Sequel extension that retrieved Active Record connections, kept transaction state and callbacks synchronized between Sequel and Active Record, integrated SQL instrumentation, and reconciliated adapter differences (see my previous article for more details).
-
Why Sequel ORM faster than ActiveRecord
Our Rails app at work is using Active Record, but I started non-apologetically using Sequel for any features I'm missing from Active Record, because I don't have the patience for Active Record to catch up. For our analytics database we're using only Sequel, because AR was missing too many features (see my article), while for our main database we're using it in tandem with Active Record, reusing Active Record's database connection. I'm pretty happy that the latter is now possible, as it gives people the opportunity to try out Sequel without any overhead.
-
Ruby gem for authentication : rodauth
The way I look at it, a pure Active Record implementation could never be fully complete. That's why I instead chose the path of making Sequel integrate seamlessly with Active Record, by sharing a database connection as /u/honeyryderchuck said, hooking into Active Record's query instrumentation, and also by making Sequel transactions interoperable with Active Record's. It's also worth noting that core Sequel is significantly lighter than Active Record.
-
How does Ruby's OOP translate to Rails?
the main impediments to my using sequel in Rails are: authentication - which has largely been solved. Janko has written a gem allowing for rod auth to be used with rails, easily. https://github.com/janko/rodauth-rails - i believe he has also written another gem to make it easy to use sequel in a rails app https://github.com/janko/sequel-activerecord_connection
-
Sqlcomposer Early Preview Answering Questions
From a user's perspective, I've always found the fact that rom-sql uses Sequel under-the-hood as a big advantage. For someone who is familiar with Sequel it lowers the barrier of understanding how rom-sql works. And it's possible to leverage many of Sequel's useful features that rom-sql might not support OOTB (including performance optimizations such as sequel_pg), even if that requires dropping to the Sequel database level. When I announced sequel-activerecord_connection, one of the questions I received was whether that will work with rom-sql too (and it does).
Roda
- Ask HN: What is your go-to stack for the web?
-
Web Frameworks actively maintained in 2023?
Roda (roda.jeremyevans.net)
-
There's SQL in my Ruby
Jeremy also maintains an awesome web framework called Roda. It's lightweight, fast, and easy to use when you don't need the heft of Rails.
-
Ask HN: Who's using Ruby web development without Ruby on Rails (RoR)?
I've been on the Roda [0] and Sequel [1] framework for over 10 years now across various projects. Even after all these years, starting a project in this stack feels like a breath of fresh air even compared to the newer language/frameworks that jabe come out since.
Jeremy Evans is the creator and maintainer of both of these Ruby gems and is super helpful in resolving ask kinda of issues.
[0]: https://roda.jeremyevans.net/
[1]: https://sequel.jeremyevans.net/
-
rodauth-omniauth released: login & registration with multiple external providers
My memory is failing me on the specifics, but I posted this issue on roda, which then led to this other issue in omniauth, plus 2 MRs on omniauth and rack-protection for doc updates.
-
Is rails the right choice for a junior dev?
You could pick up a framework like Phoenix, or Remix (the newest kid on the block) and I'm sure you'd get plenty far with either - and if you want ruby, try Roda. You might not have ready made tools with the newer frameworks, so watch out for that. But they have the advantage of doing thing slightly differently.
-
What It Took to Build a Rails Integration for Rodauth
Even though Rodauth is built on top of Roda and Sequel, it can work as a Rack middleware in any Ruby web framework. In the beginning, there was a demo app showing how Rodauth can be used in Rails, which leveraged the (now discontinued) roda-rails gem. However, the integration felt fairly raw, and definitely lacked the ergonomics Rails developers are used to.
-
Sinatra vs. Roda, what's your take?
I'm a big fan of Sinatra, but recently I came across Roda which is by Jeremy Evan's whose wonderful ORM gem Sequel I've used in several projects. Looking at the documentation, Roda seems quite nice and performance gain is always appreciated.
- What do you use ruby for?
-
RVTWS: a Ruby stack for modern web apps
For anything but a large app, Roda is well worth considering. It's not the easiest for beginners, due to its philosophy of being bare-bones by default but highly extendable. But it's gradually becoming integrated into Bridgetown, whose batteries-included approach is making Roda much more accessible.
What are some alternatives?
PaperTrail - Track changes to your rails models
Ruby on Rails - Ruby on Rails
rodauth-rails - Rails integration for Rodauth authentication framework
Hanami - The web, with simplicity.
rodauth-model - Password attribute and associations for Rodauth account model
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
rodauth-demo-rails - Rodauth's demo site ported to Rails, showing Rodauth/Rails integration
Cuba - Rum based microframework for web development.
rodauth-demo-rails - Example Rails app that uses Rodauth for authentication
Padrino - Padrino is a full-stack ruby framework built upon Sinatra.
rodauth-oauth - (Mirror) Roda OAuth and OpenID provider plugin
rack-app - minimalist framework for building rack applications