mirror of https://github.com/status-im/migrate.git
1d8a881941
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) |
||
---|---|---|
.. | ||
cassandra | ||
cockroachdb | ||
crate | ||
mongodb | ||
mysql | ||
neo4j | ||
postgres | ||
ql | ||
redshift | ||
shell | ||
spanner | ||
sqlite3 | ||
stub | ||
testing | ||
driver.go | ||
driver_test.go | ||
error.go | ||
util.go | ||
util_test.go |