5M9m2ydawhtXEIBbpUdugQ changeset

Changeset373466306538 (b)
Parent333938623565 (a)
ab
0-Connection = couchbeam_connection:start_connection_link(#couchdb_params{host="127.0.0.1", port=5984}),
0-Db = couchbeam_connection:open_db(Connection,DbName),
0+Connection = couchbeam_server:start_connection_link(#couchdb_params{host="127.0.0.1", port=5984}),
0+Db = couchbeam_server:open_db(Connection,DbName),
...
22Doc = {{[<<"somefield">>, <<"somevalue">>]}},
33Doc1 = couchbeam_db:save_doc(Db, Doc),
...
1
2
3
4
5
6
7
8
9
--- Revision 333938623565
+++ Revision 373466306538
@@ -1,4 +1,4 @@
-Connection = couchbeam_connection:start_connection_link(#couchdb_params{host="127.0.0.1", port=5984}),
-Db = couchbeam_connection:open_db(Connection,DbName),
+Connection = couchbeam_server:start_connection_link(#couchdb_params{host="127.0.0.1", port=5984}),
+Db = couchbeam_server:open_db(Connection,DbName),
Doc = {{[<<"somefield">>, <<"somevalue">>]}},
Doc1 = couchbeam_db:save_doc(Db, Doc),