Index: library/mongodb/nx-mongo.tcl =================================================================== diff -u -r5f281c1ff709a771d08362ee9593dcbe76ebbb2b -ra77464d1f7a06117c621560ec519dc4d387ed5df --- library/mongodb/nx-mongo.tcl (.../nx-mongo.tcl) (revision 5f281c1ff709a771d08362ee9593dcbe76ebbb2b) +++ library/mongodb/nx-mongo.tcl (.../nx-mongo.tcl) (revision a77464d1f7a06117c621560ec519dc4d387ed5df) @@ -5,7 +5,7 @@ # package require nx package require nsf::mongo -package provide nx::mongo 0.2 +package provide nx::mongo 0.3 # todo: how to handle multiple connections; currently we have a single, global connection # todo: all references are currently auto-fetched. make this optional @@ -32,6 +32,7 @@ :public object method remove {args} {::mongo::remove ${:mongoConn} {*}$args} :public object method query {args} {::mongo::query ${:mongoConn} {*}$args} :public object method update {args} {::mongo::update ${:mongoConn} {*}$args} + :public object method "drop collection" {name} {::mongo::run ${:mongoConn} ${:db} [list drop string $name]} } #######################################################################