Skip to content

db-journey/cassandra-driver

Repository files navigation

Cassandra Driver

Usage

migrate -url cassandra://host:port/keyspace -path ./db/migrations create add_field_to_table
migrate -url cassandra://host:port/keyspace -path ./db/migrations up
migrate help # for more info

Url format

  • Authentication: cassandra://username:password@host:port/keyspace
  • Cassandra v3.x: cassandra://host:port/keyspace?protocol=4&consistency=all&disable_init_host_lookup

Cassandra in Docker users on a Mac: when using gcql + migrate, use the disable_init_host_lookup option in the connection URL. This will alleviate the issue of gocql trying to connect to internal docker IP addresses.

Authors

About

Cassandra driver

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •