Bowie v0.0.0-alpha Bowie View Source

A GenServer-based module that listens to your CouchDB Changes.

While Bowie can be used directly, in the iex console, it is designed to drop into a typical OTP Supervisor tree and receive a stream of changes from it’s linked ibrowse worker.

See the README.md for general usage.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Prepares an ICouch connection and verifies you have sufficient permissions to access the database

Starts a worker, linked directly to the current process

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function db(couch \\ "http://admin:passwd@127.0.0.1:5984/", db) View Source

Prepares an ICouch connection and verifies you have sufficient permissions to access the database.

Examples

Bowie.db("http://127.0.0.1:5984/", "_users")
Link to this function start(db, opts \\ [include_docs: true]) View Source

Starts a worker, linked directly to the current process.

Examples

Bowie.db(“http://127.0.0.1:5984/“, “_users”) |> Bowie.start()

Link to this function start_link(db, opts \\ [], gen_opts \\ []) View Source