change include path from github.com/kshvakov to github.com/mattes

This commit is contained in:
kshvakov 2017-06-21 17:24:55 +03:00
parent 9341404de0
commit e86f4a201c
2 changed files with 2 additions and 1 deletions

View File

@ -4,5 +4,5 @@ package main
import ( import (
_ "github.com/kshvakov/clickhouse" _ "github.com/kshvakov/clickhouse"
_ "github.com/kshvakov/migrate/database/clickhouse" _ "github.com/mattes/migrate/database/clickhouse"
) )

View File

@ -24,6 +24,7 @@ type Config struct {
func init() { func init() {
database.Register("clickhouse", &ClickHouse{}) database.Register("clickhouse", &ClickHouse{})
} }
func WithInstance(conn *sql.DB, config *Config) (database.Driver, error) { func WithInstance(conn *sql.DB, config *Config) (database.Driver, error) {
if config == nil { if config == nil {
return nil, ErrNilConfig return nil, ErrNilConfig