{"id":31848848,"url":"https://github.com/matttuttle/mongo-haxe-driver","last_synced_at":"2025-10-12T10:52:29.577Z","repository":{"id":2716417,"uuid":"3710898","full_name":"MattTuttle/mongo-haxe-driver","owner":"MattTuttle","description":"A MongoDB driver for Haxe","archived":false,"fork":false,"pushed_at":"2017-03-01T17:28:34.000Z","size":116,"stargazers_count":59,"open_issues_count":1,"forks_count":20,"subscribers_count":8,"default_branch":"master","last_synced_at":"2023-03-11T23:27:27.611Z","etag":null,"topics":["haxe","mongodb-driver"],"latest_commit_sha":null,"homepage":"","language":"Haxe","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MattTuttle.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-13T20:17:30.000Z","updated_at":"2023-02-08T12:35:39.000Z","dependencies_parsed_at":"2022-09-20T03:50:37.727Z","dependency_job_id":null,"html_url":"https://github.com/MattTuttle/mongo-haxe-driver","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/MattTuttle/mongo-haxe-driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattTuttle%2Fmongo-haxe-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattTuttle%2Fmongo-haxe-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattTuttle%2Fmongo-haxe-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattTuttle%2Fmongo-haxe-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MattTuttle","download_url":"https://codeload.github.com/MattTuttle/mongo-haxe-driver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattTuttle%2Fmongo-haxe-driver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011065,"owners_count":26084865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haxe","mongodb-driver"],"created_at":"2025-10-12T10:52:27.630Z","updated_at":"2025-10-12T10:52:29.569Z","avatar_url":"https://github.com/MattTuttle.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/travis/MattTuttle/mongo-haxe-driver.svg?style=flat)](https://travis-ci.org/MattTuttle/mongo-haxe-driver) [![Haxelib]( \thttps://img.shields.io/badge/license-MIT-blue.svg?style=flat)](license.txt) [![Haxelib]( \thttps://img.shields.io/github/tag/MattTuttle/mongo-haxe-driver.svg?style=flat\u0026label=haxelib)](http://lib.haxe.org/p/mongodb)\n\nMongoDB driver for Haxe\n====================================\n\nThis is a database driver for MongoDB written in Haxe and available for all targets allowing a socket connection (neko/php/cpp).\n\nFind all objects in a collection\n------------------------------------\n\nFinding rows in a relational database can be a daunting process. Thankfully with Mongo it's just like accessing a regular Haxe object instance.\n\n```haxe\nimport org.mongodb.Mongo;\n\nclass Main\n{\n\tpublic static function main()\n\t{\n\t\tvar mongo = new Mongo();       // connects to MongoDB\n\t\tvar posts = mongo.blog.posts;  // get the \"blog.posts\" collection\n\n\t\t// loops through all objects in \"test.posts\"\n\t\tfor (post in posts.find())\n\t\t{\n\t\t\ttrace(post.title); // assumes that all posts have a title\n\t\t}\n\t}\n}\n```\n\nInserting and updating\n------------------------------------\n\nInserting object in Mongo is just as simple as putting values in an Array\u003cDynamic\u003e. Just create an object and put it in the collection by calling insert(). Updating objects is just as simple except we need a way to find the original object so we pass a selector object first.\n\n```haxe\nimport org.mongodb.Mongo;\n\nclass Main\n{\n\tpublic static function main()\n\t{\n\t\tvar mongo = new Mongo();       // connects to MongoDB\n\t\tvar posts = mongo.blog.posts;  // get the \"blog.posts\" collection\n\n\t\t// creating a new post is as easy as making a new object\n\t\tvar post = {\n\t\t\ttitle: 'My awesome post',\n\t\t\tbody: 'MongoDB is easy as pie'\n\t\t};\n\t\tposts.insert(post); // save the post in Mongo\n\n\t\tpost.body = 'Made some updates to my post';\n\t\tposts.update({title: post.title}, post); // update the post\n\t}\n}\n```\n\nDriver Roadmap\n------------------------------------\n\nHere are the features planned for future versions.\n\n* Replica sets\n* Automatic reconnection\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatttuttle%2Fmongo-haxe-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatttuttle%2Fmongo-haxe-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatttuttle%2Fmongo-haxe-driver/lists"}