ecto-cassandra icon indicating copy to clipboard operation
ecto-cassandra copied to clipboard

Fix create_keyspace options

Open clouds56 opened this issue 7 years ago • 4 comments

related to https://github.com/cafebazaar/elixir-cassandra/pull/9

clouds56 avatar Oct 29 '18 12:10 clouds56

Hello, @clouds56! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

hzamani avatar Oct 29 '18 12:10 hzamani

Coverage Status

Coverage increased (+0.05%) to 90.769% when pulling 401d8a1f02920371cc63c9fe52baaac4b4e3340e on clouds56:patch-1 into 1a104ef2035bfae97b74931d4ab2886a4f2fcc5f on cafebazaar:master.

coveralls avatar Oct 29 '18 12:10 coveralls

Coverage Status

Coverage increased (+0.05%) to 90.769% when pulling 401d8a1f02920371cc63c9fe52baaac4b4e3340e on clouds56:patch-1 into 1a104ef2035bfae97b74931d4ab2886a4f2fcc5f on cafebazaar:master.

coveralls avatar Oct 29 '18 12:10 coveralls

@clouds56

Please give me, what's your issue/error when this line not present and make sure your fix on elixir_cassandra included

# mix.exs
    {:cassandra, github: "cafebazaar/elixir-cassandra", branch: "master", override: true},

sample config:

# config/prod.ex
# Configure your database
config :app, App.Repo,
  adapter: EctoCassandra.Adapter,
  balancer: {TokenAware, [{RoundRobin, [num_connections: 40, max_tries: 1]}]},
  contact_points: [System.get_env("DB_HOST")],
  keyspace: "app",
  replication: [
    class: "SimpleStrategy",
    replication_factor: 3,
  ],
  write_consistency: :quorum,
  read_consistency: :quorum,
  executor_pool: [
    size: 32,
    owerflow_size: 2,
    strategy: :lifo,
  ]

alirajabi avatar Nov 05 '18 14:11 alirajabi