Skip to content

Commit 6dc90fd

Browse files
committed
test(mango_database): add open_doc function
1 parent 25f1f55 commit 6dc90fd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/elixir/test/support/mango_database.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ defmodule MangoDatabase do
8484
end
8585
end
8686

87+
def open_doc(db, docid) do
88+
resp = Couch.get("/#{db}/#{docid}")
89+
resp.body
90+
end
91+
8792
def create_index(db, fields, options \\ []) do
8893
index = %{
8994
"fields" => fields,

0 commit comments

Comments
 (0)