Index: library/mongodb/example-nx-mongo.tcl =================================================================== diff -u -ra978b09df089800818fb317d67286d9082164f91 -rec9e525c887a0ae430bdb35bef01f499b25d617f --- library/mongodb/example-nx-mongo.tcl (.../example-nx-mongo.tcl) (revision a978b09df089800818fb317d67286d9082164f91) +++ library/mongodb/example-nx-mongo.tcl (.../example-nx-mongo.tcl) (revision ec9e525c887a0ae430bdb35bef01f499b25d617f) @@ -6,10 +6,10 @@ package require nx::mongo # Establish connection to the database -set mongoConn [::mongo::connect] +::nx::mongo::db connect # Make sure, we start always from scratch -::mongo::remove $mongoConn tutorial.persons {} +nx::mongo::db remove tutorial.persons {} # # Create the application class "Person"