{"id":16442466,"url":"https://github.com/doug-martin/moose","last_synced_at":"2025-09-11T16:42:03.758Z","repository":{"id":66209580,"uuid":"1407975","full_name":"doug-martin/moose","owner":"doug-martin","description":"sequel port to work with nodejs","archived":false,"fork":false,"pushed_at":"2011-12-28T07:00:52.000Z","size":1606,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-26T03:41:36.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/doug-martin.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-24T19:41:12.000Z","updated_at":"2017-01-03T23:00:34.000Z","dependencies_parsed_at":"2023-02-20T00:15:48.531Z","dependency_job_id":null,"html_url":"https://github.com/doug-martin/moose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doug-martin/moose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doug-martin%2Fmoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doug-martin%2Fmoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doug-martin%2Fmoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doug-martin%2Fmoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doug-martin","download_url":"https://codeload.github.com/doug-martin/moose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doug-martin%2Fmoose/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260109462,"owners_count":22960026,"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","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":[],"created_at":"2024-10-11T09:17:32.392Z","updated_at":"2025-06-16T06:04:47.665Z","avatar_url":"https://github.com/doug-martin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Moose\n\n##Overview\n\nAn ORM for node with these features:\n\n* Migrations\n* Associations\n* Connection pooling\n* Support for multiple databases   \n* A plugin api, e.g., from examples/plugins/ExpressPlugin.js\n\n\n```javascript\n/*\n* Very simple express routing for a model\n* */\nvar moose = require(\"../../lib\"), comb = require(\"comb\");\nmodule.exports = exports = comb.define(null, {\n   static : {\n       route : function(app){\n           app.get(\"/\" + this.tableName + \"/:id\", comb.hitch(this, function(req, res){\n               var id = req.params.id;\n               this.findById(id).then(function(model){\n                   var response;\n                   if(model){\n                       response = model.toObject();\n                   }else{\n                       response = {error : \"Could not find a model with id \" + id};\n                   }\n                   res.send(response);\n               });\n           }));\n       }\n   }\n});\n```\n    \n## Installation\n\n    npm install moose\n\n##Usage\n\n* [Moose](http://pollenware.github.com/moose/symbols/moose.html)\n* [Connecting to a database.](http://pollenware.github.com/moose/symbols/moose.html#createConnection)\n* Models\n  * [Define a model](http://pollenware.github.com/moose/symbols/moose.html#addModel)\n     * [Model Class](http://pollenware.github.com/moose/symbols/Model.html) returned from defining a model\n  * [Associations](http://pollenware.github.com/moose/symbols/moose.plugins.AssociationPlugin.html)\n  * [Querying](http://pollenware.github.com/moose/symbols/moose.plugins.QueryPlugin.html)\n  * [Caching](http://pollenware.github.com/moose/symbols/moose.plugins.CachePlugin.html)\n  * [Timestamp](http://pollenware.github.com/moose/symbols/moose.plugins.TimeStampPlugin.html)\n* [Migrations](http://pollenware.github.com/moose/symbols/Migrations.html)\n* Adapters\n  * [mysql](http://pollenware.github.com/moose/symbols/moose.adapters.mysql.html)\n     * [Types](http://pollenware.github.com/moose/symbols/moose.adapters.mysql.types.html)\n\n##License\n\nMIT \u003chttps://github.com/Pollenware/moose/raw/master/LICENSE\u003e\n\n\n##Meta\n\n* Code: `git clone git://github.com/pollenware/moose.git`\n* JsDoc: \u003chttp://pollenware.github.com/moose\u003e\n* Website:  \u003chttp://pollenware.com\u003e - Twitter: \u003chttp://twitter.com/pollenware\u003e - 877.465.4045\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoug-martin%2Fmoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoug-martin%2Fmoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoug-martin%2Fmoose/lists"}