Module cloudi_service_db_couchdb

CloudI CouchDB Data Module

.

Copyright © 2009-2013 Michael Truog

Version: 1.3.0 Sep 30 2014 14:08:45 ------------------------------------------------------------------------

Behaviours: cloudi_service.

Authors: Michael Truog (mjtruog [at] gmail (dot) com).

Description

CloudI CouchDB Data Module

Data Types

dispatcher()

dispatcher() = cloudi_service:dispatcher() | cloudi:context()

Function Index

cloudi_service_handle_info/3
cloudi_service_handle_request/11
cloudi_service_init/3
cloudi_service_terminate/2
create_attachment/5

Create a document attachment from a file.

The file is referenced by its filename.
create_attachment/6
create_database/2

Create the database.

.
create_database/3
create_document/3

Create a document and allow the server to create the document id.

.
create_document/4
create_document_id/4

Create a document with a specific document id.

.
create_document_id/5
create_documents/3

Create many documents.

.
create_documents/4
create_view/5

Create a view.

.
create_view/6
create_view_type/6

Create a view of a unique type.

.
create_view_type/7
create_views/4

Create many views.

.
create_views/5
database_info/2

Get information about the database.

.
database_info/3
delete_database/2

Delete the database.

.
delete_database/3
delete_document/3

Delete a document based on its id.

.
delete_document/4
delete_document_rev/4

Delete a specific revision of a document based on its id.

.
delete_document_rev/5
delete_documents/3

Delete many documents.

.
delete_documents/4
document_revision/3

Get the current revision of a document.

.
document_revision/4
invoke_view/4

Invoke a view.

.
invoke_view/5
invoke_view_keys/5

Invoke a view with a list of keys.

.
invoke_view_keys/6
replace_document/4

Replace a document based on its id.

.
replace_document/5
replace_document_rev/5

Replace a specific revision of a document based on its id.

.
replace_document_rev/6
retrieve_all_dbs/2

Retrieve a list of all the databases.

.
retrieve_all_dbs/3
retrieve_document/3

Get a document based on its id.

.
retrieve_document/4
server_info/2

Get information about the server.

.
server_info/3
update_document/4

Update a document based on its id.

.
update_document/5
update_document_rev/5

Update a specific revision of a document based on its id.

.
update_document_rev/6

Function Details

cloudi_service_handle_info/3

cloudi_service_handle_info(Request, State, X3) -> any()

cloudi_service_handle_request/11

cloudi_service_handle_request(Type, Name, Pattern, RequestInfo, Request, Timeout, Priority, TransId, Pid, State, Dispatcher) -> any()

cloudi_service_init/3

cloudi_service_init(Args, Prefix, Dispatcher) -> any()

cloudi_service_terminate/2

cloudi_service_terminate(X1, State) -> any()

create_attachment/5

create_attachment(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), File::string(), ContentType::string()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create a document attachment from a file.

The file is referenced by its filename.

create_attachment/6

create_attachment(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), File::string(), ContentType::string(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

create_database/2

create_database(Dispatcher::dispatcher(), Name::string()) -> {ok, any()} | {error, any()}

Create the database.

create_database/3

create_database(Dispatcher::dispatcher(), Name::string(), Timeout::pos_integer()) -> {ok, any()} | {error, any()}

create_document/3

create_document(Dispatcher::dispatcher(), Name::string(), Doc::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create a document and allow the server to create the document id.

create_document/4

create_document(Dispatcher::dispatcher(), Name::string(), Doc::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

create_document_id/4

create_document_id(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Doc::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create a document with a specific document id.

create_document_id/5

create_document_id(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Doc::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

create_documents/3

create_documents(Dispatcher::dispatcher(), Name::string(), Documents::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create many documents.

create_documents/4

create_documents(Dispatcher::dispatcher(), Name::string(), Documents::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

create_view/5

create_view(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewName::string(), Data::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create a view.

create_view/6

create_view(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewName::string(), Data::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

create_view_type/6

create_view_type(Dispatcher::dispatcher(), Name::string(), DocName::string(), Type::string(), ViewName::string(), Data::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create a view of a unique type.

create_view_type/7

create_view_type(Dispatcher::dispatcher(), Name::string(), DocName::string(), Type::string(), ViewName::string(), Data::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

create_views/4

create_views(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewList::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Create many views.

create_views/5

create_views(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewList::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

database_info/2

database_info(Dispatcher::dispatcher(), Name::string()) -> {ok, any()} | {error, any()}

Get information about the database.

database_info/3

database_info(Dispatcher::dispatcher(), Name::string(), Timeout::pos_integer()) -> {ok, any()} | {error, any()}

delete_database/2

delete_database(Dispatcher::dispatcher(), Name::string()) -> {ok, any()} | {error, any()}

Delete the database.

delete_database/3

delete_database(Dispatcher::dispatcher(), Name::string(), Timeout::pos_integer()) -> {ok, any()} | {error, any()}

delete_document/3

delete_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string()) -> {ok, {json, {struct, list()}}} | {error, any()}

Delete a document based on its id.

delete_document/4

delete_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

delete_document_rev/4

delete_document_rev(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Rev::string()) -> {ok, {json, {struct, list()}}} | {error, any()}

Delete a specific revision of a document based on its id.

delete_document_rev/5

delete_document_rev(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Rev::string(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

delete_documents/3

delete_documents(Dispatcher::dispatcher(), Name::string(), Documents::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Delete many documents.

delete_documents/4

delete_documents(Dispatcher::dispatcher(), Name::string(), Documents::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

document_revision/3

document_revision(Dispatcher::dispatcher(), Name::string(), DocumentID::string()) -> {ok, {any(), any()}} | {error, any()}

Get the current revision of a document.

document_revision/4

document_revision(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Timeout::pos_integer()) -> {ok, {any(), any()}} | {error, any()}

invoke_view/4

invoke_view(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewName::string()) -> {ok, {json, {struct, list()}}} | {error, any()}

Invoke a view.

invoke_view/5

invoke_view(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewName::string(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

invoke_view_keys/5

invoke_view_keys(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewName::string(), Keys::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Invoke a view with a list of keys.

invoke_view_keys/6

invoke_view_keys(Dispatcher::dispatcher(), Name::string(), DocName::string(), ViewName::string(), Keys::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

replace_document/4

replace_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Doc::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Replace a document based on its id.

replace_document/5

replace_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Doc::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

replace_document_rev/5

replace_document_rev(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Rev::string(), Doc::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Replace a specific revision of a document based on its id.

replace_document_rev/6

replace_document_rev(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Rev::string(), Doc::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

retrieve_all_dbs/2

retrieve_all_dbs(Dispatcher::dispatcher(), Name::string()) -> {ok, any()} | {error, any()}

Retrieve a list of all the databases.

retrieve_all_dbs/3

retrieve_all_dbs(Dispatcher::dispatcher(), Name::string(), Timeout::pos_integer()) -> {ok, any()} | {error, any()}

retrieve_document/3

retrieve_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string()) -> {ok, {json, {struct, list()}}} | {error, any()}

Get a document based on its id.

retrieve_document/4

retrieve_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

server_info/2

server_info(Dispatcher::dispatcher(), Name::string()) -> {ok, any()} | {error, any()}

Get information about the server.

server_info/3

server_info(Dispatcher::dispatcher(), Name::string(), Timeout::pos_integer()) -> {ok, any()} | {error, any()}

update_document/4

update_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Doc::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Update a document based on its id.

update_document/5

update_document(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Doc::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}

update_document_rev/5

update_document_rev(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Rev::string(), Doc::list()) -> {ok, {json, {struct, list()}}} | {error, any()}

Update a specific revision of a document based on its id.

update_document_rev/6

update_document_rev(Dispatcher::dispatcher(), Name::string(), DocumentID::string(), Rev::string(), Doc::list(), Timeout::pos_integer()) -> {ok, {json, {struct, list()}}} | {error, any()}


Generated by EDoc, Sep 30 2014, 14:08:45.