diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-06-05 18:00:32 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-06-05 18:00:32 -0400 |
commit | ac0456e1f59133abd646493090731d04d439069f (patch) | |
tree | 8b26cc47da801594b90da25d8bb6217a9b45b311 | |
parent | 0c5622473b8b2aa90b69e59293b9b23d97bc9557 (diff) |
big module renaming
-rw-r--r-- | ebin/fabric.app | 20 | ||||
-rw-r--r-- | src/fabric.erl | 18 | ||||
-rw-r--r-- | src/fabric_db_create.erl (renamed from src/fabric_create_db.erl) | 2 | ||||
-rw-r--r-- | src/fabric_db_delete.erl (renamed from src/fabric_delete_db.erl) | 2 | ||||
-rw-r--r-- | src/fabric_db_doc_count.erl (renamed from src/fabric_doc_count.erl) | 2 | ||||
-rw-r--r-- | src/fabric_db_info.erl (renamed from src/fabric_get_db_info.erl) | 2 | ||||
-rw-r--r-- | src/fabric_doc_missing_revs.erl (renamed from src/fabric_missing_revs.erl) | 2 | ||||
-rw-r--r-- | src/fabric_doc_open.erl (renamed from src/fabric_open_doc.erl) | 2 | ||||
-rw-r--r-- | src/fabric_doc_open_revs.erl (renamed from src/fabric_open_revs.erl) | 2 | ||||
-rw-r--r-- | src/fabric_doc_update.erl (renamed from src/fabric_update_docs.erl) | 2 | ||||
-rw-r--r-- | src/fabric_view_all_docs.erl (renamed from src/fabric_all_docs.erl) | 2 |
11 files changed, 28 insertions, 28 deletions
diff --git a/ebin/fabric.app b/ebin/fabric.app index c96e73e9..2e0f8df3 100644 --- a/ebin/fabric.app +++ b/ebin/fabric.app @@ -6,17 +6,17 @@ {modules, [ fabric, fabric_all_databases, - fabric_all_docs, - fabric_create_db, - fabric_delete_db, - fabric_doc_count, - fabric_get_db_info, - fabric_missing_revs, - fabric_open_doc, - fabric_open_revs, + fabric_db_create, + fabric_db_delete, + fabric_db_doc_count, + fabric_db_info, + fabric_doc_missing_revs, + fabric_doc_open, + fabric_doc_open_revs, + fabric_doc_update, fabric_rpc, - fabric_update_docs, - fabric_util + fabric_util, + fabric_view_all_docs ]}, {registered, []}, {included_applications, []}, diff --git a/src/fabric.erl b/src/fabric.erl index 5c3e896a..b493d55c 100644 --- a/src/fabric.erl +++ b/src/fabric.erl @@ -30,40 +30,40 @@ all_dbs(Customer) -> fabric_all_databases:all_databases(Customer). get_db_info(DbName, Customer) -> - fabric_get_db_info:get_db_info(dbname(DbName), Customer). + fabric_db_info:get_db_info(dbname(DbName), Customer). get_doc_count(DbName) -> - fabric_doc_count:go(dbname(DbName)). + fabric_db_doc_count:go(dbname(DbName)). create_db(DbName, Options) -> - fabric_create_db:create_db(dbname(DbName), Options). + fabric_db_create:create_db(dbname(DbName), Options). delete_db(DbName, Options) -> - fabric_delete_db:delete_db(dbname(DbName), Options). + fabric_db_delete:delete_db(dbname(DbName), Options). open_doc(DbName, Id, Options) -> - fabric_open_doc:go(dbname(DbName), docid(Id), Options). + fabric_doc_open:go(dbname(DbName), docid(Id), Options). open_revs(DbName, Id, Revs, Options) -> - fabric_open_revs:go(dbname(DbName), docid(Id), Revs, Options). + fabric_doc_open_revs:go(dbname(DbName), docid(Id), Revs, Options). get_missing_revs(DbName, IdsRevs) when is_list(IdsRevs) -> Sanitized = [idrevs(IdR) || IdR <- IdsRevs], - fabric_missing_revs:go(dbname(DbName), Sanitized). + fabric_doc_missing_revs:go(dbname(DbName), Sanitized). update_doc(DbName, Doc, Options) -> {ok, [Result]} = update_docs(DbName, [Doc], Options), Result. update_docs(DbName, Docs, Options) -> - fabric_update_docs:go(dbname(DbName), docs(Docs), Options). + fabric_doc_update:go(dbname(DbName), docs(Docs), Options). all_docs(DbName, #view_query_args{} = QueryArgs, Callback, Acc0) when is_function(Callback, 2) -> - fabric_all_docs:go(dbname(DbName), QueryArgs, Callback, Acc0). + fabric_view_all_docs:go(dbname(DbName), QueryArgs, Callback, Acc0). %% some simple type validation and transcoding diff --git a/src/fabric_create_db.erl b/src/fabric_db_create.erl index 21b093bf..4f4e3b20 100644 --- a/src/fabric_create_db.erl +++ b/src/fabric_db_create.erl @@ -1,4 +1,4 @@ --module(fabric_create_db). +-module(fabric_db_create). -author(brad@cloudant.com). -export([create_db/2]). diff --git a/src/fabric_delete_db.erl b/src/fabric_db_delete.erl index d21a1a06..0803400d 100644 --- a/src/fabric_delete_db.erl +++ b/src/fabric_db_delete.erl @@ -1,4 +1,4 @@ --module(fabric_delete_db). +-module(fabric_db_delete). -author(brad@cloudant.com). -export([delete_db/2]). diff --git a/src/fabric_doc_count.erl b/src/fabric_db_doc_count.erl index 09de9d48..4c3a72d5 100644 --- a/src/fabric_doc_count.erl +++ b/src/fabric_db_doc_count.erl @@ -1,4 +1,4 @@ --module(fabric_doc_count). +-module(fabric_db_doc_count). -export([go/1]). diff --git a/src/fabric_get_db_info.erl b/src/fabric_db_info.erl index 9242b569..e70b335c 100644 --- a/src/fabric_get_db_info.erl +++ b/src/fabric_db_info.erl @@ -1,4 +1,4 @@ --module(fabric_get_db_info). +-module(fabric_db_info). -author(brad@cloudant.com). -export([get_db_info/2]). diff --git a/src/fabric_missing_revs.erl b/src/fabric_doc_missing_revs.erl index ff756425..fe6deac6 100644 --- a/src/fabric_missing_revs.erl +++ b/src/fabric_doc_missing_revs.erl @@ -1,4 +1,4 @@ --module(fabric_missing_revs). +-module(fabric_doc_missing_revs). -export([go/2]). diff --git a/src/fabric_open_doc.erl b/src/fabric_doc_open.erl index e2ea3023..6f39f39e 100644 --- a/src/fabric_open_doc.erl +++ b/src/fabric_doc_open.erl @@ -1,4 +1,4 @@ --module(fabric_open_doc). +-module(fabric_doc_open). -export([go/3]). diff --git a/src/fabric_open_revs.erl b/src/fabric_doc_open_revs.erl index cc464203..2fa91208 100644 --- a/src/fabric_open_revs.erl +++ b/src/fabric_doc_open_revs.erl @@ -1,4 +1,4 @@ --module(fabric_open_revs). +-module(fabric_doc_open_revs). -export([go/4]). diff --git a/src/fabric_update_docs.erl b/src/fabric_doc_update.erl index 7a677e1d..555b1897 100644 --- a/src/fabric_update_docs.erl +++ b/src/fabric_doc_update.erl @@ -1,4 +1,4 @@ --module(fabric_update_docs). +-module(fabric_doc_update). -export([go/3]). diff --git a/src/fabric_all_docs.erl b/src/fabric_view_all_docs.erl index 77d21bcd..b91f0665 100644 --- a/src/fabric_all_docs.erl +++ b/src/fabric_view_all_docs.erl @@ -1,4 +1,4 @@ --module(fabric_all_docs). +-module(fabric_view_all_docs). -export([go/4]). -export([open_doc/3]). % exported for spawn |