{"id":20008089,"url":"https://github.com/spoonx/trailpack-wetland","last_synced_at":"2025-07-30T23:34:28.736Z","repository":{"id":57378878,"uuid":"84807051","full_name":"SpoonX/trailpack-wetland","owner":"SpoonX","description":"📦 Wetland ORM Trailpack https://wetland.spoonx.org","archived":false,"fork":false,"pushed_at":"2017-05-14T15:21:45.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T08:59:04.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SpoonX.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-03-13T09:20:22.000Z","updated_at":"2017-05-24T04:37:06.000Z","dependencies_parsed_at":"2022-09-02T20:22:12.222Z","dependency_job_id":null,"html_url":"https://github.com/SpoonX/trailpack-wetland","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SpoonX/trailpack-wetland","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Ftrailpack-wetland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Ftrailpack-wetland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Ftrailpack-wetland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Ftrailpack-wetland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpoonX","download_url":"https://codeload.github.com/SpoonX/trailpack-wetland/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpoonX%2Ftrailpack-wetland/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267960828,"owners_count":24172507,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-11-13T07:08:23.913Z","updated_at":"2025-07-30T23:34:28.680Z","avatar_url":"https://github.com/SpoonX.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trailpack-wetland\n\nWetland ORM Trailpack https://wetland.spoonx.org\n\n## Installation\n\n1. `npm install --save trailpack-wetland`\n2. Choose an adapter (list below) `npm i --save sqlite3`\n3. `mkdir api/entity`\n4. `echo \"module.exports.wetland = {};\" \u003e config/wetland.js`\n5. `echo \"module.exports = require('./config/wetland').wetland;\" \u003e wetland.js`\n\n## Configuration\nOut of the box, wetland works with sqlite3, so there's no need to configure anything.\nAn extensive list with config options and explanation can be found in [the wetland documentation](https://wetland.spoonx.org/configuration.html).\n\n### Example config\nThe simplest configuration _(which will be what's used 9/10 times)_ is as follows:\n\n**config/wetland.js**\n\n```js\nconst path = require('path');\n\nmodule.exports.wetland = {\n  entityPath: path.resolve(process.cwd(), 'api', 'entity'),\n  stores    : {\n    defaultStore: {\n      client    : 'mysql',\n      connection: {\n\t    host    : '127.0.0.1',\n\t    user    : 'your_database_user',\n\t    password: 'your_database_password',\n\t    database: 'myapp_test'\n      }\n    }\n  }\n};\n```\n\n### Adapters\n| Adapter | Command |\n| ------------- | ------------- |\n| mysql | `npm i mysql --save` |\n| mysql2 | `npm i mysql2 --save` |\n| pg | `npm i pg --save` |\n| sqlite3 | `npm i sqlite3 --save` |\n| mariasql | `npm i mariasql --save` |\n| strong-oracle | `npm i strong-oracle --save` |\n| oracle | `npm i oracle --save` |\n| mssql | `npm i mssql --save` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoonx%2Ftrailpack-wetland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoonx%2Ftrailpack-wetland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoonx%2Ftrailpack-wetland/lists"}