order_as_specified:向ActiveRecord查询添加任意顺序

时间:2021-05-08 16:49:31
【文件属性】:
文件名称:order_as_specified:向ActiveRecord查询添加任意顺序
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-08 16:49:31
Ruby 指定订单 OrderAsSpecified增加了以任意顺序查询ActiveRecord类以从数据库中查询结果的功能,而无需在数据库中存储任何额外内容。 就像这样简单: class TestObject extend OrderAsSpecified end TestObject . order_as_specified ( language : [ "es" , "en" , "fr" ] ) => #, #, #, #
【文件预览】:
order_as_specified-main
----RELEASING.md(540B)
----.github()
--------workflows()
----.rubocop.yml(37B)
----Gemfile(290B)
----spec()
--------config()
--------shared()
--------postgresql_spec.rb(2KB)
--------support()
--------mysql_spec.rb(459B)
--------order_as_specified_spec.rb(332B)
--------sqlite3_spec.rb(463B)
--------spec_helper.rb(2KB)
----.gitignore(124B)
----CHANGELOG.md(2KB)
----lib()
--------order_as_specified.rb(2KB)
--------order_as_specified()
----CODE_OF_CONDUCT.md(3KB)
----.dependabot()
--------config.yml(2KB)
----README.md(6KB)
----order_as_specified.gemspec(1KB)
----LICENSE.txt(1KB)

网友评论