Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (16 sloc) 0.745 kB
package nMongo;
class Database implements Dynamic<Collection> {
static var _getcollectionnames = neko.Lib.load("nmongo","n_getcollectionnames",2);
public var name(default,null):String;
private var connection:Void;
private function new (connection:Void, name:String) {
this.connection = connection; = name;
public function getCollectionNames():List<String>
return Lambda.list(neko.Lib.nekoToHaxe(Database._getcollectionnames(this.connection, neko.Lib.haxeToNeko(
public inline function openCollection(name:String):Collection
return Type.createInstance(Collection,[name,,this.connection])
public inline function resolve(name:String):Collection
return this.openCollection(name)
Jump to Line
Something went wrong with that request. Please try again.