Revision 373466306538 () - Diff

Link to this snippet: https://friendpaste.com/5M9m2ydawhtXEIBbpUdugQ
Embed:
1
2
3
4
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),