pgrel:ActiveRecord扩展,用于查询hstore和jsonb

时间:2021-02-05 22:44:04
【文件属性】:
文件名称:pgrel:ActiveRecord扩展,用于查询hstore和jsonb
文件大小:23KB
文件格式:ZIP
更新时间:2021-02-05 22:44:04
activerecord postgresql hstore jsonb hacktoberfest Pgrel ActiveRecord扩展,用于查询hstore,array和jsonb。 兼容Rails > = 4.2(包括Rails 6 )。 安装 在您的Gemfile中: gem "pgrel" , "~> 0.3" 网上商店 查询方式 该功能基于ActiveRecord WhereChain 。 要开始查询调用where(:store_name)并使用商店特定的调用将其链接(请参见下文)。 按键值查询: Hstore . where . store ( :tags , a : 1 , b : 2 ) #=> select * from hstores where tags
【文件预览】:
pgrel-master
----gemfiles()
--------rails6.gemfile(80B)
--------rails42.gemfile(95B)
--------rails60.gemfile(82B)
--------railsmaster.gemfile(86B)
--------rubocop.gemfile(66B)
--------rails5.gemfile(80B)
----.github()
--------ISSUE_TEMPLATE.md(383B)
--------PULL_REQUEST_TEMPLATE.md(558B)
--------workflows()
----LICENSE.txt(1KB)
----lib()
--------pgrel.rb(85B)
--------pgrel()
----Gemfile(279B)
----spec()
--------spec_helper.rb(1KB)
--------pgrel()
--------support()
----Rakefile(282B)
----README.md(4KB)
----.rubocop.yml(550B)
----pgrel.gemspec(810B)
----.gitignore(379B)
----CHANGELOG.md(814B)

网友评论