mongodb-erlang icon indicating copy to clipboard operation
mongodb-erlang copied to clipboard

Undefined function error

Open sinasamavati opened this issue 11 years ago • 4 comments

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?

sinasamavati avatar Mar 22 '13 10:03 sinasamavati

Same issue here

calvinfroedge avatar Mar 29 '13 00:03 calvinfroedge

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.

phuesler avatar Apr 02 '13 12:04 phuesler

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!

devjev avatar Jun 23 '13 20:06 devjev

@comtihon I think this is out-of-date as I no longer see the references in the README so possibly it can be closed

dmsnell avatar Feb 13 '21 04:02 dmsnell