TonyGen / mongodb-erlang

Fork of MongoDB driver for Erlang. mongodb now holds the master repository for this driver.
65 stars 16 forks source link

What should be done before doing things like insert? #20

Open zhujiafeng opened 8 years ago

zhujiafeng commented 8 years ago

After l make a replica set connection by rs_connect/1, it seems like insert/2 is still unavilable cause the get(mongo_action_context) operation is still undefined.And l recognized that the only "put" operation is at do/5. So does it really need to use do/5 before everthing? Did l make a stupid operation or that's the code's bad