1. 首页
  2. 数据库
  3. 其它
  4. activerecord dowsing 源码

activerecord dowsing 源码

上传者: 2021-05-11 16:41:50上传 ZIP文件 8.71KB 热度 25次
Activerecord ::正在寻找 在SQL中自动在其中调用的地方添加注释。 这对于代码读取很有用。 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-dowsing' 然后执行: $ bundle 或将其自己安装为: $ gem install activerecord-dowsing 用法 您可以通过配置启用“ activerecord-dowsing”。 config / application.rb config.x.activerecord_dowsing.enabled = true “ activerecord-dowsing”更改所有查询(带有注释)。 SELECT `id` FROM `users` /* changes */ SELECT `id` FROM `users` /* /app/controller
用户评论