Sagan v0.1.0 Sagan View Source

Azure Cosmos DB Driver for Elixir

Installation

If available in Hex, the package can be installed by adding sagan to your list of dependencies in mix.exs:

  def deps do
    [{:sagan, "~> 0.1.0"}]
  end

  # in your config.exs
  config :sagan,
    hostname: "host.documents.azure.com",
    database: "your-database",
    name: :mongo, # to name the process
    username: "your-username",
    password: "your-key",
    port: 10255

Provides and simplifies all the functions of MongoDB

Link to this section Summary

Link to this section Functions

Link to this function aggregate(coll, pipeline, opts \\ []) View Source
Link to this function command(query, opts \\ []) View Source
Link to this function command!(query, opts \\ []) View Source
Link to this function count(coll, filter, opts \\ []) View Source
Link to this function count!(coll, filter, opts \\ []) View Source
Link to this function create_document(collection, document) View Source
Link to this function delete_many(coll, filter, opts \\ []) View Source
Link to this function delete_many!(coll, filter, opts \\ []) View Source
Link to this function delete_one(coll, filter, opts \\ []) View Source
Link to this function delete_one!(coll, filter, opts \\ []) View Source
Link to this function distinct(coll, field, filter, opts \\ []) View Source
Link to this function distinct!(coll, field, filter, opts \\ []) View Source
Link to this function find(coll, filter, opts \\ []) View Source
Link to this function find_one(coll, filter, opts \\ []) View Source
Link to this function find_one_and_delete(coll, filter, opts \\ []) View Source
Link to this function find_one_and_replace(coll, filter, replacement, opts \\ []) View Source
Link to this function find_one_and_update(coll, filter, update, opts \\ []) View Source
Link to this function get_document_by_id(collection, id) View Source
Link to this function insert_many(coll, docs, opts \\ []) View Source
Link to this function insert_many!(coll, docs, opts \\ []) View Source
Link to this function insert_one(coll, doc, opts \\ []) View Source
Link to this function insert_one!(coll, doc, opts \\ []) View Source
Link to this function replace_one(coll, filter, replacement, opts \\ []) View Source
Link to this function replace_one!(coll, filter, replacement, opts \\ []) View Source
Link to this function update_many(coll, filter, update, opts \\ []) View Source
Link to this function update_many!(coll, filter, update, opts \\ []) View Source
Link to this function update_one(coll, filter, update, opts \\ []) View Source
Link to this function update_one!(coll, filter, update, opts \\ []) View Source