使用转换为 SQL 的简单查询语言 轻松搜索ActiveRecord 模型_ Ruby

上传者: 38334677 | 上传时间: 2022-06-05 14:04:17 | 文件大小: 76KB | 文件类型: ZIP
scoped_search gem可以很容易地搜索您的 ActiveRecord 模型。使用查询字符串执行搜索,该字符串应传递给 named_scope search_for。根据要查看的字段的定义,它将构建查询条件并将其作为命名范围返回

文件下载

资源详情

[{"title":"( 63 个子文件 76KB ) 使用转换为 SQL 的简单查询语言 轻松搜索ActiveRecord 模型_ Ruby","children":[{"title":"scoped_search-master","children":[{"title":".travis.yml <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"Gemfile.activerecord60 <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"Gemfile.activerecord60_with_activesupport60 <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"Gemfile.activerecord52_with_activesupport52 <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"scoped_search.gemspec <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"CHANGELOG.rdoc <span style='color:#111;'> 8.05KB </span>","children":null,"spread":false},{"title":"Gemfile.activerecord61_with_activesupport61 <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"Rakefile <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"ruby.yml <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":"assets","children":[{"title":"images","children":[{"title":"spinner.gif <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"javascripts","children":[{"title":"scoped_search.js <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false}],"spread":false},{"title":"stylesheets","children":[{"title":"scoped_search.scss <span style='color:#111;'> 894B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"README.rdoc <span style='color:#111;'> 5.20KB </span>","children":null,"spread":false},{"title":"Gemfile.activerecord51 <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"Gemfile <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"Gemfile.activerecord61 <span style='color:#111;'> 353B </span>","children":null,"spread":false},{"title":"spec","children":[{"title":"unit","children":[{"title":"definition_spec.rb <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false},{"title":"query_builder_spec.rb <span style='color:#111;'> 6.99KB </span>","children":null,"spread":false},{"title":"parser_spec.rb <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"validators_spec.rb <span style='color:#111;'> 708B </span>","children":null,"spread":false},{"title":"tokenizer_spec.rb <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"ast_spec.rb <span style='color:#111;'> 5.57KB </span>","children":null,"spread":false},{"title":"auto_complete_builder_spec.rb <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false}],"spread":false},{"title":"database.jruby.yml <span style='color:#111;'> 258B </span>","children":null,"spread":false},{"title":"database.ruby.yml <span style='color:#111;'> 290B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"database.rb <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"mocks.rb <span style='color:#111;'> 860B </span>","children":null,"spread":false},{"title":"matchers.rb <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"integration","children":[{"title":"ext_method_spec.rb <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"scope_spec.rb <span style='color:#111;'> 945B </span>","children":null,"spread":false},{"title":"sti_querying_spec.rb <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"profile_querying_spec.rb <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"string_querying_spec.rb <span style='color:#111;'> 9.35KB </span>","children":null,"spread":false},{"title":"key_value_querying_spec.rb <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false},{"title":"auto_complete_spec.rb <span style='color:#111;'> 9.32KB </span>","children":null,"spread":false},{"title":"nested_has_many_through_querying_spec.rb <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false},{"title":"api_spec.rb <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"set_query_spec.rb <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"rails_helper_spec.rb <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"relation_querying_spec.rb <span style='color:#111;'> 29.89KB </span>","children":null,"spread":false},{"title":"ordinal_querying_spec.rb <span style='color:#111;'> 9.51KB </span>","children":null,"spread":false},{"title":"uuid_query_spec.rb <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"spec_helper.rb <span style='color:#111;'> 560B </span>","children":null,"spread":false}],"spread":false},{"title":"Gemfile.activerecord52 <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"Gemfile.activerecord50 <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"scoped_search.rb <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"scoped_search","children":[{"title":"query_language.rb <span style='color:#111;'> 983B </span>","children":null,"spread":false},{"title":"query_language","children":[{"title":"tokenizer.rb <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"ast.rb <span style='color:#111;'> 4.47KB </span>","children":null,"spread":false},{"title":"parser.rb <span style='color:#111;'> 4.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"query_builder.rb <span style='color:#111;'> 28.20KB </span>","children":null,"spread":false},{"title":"definition.rb <span style='color:#111;'> 13.67KB </span>","children":null,"spread":false},{"title":"engine.rb <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"validators.rb <span style='color:#111;'> 271B </span>","children":null,"spread":false},{"title":"auto_complete_builder.rb <span style='color:#111;'> 9.81KB </span>","children":null,"spread":false},{"title":"version.rb <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"rails_helper.rb <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"railtie.rb <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"compass.rb <span style='color:#111;'> 210B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"CONTRIBUTING.rdoc <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"Gemfile.activerecord42 <span style='color:#111;'> 422B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明