Popularity
4.3
Declining
Activity
0.0
Stable
34
2
8

Monthly Downloads: 32
Programming language: Elixir
License: Apache License 2.0
Latest version: v0.5.1

cassandra_ecto alternatives and similar packages

Based on the "ORM and Datamapping" category.
Alternatively, view cassandra_ecto alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of cassandra_ecto or a related project?

Add another 'ORM and Datamapping' Package

README

MAINTAINER WANTED!!!

I am currently have a really heavy workload and unable to mantain project. Sorry guys... If somebody is strong enough to mantain this project, don't hesitate, please help!

Cassandra.Ecto

Build Status Coverage Status hex.pm version hex.pm downloads Deps Status Inline docs Ebert

Ecto integration for Apache Cassandra.

Documentation: http://hexdocs.pm/cassandra_ecto/

Features

  • Migrations (with UDT, UDF, UDA and materialized views support)
  • Lightweight transactions
  • Batching (only for insert_all queries)
  • Streaming

Example

# In your config/config.exs file
config :my_app, Repo,
  keyspace: "my_keyspace"

# In your application code
defmodule Repo do
  use Ecto.Repo,
    otp_app: :my_app,
    adapter: Cassandra.Ecto
end

defmodule Post do
  use Ecto.Schema

  @primary_key {:id, :binary_id, autogenerate: true}
  schema "posts" do
    field :title,    :string
    field :text,     :string
    field :tags,     {:array, :string}
    timestamps()
  end
end

defmodule Simple do
  import Ecto.Query

  def sample_query do
    query = from p in Post, where: "elixir" in p.tags
    Repo.all(query, allow_filtering: true)
  end
end

Supported Cassandra version

Tested against 3.7+.

Installation

  1. Add cassandra_ecto and cqerl to your list of dependencies in mix.exs:

    def deps do
      [{:cqerl, github: "matehat/cqerl", tag: "v1.0.2", only: :test},
      {:cassandra_ecto, "~> 0.4.0"}]
    end
    
  2. Ensure cassandra_ecto and cqerl is started before your application:

    def application do
      [applications: [:cassandra_ecto, :cqerl]]
    end
    

Contributing

To contribute you need to compile cassandra_ecto from source and test it:

$ git clone https://github.com/vintikzzz/cassandra_ecto.git
$ cd cassandra_ecto
$ mix deps.get
$ mix espec

License

Copyright 2016 Pavel Tatarskiy

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


*Note that all licence references and agreements mentioned in the cassandra_ecto README section above are relevant to that project's source code only.