Skip to content

Instantly share code, notes, and snippets.

@willnet
Created October 19, 2017 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willnet/c3d2d061aef3fb1b003d9c4d0bb9ad6d to your computer and use it in GitHub Desktop.
Save willnet/c3d2d061aef3fb1b003d9c4d0bb9ad6d to your computer and use it in GitHub Desktop.
## 感想
全体的に地味
## Adapter
いろいろadapterがある
- db2
- firebird
- oci
- sqlserver
vendor/mysql.rb
vendorとは?mysql2 gem的なもの
vendor/simple?
## とばしてよさそう
> - ConnectionSpecification.establish_connection
> @@defined_connectionsに設定はいる
## TIPS感ある
モデルクラスごとにDB変えられるっぽい
connection_pool なんてなかった
allow_concurrencyってなんだろ
-> 1.0 からthread safeだったらしい
mysql_adapter
postgres_adapter
見所ない
use_transactional_fixtures もうある
## ORM的なところ
https://gist.github.com/takuyan/370adf5327604d8fb0891c58dc310ffc
- なぜかallocateしてインスタンス作ってる
- instance_variable_set @attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment