Packages

Library for manipulating data from dynamo db, this library its similar to odm from mongo, but to manipulate data easiest, based in Aws Dynamo library.

Current section

Files

Jump to
dynamo_datamapper lib actions entity_manager.ex
Raw

lib/actions/entity_manager.ex

defmodule DataMapper.Actions.EntityManager do
alias DataMapper.Actions.{Assembler, Data, Query}
def find(pid, table, params \\ %{}) do
#{:ok, pid} = Data.start_link
Assembler.assemble_query(pid, table, params)
Query.get(pid, table)
end
def find_one(pid, table, params \\ %{}) do
Assembler.assemble_query(pid, table, params)
Query.add_limit(pid, 1)
Query.get(pid, table)
end
def count(pid, table, params \\ %{}) do
Assembler.assemble_query(pid, table, params)
Query.add_count(pid)
Query.get(pid, table)
end
def save(struct) do
end
end