migrate/database
Erik Dubbelboer e5b4be7771 Let database.Open() use schemeFromURL as well (#271)
* Let database.Open() use schemeFromURL as well

Otherwise it will fail on MySQL DSNs.

Moved schemeFromURL into the database package. Also removed databaseSchemeFromURL
and sourceSchemeFromURL as they were just calling schemeFromURL.

Fixes https://github.com/golang-migrate/migrate/pull/265#issuecomment-522301237

* Moved url functions into internal/url

Also merged the test cases.

* Add some database tests to improve coverage

* Fix suggestions
2019-08-20 09:59:15 -07:00
..
cassandra Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
clickhouse Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
cockroachdb Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
crate initial version 3.0.0 preview 2017-02-07 22:01:29 -08:00
firebird Update firebird README to reflect lack of official support 2019-08-18 23:34:07 -07:00
mongodb Update MongoDB driver to 1.1.0, use correct import path 2019-08-14 17:40:52 -07:00
mysql Fix in the URL parser with go 1.12.8 and github.com/go-sql-driver/mysql (#265) 2019-08-16 23:09:12 -07:00
neo4j initial version 3.0.0 preview 2017-02-07 22:01:29 -08:00
postgres Put tutorial specific info into a separate file 2019-08-11 22:06:04 +02:00
ql Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
redshift Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
shell initial version 3.0.0 preview 2017-02-07 22:01:29 -08:00
spanner Cleanup regex usage in spanner DB driver 2019-05-20 08:28:07 -07:00
sqlite3 Fix broken sqlite tests 2019-06-21 00:15:01 -07:00
sqlserver Test against MS SQL Server 2019-CTP3.1 (Ubuntu) 2019-08-18 23:37:33 -07:00
stub Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
testing Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
driver.go Let database.Open() use schemeFromURL as well (#271) 2019-08-20 09:59:15 -07:00
driver_test.go Let database.Open() use schemeFromURL as well (#271) 2019-08-20 09:59:15 -07:00
error.go updated postgres driver, add database.Error struct 2017-02-14 23:12:16 -08:00
parse_test.go Fix in the URL parser with go 1.12.8 and github.com/go-sql-driver/mysql (#265) 2019-08-16 23:09:12 -07:00
util.go Enabled maligned, staticcheck and errcheck linters (#206) 2019-04-26 15:47:16 -07:00
util_test.go Review comments 2018-11-05 16:03:54 +04:00