pg_party:ActiveRecord PostgreSQL分区

时间:2021-02-01 01:44:19
【文件属性】:
文件名称:pg_party:ActiveRecord PostgreSQL分区
文件大小:69KB
文件格式:ZIP
更新时间:2021-02-01 01:44:19
ruby rails activerecord postgres postgresql PgParty 用于创建和管理迁移和模型帮助器! 产品特点 分区特定的数据库操作的迁移方法 查询分区数据,创建临时分区和获取分区元数据的模型方法 局限性 分区表在db/schema.rb表示不正确-请使用:sql模式格式 未来的工作 自动分区创建(通过cron或其他方式) 安装 将此行添加到您的应用程序的Gemfile中: gem 'pg_party' 然后执行: $ bundle 或自己安装为: $ gem install pg_party 请注意,gemspec不需要pg ,因为某些模型方法可能适用于其他数据库。 除非安装了pg否则迁移方法将不可用。 组态 可以通过PgParty.config和PgParty.configure访问和设置这些值。 caching 是否缓存当前附加的分区和匿名模型类 默认值: true caching_ttl 高速缓存条目被视为有效的时间长度(以秒为单位) 默认值: -1 (永不使高速缓存条目过期) schema_exclude_partitions 是否在rake db:structure:dump排除子分区 默认值: tr
【文件预览】:
pg_party-master
----bin()
--------de(48B)
--------console(235B)
----Rakefile(563B)
----gemfiles()
--------ar_5.2.gemfile(145B)
--------ar_6.1.gemfile(142B)
--------ar_5.0.gemfile(145B)
--------ar_5.1.gemfile(145B)
--------.bundle()
--------ar_6.0.gemfile(145B)
----Dockerfile(1KB)
----Appraisals(346B)
----Gemfile(124B)
----.bundle()
--------config(22B)
----CHANGES.md(2KB)
----.rspec(39B)
----docker-compose.yml(428B)
----spec()
--------model()
--------support()
--------cache_spec.rb(4KB)
--------config_spec.rb(2KB)
--------pg_party_spec.rb(802B)
--------model_injector_spec.rb(6KB)
--------dummy()
--------adapter()
--------integration()
--------spec_helper.rb(2KB)
----.gitignore(185B)
----lib()
--------pg_party.rb(1KB)
--------pg_party()
----.circleci()
--------config.yml(3KB)
----CODE_OF_CONDUCT.md(3KB)
----README.md(24KB)
----.pryrc(228B)
----LICENSE.txt(1KB)
----pg_party.gemspec(2KB)

网友评论