LoginSignup
2
3

More than 5 years have passed since last update.

Hanami(旧Lotus)でパスワードやポート等を指定してデータベースに接続する

Last updated at Posted at 2016-02-27

情報がなかったのでメモ。
HanamiModelSequelconnectメソッドを利用してデータベースに接続している。
そのため、.envなどのファイルのAPP_NAME_DATABASE_URLにpostgres://user:password@hostname:port/database_namemysql://user:password@hostname:port/database_nameと書くことでユーザー・パスワード・ポート等を指定して接続できる。

追記: 公式のGetting Startedに書いてあった

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3