Skip to content

Commit

Permalink
Merge pull request #85 from inaka/elbrujohalcon.updated.readme
Browse files Browse the repository at this point in the history
README + CONTRIBUTORS
  • Loading branch information
HernanRivasAcosta committed Oct 24, 2014
2 parents f69bc31 + f44ebdc commit 4db0479
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 38 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Contributors
Besides all the devs at [@inaka](https://github.com/inaka), we want to specially thank these rockstars:

* [@marcelog](https://github.com/marcelog), who created the project and guided us all in the path of the repository
* [@AxisOfEval](https://github.com/AxisOfEval), who has jumped right in and started sharing his knowledge (and code) with us out of the blue

*NOTE:* We (i.e. [@inaka](https://github.com/inaka)) will keep adding people to this list as soon as they make
valuable contributions to the project, but if you feel someone (even you) is missing feel free to send us a PR
to correct that mistake right away :)
53 changes: 15 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,33 @@
sumo_db
# sumo_db

# About
## About
This is a work in progress. There's also [an article](http://marcelog.github.com/articles/erlang_persistence_entities.html) about sumo_db.

**sumo_db** aims to ease db access for erlang applications. It offers a very
simple persistance layer capable of interacting with different db's, while
offering a consistent api to your code.

# Contact Us
## Contact Us
For **questions** or **general comments** regarding the use of this library, please use our public
[hipchat room](https://www.hipchat.com/gpBpW3SsT).

e
If you find any **bugs** or have a **problem** while using this library, please [open an issue](https://github.com/inaka/sumo_db/issues/new) in this repo (or a pull request :)).

And you can check all of our open-source projects at [inaka.github.io](http://inaka.github.io)

# Overview
* sumo_db gives you a standard way to define your db schema, no matter the
db implementation (mongo, mysql, redis, or sqlite3).
* Your entities encapsulate behavior in code (functions in module) and state
into ``sumo:doc()``.
* sumo is the main module. It translates to and from sumo internal records into your
own state.
* Each repo is a process *sumo_repo* that calls the actual db driver
(e.g: sumo_repo_mysql).
* Some native domain events are supported, that are dispatched through
a gen_event:notify/2 automatically when an entity is created, updated, deleted.
Also when a schema is created and when all entities of a given type are
deleted. Events are described in [this article](http://marcelog.github.com/articles/erlang_epers_persist_entities_domain_events.html)

# About dependencies
In order to avoid having sumo_db require the db drivers (like emysql, emongo, etc),
**you** should include them in your application. Currently, sumo_db has been tested
with the following drivers and versions.

# DB's supported
* mysql (uses [emysql](https://github.com/Eonblast/Emysql))
* mongodb (uses [emongo](https://github.com/JacobVorreuter/emongo))

# In progress
* sqlite3 (uses [erlang-sqlite3](https://github.com/alexeyr/erlang-sqlite3))

# Planned
* redis
* mnesia
* memory

# Example
## Overview
* sumo_db gives you a standard way to define your db schema, regardless of the db implementation (mongo, mysql, redis, elasticsearch, etc.).
* Your entities encapsulate behavior in code (i.e. functions in a module) and state in a ``sumo:doc()`` implementation.
* `sumo` is the main module. It translates to and from sumo internal records into your own state.
* Each repo is managed by a worker pool of processes, each one using a module that implements *sumo_repo* and calls the actual db driver (e.g: sumo_repo_mysql).
* Some native domain events are supported, that are dispatched through a `gen_event:notify/2` automatically when an entity is created, updated, deleted.
Also when a schema is created and when all entities of a given type are deleted. Events are described in [this article](http://marcelog.github.com/articles/erlang_epers_persist_entities_domain_events.html).

## Example
See: [**examples/blog**](https://github.com/inaka/sumo_db/tree/master/examples/blog)
for a full example. To run it, while being in the top level directory:

make all blog

# TODO
* Get rid of atoms and use lists.
## Contributors
We want to thank all of [our contributors](CONTRIBUTORS.md) for their hard work :muscle:

0 comments on commit 4db0479

Please sign in to comment.