LoginSignup
3
2

More than 3 years have passed since last update.

go言語のマイグレーションツールgoose(bitbucketの方)のdbconf.ymlの書き方の注意点

Last updated at Posted at 2019-06-24

表題の通り。

db/dbconf.yml
test:
    driver: postgres
    open: user=liam dbname=tester sslmode=disable

development:
    driver: mysql
    open: {DBユーザー名}:{DBユーザーのパスワード}@tcp(127.0.0.1:3306)/{DB名}
  • mysqlの場合はdriver名が「mymysql」とかって解説している記事もあったりするのですが、バージョンが上がったのか今現在はmysqlのdriver名は「mysql」のようです

  • そもそも、githubとbitbucketで別れてしまっていて、検索性が悪かったりメンテの不安があるので使わない方がいいかもしれないです

  • この書式ってMySQLのポピュラーなものっぽい?

3
2
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
3
2