mongodb-erlang
mongodb-erlang copied to clipboard
Undefined function error
It throws undefined function error
$ erl -pa ebin deps/*/ebin
Erlang R16B (erts-5.10.1) [source-05f1189] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.1 (abort with ^G)
1> application:start(bson).
ok
2> application:start(mongodb).
ok
3> mongo:connect({localhost, 27017}).
** exception error: undefined function mongo:connect/1
Why?
Same issue here
Check the test/mongo_SUITE.erl
{ok, Connection} = mongo_connection:start_link({"127.0.0.1", 27017}, [])
Also: The default branch is Refactor, which changed the API (but the Readme wasn't updated). Try the master branch.
Hi!
The README does seem to be terribly out of date (i.e. mongo:connect, mongo:next not existing). Does anyone know, whether the refactor branch is production ready?
Thanks!
@comtihon I think this is out-of-date as I no longer see the references in the README so possibly it can be closed