package
Version:
v0.0.0-...-c65c6a6
Opens a new window with list of versions in this module.
Published: Mar 24, 2018
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Datasource string `yaml:"datasource"`
}
Configはsql-migrateの設定ファイルと同じ形式を想定している
OpenはConfigで指定されている接続先に接続する。
MySQL固定
Configsは環境ごとの設定情報をもつ
NewConfigsはio.ReaderからDB用設定を読み取る
NewConfigsFromFileはConfigから設定を読み取る
Openは指定された環境についてDBに接続します。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.