33 Commits

Author SHA1 Message Date
Dale Hui
1cf095c51d Update more references to github.com/mattes/migrate 2018-01-19 14:59:27 -08:00
Dale Hui
f584949470 Update imports to reference fork.
Thanks `make rewrite-import-paths`!
2018-01-19 10:56:55 -08:00
Jens Rantil
51acd3f3ad style: order imports lexicographically
Best-practise according to `gofmt`.
2017-09-17 13:26:23 +02:00
Taylor Wrobel
40a40613cb Add cockroachdb README and add ForceLock functionality
Adds a readme to the cockroachdb database package, following the
postgres readme style.

Also adds the ability to force acquisition of the migration lock
via a connect URL parameter/WithInstance config, to allow for fixing
cases where an implementation error causes the schema lock to not
be released.

Lastly, tweaks the CLI readme to include information on building a
CLI for databases other than postgres.
2017-07-11 21:52:02 -07:00
Kirill Shvakov
1f62e3f142 Merge branch 'master' into master 2017-07-08 13:50:51 +03:00
Taylor Wrobel
1d8a881941 Add CockroachDB Support
Adds support for CockroachDB.  Cockroach uses the postges wire
protocol and has a large amount of common SQL functionality shared
with Postgres, so much of the postgres code was able to be copied
and modified.

Since the protocol is used in determining the driver, and the
Postgres protocol is also used by Cockroach, new connect string
prefixes were added: cockroach:// cockroachdb:// and
crdb-postgres://.  These fake protocol strings are replaced in
the connect function with the correct `postgres://` protocol.

TODO: Tests needed (Cockroach has a docker image, so this shouldn't
be too hard)
2017-07-07 23:12:07 -07:00
kshvakov
e86f4a201c change include path from github.com/kshvakov to github.com/mattes 2017-06-21 17:24:55 +03:00
kshvakov
b031b22c80 Add WithInstance 2017-06-21 17:12:05 +03:00
kshvakov
1440a070c3 Add WithInstance 2017-06-21 17:06:04 +03:00
kshvakov
14636b77fb Add ClickHouse driver 2017-06-21 15:58:46 +03:00
Stephanie Ng
8f7d3efb1a add create command to cli 2017-06-14 21:59:11 +02:00
Jolan Malassigne
89879968bb add cassandra driver and function to retrieve networkSettings to get port bound to 9042 2017-06-05 11:03:49 +01:00
Max
2f50c9c52b added file cli/build_sqlite3.go 2017-06-05 11:02:51 +01:00
Christian Klotz
748ae8f06a Add Spanner driver
Support for Google Cloud Spanner, closes #172. Includes example migrations ported over from the PostgreSQL driver.

In all examples provided by Google I’ve come across, camel-case is used for table names, columns, etc. Hence the examples use this naming convention.
2017-06-04 21:13:49 +01:00
Matthias Kadenbach
00b22e527d one line 2017-05-18 10:28:39 -07:00
August Z. Flatby
83035ec925 Add command to make CLI example with Go toolchain work 2017-05-18 09:27:39 +02:00
Matthias Kadenbach
d4d20346f2
build cli with all source and database drivers 2017-05-17 19:10:45 -07:00
Jonathan Bryant
91ecd3cb6a Added support for Redshift.
* Added driver that wraps the standard PostgreSQL driver
* Added build.
* Added driver to documentation.
2017-05-11 15:47:40 -06:00
Matthias Kadenbach
6f07ac731b
fix go toolchain build 2017-04-21 12:23:01 -07:00
Matthias Kadenbach
f00c15d7b0
update go toolchain install 2017-04-20 16:03:43 -07:00
Matthias Kadenbach
c03b03c909
return status 0 for ErrNoChange #182 2017-03-12 12:33:13 -07:00
Matthias Kadenbach
1f37f41ee8
remove cleanpath, fix mysql ensureVersionTable 2017-03-01 11:48:38 -08:00
Matthias Kadenbach
be1ba9204a
add mysql driver, add ENV to docker containers 2017-02-28 15:10:56 -08:00
Matthias Kadenbach
e7b9b0d0ed Update README.md 2017-02-23 13:36:34 -08:00
Matthias Kadenbach
5645143baa
add example dockerfile 2017-02-23 13:13:02 -08:00
Matthias Kadenbach
eb02bc77fb
allow to force NilVersion 2017-02-19 16:06:11 -08:00
Matthias Kadenbach
53b55288b3
bring back dirty state from v2 2017-02-19 15:15:00 -08:00
Matthias Kadenbach
ea7fc641ba Update README.md 2017-02-16 21:12:33 -08:00
Matthias Kadenbach
6394299937
clean cli -path 2017-02-15 11:07:28 -08:00
Matthias Kadenbach
209c056258
add database lock timeouts in migrate and in tests 2017-02-11 19:15:54 -08:00
Matthias Kadenbach
cd6e62049c
Update documentation 2017-02-11 11:13:27 -08:00
Matthias Kadenbach
c4ec6ac0f7 move CLI usage in own README 2017-02-09 20:00:38 -08:00
Matthias Kadenbach
ee384ed8cc initial version 3.0.0 preview
hard work
2017-02-07 22:01:29 -08:00