rootstrap / arqo Goto Github PK
View Code? Open in Web Editor NEWEasing the query object pattern in Rails applications
Home Page: https://rootstrap.com
License: MIT License
Easing the query object pattern in Rails applications
Home Page: https://rootstrap.com
License: MIT License
we need to make CC test coverage work in github actions
We could make Query
suffix be configurable and we could make configurable if deriving or not the model name
When running a generator (and/or rails g model
) we could also generate the query object and query object specs
It'd be nice to allow the end user to configure the class name associated to the query object in case they want to use a different name than the model.
Originally posted by @juanmanuelramallo in #1
Expected Behavior:
rails generate query [e.g. User]
should generate a UserQuery object in app/queries
.
rails generate --help
should confirm the existence of the query generator
Actual Behavior:
bundle exec rails generate query User
=> Could not find generator 'query'.
rails generate --help | grep query
shows nothing
Steps to Reproduce:
bundle add arqo
or gem install arqo
rails generate query [e.g. User]
Version of the repo:
0.2.0
Ruby and Rails Version:
Ruby 2.6.3
Rails 6.0.0
we could have an example app that is a CLI where people can run query object methods
Just tried adding arqo to a Rails 7 app but found that arqo 0.2.0 depends on ActiveRecord (< 7.0.0).
Really love this gem so would love to see it become compatible with the latest version of Rails in the future!
% bundle add arqo
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "activerecord":
In snapshot (Gemfile.lock):
activerecord (= 7.0.3.1)
In Gemfile:
activerecord-postgis-adapter (~> 8.0) was resolved to 8.0.1, which depends on
activerecord (~> 7.0.0)
arqo was resolved to 0.2.0, which depends on
activerecord (< 7, >= 4)
Deleting your Gemfile.lock file and running `bundle install` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.